Re: [Flashcoders] Converting amp; in a URL?

2006-01-20 Thread Yotam Laufer
You write your own or use the %26 escape sequence instead of amp; On 20/01/06, Sascha Balkau [EMAIL PROTECTED] wrote: Hi list, does ActionScript have any facilities to convert special characters like amp; into just ? I have one Flash movie that reads URLs from an RDF file where all URLs are

RE: [Flashcoders] Converting amp; in a URL?

2006-01-20 Thread Adrian Lynch
Are you outputting these URLs or using them in getURL()? That should work in getURL(). But if you're outputting them, one way to convert them is to use HTML text fields. Or, if you can't change the text fields, try this: str = Sometext with an amp; in.; function convert(str, from, to) {

Re: [Flashcoders] Converting amp; in a URL?

2006-01-20 Thread Sascha Balkau
It's used in getURL. Thanks Adrian! Your small function solved it and helped me a ton! Sascha Are you outputting these URLs or using them in getURL()? That should work in getURL(). But if you're outputting them, one way to convert them is to use HTML text fields. Or, if you can't change