浏览器放大时不显示Flash动态文本

时间:2012-01-04 22:34:33

标签: xml flash actionscript-3 flash-cs5

我有一个从xml文件加载文本的SWF文件。当查看嵌入在缩放到100%的html页面中时,文本加载并动画很好。它在100%加载然后放大时甚至看起来很好。我的问题是当页面重新加载时,文本字段不会显示,同时放大100%以外的任何内容。如果我通过静态字符串设置动态字段的文本,与xml文件中的字符串相同,那么它甚至更奇怪了。因为一切都很好。

xml字符串包含在CDATA标记中,格式正确。

有没有人见过这样的东西?

1 个答案:

答案 0 :(得分:1)

您需要嵌入字体以使动态文本字段适用于所有比例值和所有旋转。

    Step1. Embed font - Using Embed keyword in Flah Builder ( Using gui in Flash Professional )

    Step2. Set a font family name for the embedded font

    Step3. In Actionscript, give this name as the font in the TextFormat of the textfield.

    Step4. Set embedFonts = true for the text field.

了解如何执行此操作:http://marumushi.com/news/embedding-fonts-in-as3