So I'm working on a project... I'm reading xml nodes and placing each node into
dynamic text
fields...
XML:
<content><![CDATA[Blah blah <a href="somelink.com">someLink</a> <b> some bold
text
</b>]]></content>
The problem is the XML Node is not reading as a string and the html text field
reads the node as a
literal string instead of html text. I mean it prints something like "Blah blah
<a
href="somelink.com">someLink</a> <b> some bold text </b>" in my text field.
AS:
var tt:TextField = m.createTextField("txt",m.getNextHighestDepth(),0,0,0,0);
tt.autoSize = true;
tt.selectable = false;
tt.embedFonts = true;
tt.antiAliasType = "advanced";
tt.html = true;
tt.htmlText = local.ob.content; // myXml value
tt.setTextFormat(local.tTextFormat);
Does anyone have a solution for this? I think it's because the text is not
reading as a String...
I've tried toString() and it doesn't work... If I try and perform any other
simple String
function like substr() or anything it doesn't work either! ????
I'm sorta new at XML and Flash, I've been doing Flash for a while but I usually
don't use XML.
Any help would be very much appreciated!!!!
Thanks!
Chris
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com