you're close. you want to make two loadVars - outgoingVars and incomingVars (those are names i made up). then, you put anything you want to send out in outgoingVars:
outgoingVars.buttonPressed = "pestcontrol";
here's an example of send and load - sending vars to serverside scripting (php, asp, cf) just like an html form would do with a form submit.
here outgoingVars are sent to an asp page that handles form submissions called "flashform.aspx". that flashform.aspx will receive everything i put in outgoingVars. you could put your whole form in flash with what you know.Code:// function doSend(){ outgoingVars.sendAndLoad("flashForm.aspx",incomingVars,"GET"); gotoAndPlay("submitted"); }// function // // incomingVars.onLoad = function(success) { gotoAndPlay("received"); } //
the onLoad function will happen when your outgoingVars are delivered (instantly usually).
gotta go. hope that gets you going.




Reply With Quote