Flash Player 10 XML 和 AS2 问题
我在最新版本的 AS2 应用程序 Flash 播放器中遇到小于 (<) 符号的问题。我有一个 XML,其中包含 html 文本字符串,我将其传递到文本字段,如下面的代码所示。但在浏览器中 <
之后的文本消失(即使它显示在机器播放器上)。现在我知道,如果我用 <
替换 <
,它会起作用,但这不是一个选项。有没有人有建议。
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 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;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚复制&粘贴您的代码,一切对我来说都工作得很好。
您确定您的 'internalXMLDisplay 是动态文本和/或它接受 html (internalXMLDisplay.html = true;) 吗?
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;) ?