|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I was wondering if you guys can help me out in this. Am using loadVars, works in another project of mine, but doesn't seem to work in the current one (same structure). The usual: on (release) { myVars = new LoadVars(); myVars.name = name; myVars.address = address; myVars.contactno = contact; myVars.emailadd = email; ... myVars.send ("http://localhost/play/Sendinfo.asp"); ... } Using myVars.send to send the info to an ASP file for processing, but somehow the ASP file did not even get to load? I've used different variations of "_blank", "POST", "GET"... but no cigar. Is this problem got to do with some nesting of my scene/movie? getURL works though, but not the vars that I wanted. Any help appreciated. J. |
|
#2
|
||||
|
||||
|
hey, dont know the answer, only just made it to an intermediate book myself
, but go here i have seen a load of threads with answers (even 1 to ur question) that u can use.
__________________
microsofts butterfly is their way off telling u their systems have a **** load of buggs Advocating Linux Guide Lesbian Linux Great & Practical Computer Books like the links? |
|
#3
|
|||
|
|||
|
Well it is most likely a scope issue, you would need to refernce the variables from their locations when assigning them to the loadVars object.
PHP Code:
Does that make sense. Or since you are using MX, you could move your existing code to the main timeline and skip the problem. PHP Code:
|
|
#4
|
|||
|
|||
|
Hmm... maybe, will try it out. But 1 question.
I did a trace immediately after assigning the vars: trace(myVars.name + "; " + myVars.address + "; " + myVars.contactno + "; " + myVars.emailadd + "; " + myVars.checkbox); and the output box shows the correct values... 1 line later the loadVars .send doesn't work... J. |
|
#5
|
|||
|
|||
|
I just didn't have that same problem, not sure what happened with yours. Could be something in the ASP file.
See attached |
|
#6
|
|||
|
|||
|
also check PARAM NAME=FlashVars to load variables
|
|
#7
|
|||
|
|||
|
Quote:
That would be great advice if they were loading vars and not sending them. |
|
#8
|
|||
|
|||
|
Thanks, freddydoesphp.
Yup. solved my loadVars prob - nesting/referencing...<sheepish> I use the loadVars send, using the GET method because of how my script is expecting it... but I did not expect to see a popup browser window!? I can shut it down using another javascript, but get a confirmation message (because I didn't open up that unwanted browser window using js)... Is there any way I can call a loadVars send without the popup browser window? I am using: myVars.send ("http://localhost/play/Sendinfo.asp", "GET"); Using: myVars.send("http://localhost/play/Sendinfo1.asp", "_blank", "GET"); or myVars.send ("http://localhost/play/Sendinfo1.asp", "", "GET"); gets me the same pop up window. Will POST help? That means I gotta change my asp script. Any further help greatly appreciated. J. |
|
#9
|
|||
|
|||
|
Unforunately that is the way send() works, however sendAndLoad will not open a window. Even if you don't want to return anything to flash, this will be a good workaround. However I would suggest sending something back to flash to confirm the variables made it through the script.
|
|
#10
|
|||
|
|||
|
Thanks for all the help so far... I've gotten it done.
J. |
|
#11
|
|||
|
|||
|
Any time
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > loadVars not working?! (newbie) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|