Ale*_*x C 1 flash actionscript dynamic-text
我曾经写过一个Flash游戏(CS3)并且它曾经工作但是当尝试在CS5中编译相同的FLA文件时不起作用.
我有一个名为tScore的动态文本字段
tScore.text = Score;
Run Code Online (Sandbox Code Playgroud)
用于将用户得分的当前整数值应用于文本框.它不再那样做了.(看起来很空)
通过简单的调试:
tScore.text = Score.toString; // no value shown
tScore.text = String(Score); // no value shown
tScore.text = "A"; // sets the field to the value A
tScore.text = "123"; // no value shown
tScore.text = "C123"; // value "C" shown
tScore.text = "A12A"; // value "AA" shown
tScore.text = "000"; // value "000" shown
tScore.text = "01"; // value "0" shown
Run Code Online (Sandbox Code Playgroud)
我知道在闪存中发生奇怪的事情需要很长时间 - 但是 - 这对我来说没有意义.
有没有人遇到过不接受数字的文本字段?