You don't show what you're doing to get the string from the XML. Is local.ob.content the XMLNode? If so, in general, you extract the string with:
s:String = local.ob.content.childNodes[0].nodeValue; Unfortunately, the Flash XMLNode class doesn't recognize the CDATA node type; the string that you extract in this case may not contain what you want. P. >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of Chris W. Paterson >> Sent: Tuesday, July 24, 2007 11:29 AM >> To: Flashcoders mailing list >> Subject: [Flashcoders] CDATA Html Text not working >> >> 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 _______________________________________________ [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

