Mar 24, 2003 #1 sthmpsn1 MIS Sep 26, 2001 456 US How would I pass an array from an asp page to a flash file?
Mar 24, 2003 #2 wangbar Programmer Jul 23, 2001 1,906 GB 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('|'); Upvote 0 Downvote
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('|');