Flash CS4 Textfield 的怪异!
我一直在从事一个 Flash 项目,其中设计师添加了打字机效果。
该效果在一天中的大部分时间都有效,但现在对佛罗里达州的其他部分进行了一些微小的更改,它不起作用!
有谁知道为什么这不起作用......
import flash.text.TextField;
var phrase_string:String="SALE IS ENDING";
var n:Number= phrase_string.length;
var i:Number = 0;
addEventListener(Event.ENTER_FRAME, textCheck);
function textCheck(e:Event):void
{
if (i < n)
{
display_txt.text = phrase_string.substr(0,i+1);
i++;
trace(phrase_string.substr(0,i+1));
}
}
这只是在包含名为 display_txt 的动态文本字段(嵌入字体)的影片剪辑的第一帧上运行
我完全困惑了!
I've been working on a flash project where a designer has included a typewriter effect.
The effect was working for the best part of a day, and now with some minor changes to other parts of the fla, it's not working!!
Does anyone have any ideas why this doesn't work....
import flash.text.TextField;
var phrase_string:String="SALE IS ENDING";
var n:Number= phrase_string.length;
var i:Number = 0;
addEventListener(Event.ENTER_FRAME, textCheck);
function textCheck(e:Event):void
{
if (i < n)
{
display_txt.text = phrase_string.substr(0,i+1);
i++;
trace(phrase_string.substr(0,i+1));
}
}
This just runs on the first frame of a movieclip containing the dynamic textfield (with fonts embedded) called display_txt
I'm completely flummoxed!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个经典的字体嵌入问题。
某些字体以不同方式处理粗体和斜体粗细,要显示这些粗体或斜体版本,您可能需要添加新的“字体”(相同的字体名称但不同的字体粗细)以导出到库中。
This is a classic font embedding problem.
Some fonts treat bold and italic weights differently, and to display these bold or italic versions, you might need to add a new 'Font' (the same font name but different font weight) to export in your library.