无法获取动态文本以在 Flash 中显示更新,但跟踪有效
我正在使用设置为“动态文本”的文本。
在actionscript 3中,我尝试过:
instancename.text = "abc";
trace(instancename.text);
当我测试电影时,Trace返回“abc”,但文本的外观没有改变。
在动作脚本 2 中,我尝试过:
var1 = "abc";
instance1._text = "def";
trace(var1 + instance1._text);
当我测试电影时,Trace 返回“abcdef”,但文本的外观没有改变。
谢谢。
I'm using text that is set to "dynamic text".
In actionscript 3 I tried:
instancename.text = "abc";
trace(instancename.text);
Trace returns "abc" when I test the movie but the appearance of the text doesn't change.
In action script 2 I tried:
var1 = "abc";
instance1._text = "def";
trace(var1 + instance1._text);
Trace returns "abcdef" when I test the movie but the appearance of the text doesn't change.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在actionscript 2中,您的行应该是
(删除_字符)
此外,尝试使用
此取决于您如何设置文本字段框。
另一个重要的考虑因素:确保已将字体嵌入到文本字段中(“属性”选项板中的“嵌入...”按钮)
In actionscript 2, your lines should be
(remove the _ char)
Moreover, try with
this depends on how you have setup your textfield box.
Another important consideration: make sure that you have embedded the font in the textfield (Embed... button in Properties palette)
尝试使用非常非常基本的方法,例如:
如果有效,那么您的问题就在其他地方。需要检查的一些事项:
在您的文本字段上放置边框和背景颜色:
看看您是否看到
Try with a very, very basic approach, such as this:
If that works, then your problem is elsewhere. Some things to check:
Put a border and a background colour on your TextField:
and see if you see that
可能您必须嵌入...(在字体选择器下的字符调整附近)字体并选中您希望其显示的框,然后按“确定”并重试。我遇到了同样的问题,但现在可以了!
May be you have to go to embed... (near the character adjustment under the fonts selector) font and check inside the boxes which you want it to display then press OK and try again. I had the same problem but now it works!