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

passing a array from an asp page to flash

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
How would I pass an array from an asp page to a flash file?
 
You can pass data out to Flash as url encoded variable pairs so you could either write some ASP script that takes your array and formats it like this:

arrayValue0=something&arrayValue1=somethingelse&arrayValue2=...

which Flash can read in via loadVariables or loadVars.

Or concatenate the array into a single string with a separator so it looks like this (using '|' as the separator):

arrayString=12|23|42|546| etc

load into Flash as above then create an array from the 'arrayString' variable withing Flash like this:

flashArray=arrayString.split('|');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top