Flash AS2 htmlText适用于CS3,但不适用于CS6
我在ActionScript 2中遇到了旧的(Flash CS3)Flash文件问题。
我在包含粗体和斜体的HTML文本的舞台上有一个动态文本框。 反锯齿设置为“可读性”。
如果我跟踪(myTextField.htmlText)我得到以下输出:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="DejaVu Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Hello <FONT FACE="DejaVu Sans Bold"><B>bold </B><FONT FACE="DejaVu Sans Bold Oblique"><B><I>and </I></B><FONT FACE="DejaVu Sans Oblique"><I>italic</I></FONT></FONT></FONT></FONT></P></TEXTFORMAT>
嵌入了所需的字体“DejaVu Sans”,“DejaVu Sans Bold”,“DejaVu Sans Bold Oblique”和“DejaVu Sans Oblique”。
现在我不得不用actionscript改变文本框内的文本:
myTextField.htmlText = "This word should appear <b>bold</b> or <i>italic</i>.";
在旧的CS3-Flash中,它按预期工作。 在新的CS6-Flash中,HTML样式“b”和“我”被忽略。
有什么不同? 我该怎么做才能让它再次运作?
测试文件:http://download.reine-schoenheit.de/html_text.zip
链接地址: http://www.djcxy.com/p/17783.html上一篇: Flash AS2 htmlText works in CS3, but not in CS6
下一篇: FlashCS5 embedded Font htmlText bold: how to use TLFTextField and TextConverter?