I am having trouble with less than (<) symbol in the most recent version of flash player for an AS2 app. I have an XML which contains strings of html text that I am passing to a text field like the code below shows. But in the browser the text after <
disappears(even if it shows on machines player). Now I know that if I replace <
with <
it will work but this is not an option. Does anyone have a suggestion.
var internalXML:XML = new XML("<annotation><![CDATA[<P ALIGN='LEFT'><FONT LETTERSPACING='0' KERNING='0'>this is the visible text < this text will dissapear</FONT><P>]]></annotation>");
var internalXMLNode:XMLNode = internalXML.firstChild;
internalXMLDisplay.htmlText = internalXMLNode.firstChild.nodeValue;
I've just copy & paste your code and everything worked pretty fine for me. Are you sure that your 'internalXMLDisplay is a dynamic text and / or it accepts html (internalXMLDisplay.html = true;) ?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.