Flash/XML/Querystring
- Started
- Last post
- 3 Responses
- ********
I'm having a bit of a problem getting Flash to parse a querystring that is loaded via an XML file.
The link may be something like news.asp?cid=1&pid=2
When the flash file reads the XML file, and you click on the loaded link, it comes out like news.asp?cid=1&pid=2
I have tried replacing the '&' with both 'amp;' and '%26' but neither works.
Any help appreciated...
- fyoucher10
not exactly sure if I understand the problem at hand but...look up CDATA in xml....
- daveFelton0
yes, use cdata, or store those values, "cid", "pid" etc, as attributes on the xml node, and then use flash to construct a string for the url
var url:String = "news.asp?cid=" + myCid + "&pid=" + myPid;
where "myCid" and "myPid" are flash variables set when your xml is parsed.
- joyride0
url encode the string in the xml, then unescape it inside of flash
var theURL:String = unescape(xmlURL);