0
我在我的。至于文件实例:动态文本不显示AS3
private var heroLives:int;
heroLives = 3;
再后来就在我调用一个函数叫做showHeroLives(代码),它看起来像这样:
public function showheroLives() {
heroLivesTxt.text = String(heroLives);
trace(heroLivesTxt.text);
trace(heroLives);
}
我只是使用trace来确保heroLivesTxt被heroLives更新。 heroLivesTxt是舞台上的动态文本框。如果我注释掉showHeroLives(),所以它不会尝试分配一个值,那么heroLivesTxt的分配值(在阶段内)就会显示出来。但是,一旦我实现showHeroLives()通过代码更新文本,即使它跟踪显示我已更新文本,它也会消失。请帮忙!
嵌入字体吗? – prototypical 2013-04-23 16:59:56
使它工作!谢谢! – Erika 2013-04-23 17:27:14