Skip to main content
Participant
August 7, 2006
Question

Loadvars and the "&" Delimiter

  • August 7, 2006
  • 1 reply
  • 147 views
I have a picture gallery that gets its data from a text file using the loadvars object. Currently, I have a text file with 2 different variables, one is the picture location URL and the other is a description of the picture. These variables, as per flash standards, are separated in the text file by the & delimeter. My client now wants to change the URL to be dynamic meaning the URL will have the ampersand (&) character in it. The loadvars object will now split the dynamic URL thinking it has hit the end of the variable. Does anyone have a work around for this? Is there a way to change th delimiter in flash? Is there a piece of code that does a text string search and change that maybe I can change all of the & in the URL to ~ and change it back to & once it is in flash?
This topic has been closed for replies.

1 reply

Inspiring
August 7, 2006
Use the URL encoding %26 instead of &

Check out http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14143 for more info