[英]Flash player 10 XML and AS2 problem
I am having trouble with less than (<) symbol in the most recent version of flash player for an AS2 app. 我在AS2应用程序的最新版本的Flash Player中遇到少于(<)符号的问题。 I have an XML which contains strings of html text that I am passing to a text field like the code below shows. 我有一个XML,其中包含我要传递给文本字段的html文本字符串,如下面的代码所示。 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;) ? 您确定您的'internalXMLDisplay是动态文本和/或它接受html(internalXMLDisplay.html = true;)吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.