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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass variable to flash from the start - help

Status
Not open for further replies.

benanderson

Programmer
Nov 26, 2001
3
GB
When a particular button is pressed in my swf, it loads an asp page - the asp adds an entry to a field in my database:

loadVariablesNum (" 0, "GET");

This works fine.

However, my problem is that when the asp puts an entry into my database, it needs to add it to a particular record. For example, update field1 where user_id = 1

The problem is that my swf needs to know what user_id to update.

I know one solution would be to get the user to login through the swf and therefore the swf would know the user_id but by the time the user gets to the swf, they've already logged into the section from an asp page - I don't want them to have to enter their username and password again into the swf.

How do I go about doing this?

Any help would be much appreciated!

Ben
 
I've worked it out!

<PARAM NAME=movie VALUE=&quot;test.swf?user_id=<%=user_id%>&quot;>

This creates a variable in flash and gives it a value of whatever user_id I've got from my asp page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top