Flash LoadVars - need to load in a string that contains an ampersand

I've got loadvars working fine in flash, but I need to load in a string that contains URLS which contain the ampersand character (&). Problem is flash sees these as separators for the name=value pairs and is loading stuff into all kinds of different variables.

Is there some way I can excape these in the source file? I tried backslashes before them which didnt work. Or if I swapped them for something else - say | - is it possible to replace these with the & character with acxtionscript once I have the variable loaded somewhow? Or any other ideas how I can do this?

Thanks,
Matt
LVL 6
MatthewPAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CyanBlueConnect With a Mentor Commented:
Those are the ones Flash expects special action on, so you cannot use them...  The & or any other special characters need to be coming in as a urlescaped format where & should be %26 or = should be %3D...  

     http://community.contractwebdevelopment.com/url-escape-characters

CyanBlue
0
 
CyanBlueCommented:
Did that answer help???  It'd be nice if you could close this topic if you resolved the problem...  ;)

CyanBlue
0
 
MatthewPAuthor Commented:
Yes it did, I had to do a string replace in the PHP script that generated the source but fixed it up nicely, many thanks!

Matt
0
 
CyanBlueCommented:
Cool...  :)

CyanBlue
0
All Courses

From novice to tech pro — start learning today.