Link to home
Start Free TrialLog in
Avatar of beesbane
beesbane

asked on

Apostrophes handled XML to Flash

I have created a dynamic text field in my flash file that is populated with text from an xml file. Everything works fine with the exception of apostrophes and quotes and such which show as "'" and """.

Attached is my AS2 XML loader:

How would I have it allow apostrophes?
var my_xml = new XML();
my_xml.onLoad = function(success){
if (success){
film_l.text =(this);
}
}
my_xml.load("myXML.xml");

Open in new window

Avatar of blue-genie
blue-genie
Flag of South Africa image

off the top of my head.
try change to film_1.htmlText = (this);

Avatar of beesbane
beesbane

ASKER

That still doesn't work. Any other suggestions? For now I am just using ` instead of ', but I think it looks kind of questionable, not to mention tacky.
I'm at work now so i can try properly. upload your xml file or paste the format you're using.
It's just plain text in an xml file. No nodes, parents, children.
Here is the file
sef-films-1.xml
ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Alright, you're right. I guess I just hadn't  reloaded the whole file. Thanks very much.

It's xml because I gutted and modified an old file I had used that was initially loading images. It was just less work... or so it seemed.

Thank you.