Right now I'm only using a simple HTML page, no server side scripting. I'm just picking off the GET vars of the URL with JavaScript. In any event, I added the code Moot supplied (thanks) but nothing changed. My script does not see the "buttonPressed" var.
So right now I have this:
with this still on the buttonCode:outgoingVars.buttonPressed = "pestcontrol"; function doSend(){ outgoingVars.sendAndLoad("self2.html",incomingVars,"GET"); // wouldn't the above be ("self2.html",outgoingVars,"GET")? doesn't work either way gotoAndPlay("submitted"); } incomingVars.onLoad = function(success) { gotoAndPlay("received"); }
I'm confused about the gotoAndPlay() method here - my movie is nothing more than a button - why would it want to go anywhere? Also, my movie need not receive anything back at all - I just need to make the "pestcontrol" variable available to the form, actually in post form eventually, but get will work for now. Sorry about being dense, but I don't understand the process of how Flash sends over stuff so I can't seem to wrap my head around thisCode:on (release) { getURL("javascript:flashFormSubmit();"); }
Tom





Reply With Quote