Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help to pass a Session Variable to Flash 1

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
i need to pass a session variable to flash. its like this. im making a greeting card interface in flash and the information the user provides (eg, sender's name, email message etc.) are sent to an asp file from flash. they are stored as session variables in asp. the problem now is when the user wants to edit(ie he/she clicks the EDIT or BACK button) which sends her/him back to the flash interface which gives a blank form.

could anybody help me? pls,

thanks and i hope there would be a response soon!

bignewbie
 
The only why I can think to do it is to write the contents of the session variable out to a file and then get flash to read the contents of the file.

Or

Put the result of the session variable it in a database. Flash can read data from a database.
 
hmmm...now somewhere I have seen a tutorial on this which explained the whole deal. I have used it a little bit but I will give you the address rather than explain the whole thing. Basically you write the session variable to a text file and then use the Flash "load variables" command to grab the variables from the text file. The problem here is if the user changes the variables you need to make sure the original entry in the text file is deleted or updated...This is my present problem.

This is the address of the tutorial:


Hope this helps

Justin. X-)

"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer

Visit me at
 
thanks!

i'll try to understand it. if ever i can find out the solution for your problem then i'll make u a new thread!

thanks again!




bignewbie
 
Hey,
Flash can also take values from a QueryString too, so you can just create an ASP page like so:

<% response.redirect(&quot;page.asp?value=&quot; & session(&quot;value&quot;)) %>

flash should get the querystring value like that if your flash movie is located on page.asp Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
but how will i make flash put that query sting value into a specific text box?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top