嗨,关于这段代码,我有一些错误。
错误提示:场景1、层'qn1actionscript‘、框架71、第3 1176行:静态类型flash.utils:Timer的值与可能无关的int类型之间的比较。
if((myscore==60)&&(myTimer<=300 )){smiley.visible=true}
else
{smiley.visible=false}发布于 2013-11-13 08:12:50
如果您的计时器被调用,myTimer.currentCount将计算每个tick...so
myTimer=new Timer(300,1),
then your condition should be
if((myscore==60)&&(myTimer.currentCount<=1))https://stackoverflow.com/questions/19947549
复制相似问题