Actionscript 2如何将文本读取为html而不是普通文本?

发布于 2024-12-08 22:40:10 字数 533 浏览 4 评论 0原文

我在 xml 中使用 html 作为 actionscript 中的某些名称,并且有 ;quot;

这是我的变量,我希望 actionscript 将名称读取为 html。而不是普通的文本。

    var field:TextField = currItem.createH3Black(0, 0, 180, 10, h3Size, h3Leading, font, "Left", _root.white, currItem.name.toUpperCase(), "textItem");

如何使动作脚本将 currItem.name.toUpperCase() 作为 html?这样名称就会显示为带有 "" 的 HTM。 而不是显示 ;quot;

此处更新的是完整源代码, :http://pastie.org/ 2666913

I am using html in xml for some names in actionscript and there is ;quot;

Here is my variable where I want actionscript to read the name as html. Instead of normal text.

    var field:TextField = currItem.createH3Black(0, 0, 180, 10, h3Size, h3Leading, font, "Left", _root.white, currItem.name.toUpperCase(), "textItem");

How do I make actionscript treadt the currItem.name.toUpperCase() as html? So that the name shows as HTM with "" . Instead of showing ;quot;

Update here is the full source code: http://pastie.org/2666913

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏佲洛 2024-12-15 22:40:12

试试这个:

your_string = your_string.split(";quot;").join('"');

Try this:

your_string = your_string.split(";quot;").join('"');
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文