Flash CS5 - 当我更改文本属性时,文本消失,除非我未设置别名
我有一个动态文本字段,对于我通过 Flash IDE 设置的文本来说似乎很正常,但当我以编程方式更改它的文本属性时,它会消失。 除非我将文本字段设置为不使用抗锯齿(位图文本[无抗锯齿]);
我不知道为什么会发生这种情况,也许是因为我使用的字体(Helvetica Neue,Black Condensed)或者是某些 Flash CS5 Bug。
这里有人已经遇到过这个问题了吗?
Ps.:文本字段已经嵌入了所有字符,这就是为什么文本最初出现,并在我更改文本时仅消失。
[编辑]
如果我将字体样式从 Black Condensed(一种粗体+斜体)更改为 Black(只是粗体),问题就不会再发生。但我真的需要使用那种字体样式......
I have a dynamic textfield which seems normal with the text I set by Flash IDE, but it disappears when I change it's text property, programmatically.
Except if I set the textfield to use no anti-aliasing (Bitmap text [no anti-alias]);
I don't know why that's happening, maybe it's because the font I'm using, (it's the Helvetica Neue, Black Condensed) or it is some Flash CS5 Bug.
Have someone here already had this problem?
Ps.: The textfield already have all chars embeded, that's why the text appears initially, and disappears only when I change the text.
[EDIT]
If I change the style of the font from Black Condensed(a kind of bold+italic), to Black(just bold), the problem doesn't happens anymore. But I really need to use that font style...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定这是否与您的问题有关,但存在一个“错误”,即当您将新文本分配给动态文本字段时,有时原始文本使用的格式不会应用于新文本。
也许以下内容有帮助:
Not sure if this is related to your problem, but there is a 'bug' that when you assign a new text to a dynamic TextField sometimes the formatting used with the original text is not applied to the new text.
Maybe the following helps:
尝试在“字符”面板中打开“嵌入..”,然后在“字符范围”中选择“全部”。
Try opening 'Embed..' in the CHARACTER panel and choose 'All' in 'Character ranges'.