PDA

View Full Version : Passing Variables from Flash to ASP


funkykangaroo
05-16-2002, 03:47 PM
Hello,

Help! I am stuck! I have 4 variables in my flash movie that I would like to be passed along to an ASP script. The names of the variables are:

name
emaila
emailb
emailc

Unfortunately, something isn't not working. Can someone who has any expertise in this area please let me know what I should do in

a) the flash file
b) the asp script

so that the asp script simply receives the variables.

Thanks!!!!!

tg
05-16-2002, 06:54 PM
flash:
in order for this code to work here are some parameters.
1.your loadVariables() action is on the main timeline
2.your 4 vars are on the main timeline
(both can be in a mc if you like, but the point is they must be in the same path).

this.loadVariables("myAspfile.asp","POST");

this will take all variables on the same timeline as the loadVariables action and send them to the asp page using 'POST'

asp:

name = request.form("name")
emaila =request.form("emaila")
emailb =request.form("emailb")
emailc =request.form("emailc")

you could also use 'GET' instead of 'POST' in your loadVariables() action, then in asp you would do: name=request.querystring("name")....
good luck.

funkykangaroo
05-16-2002, 07:47 PM
IT WORKED!!

THANK YOU SO MUCH!