PDA

View Full Version : toString, underscores, and Percent 5F!



lrhb
September 2nd, 2003, 01:06 PM
Hello!

I'm trying to output a loadVars object to string, and it works just fine and dandy, except it goes a little something like this:

the variable is: start.ADDR_ORIGIN
the outputted variable name is: ADDR%5FORIGIN

The server-side script I'm sending the string to doesn't like that one bit, and said it would phone my momma if I keep doing it... please advise!

Thanks! :hat:

lrhb

pom
September 2nd, 2003, 01:28 PM
Look up escape/unescape in the AS dictionary. And tell your script to behave! :P

senocular
September 2nd, 2003, 01:31 PM
Flash has escape() and unescape()
chances are your serverside script has something similar if you need it there

doh! too slow ;)

pom
September 2nd, 2003, 01:32 PM
:beam:

lrhb
September 2nd, 2003, 01:55 PM
Thanks for the help! I'd like to announce the engagement of me and my server-side script... we have patched up all our differences, and in honor of your assistance, we will name our firstborn "Senoilyas"!

Thanks again! :hat:

lrhb

mlk
September 2nd, 2003, 02:11 PM
*off topic*
Ihrb - In spite of your unpronouncable name I like your humor. I get mad a flash when it doesn't work. Congrats man....
*off topic*