0
var myTimer:Timer = new Timer(1000);
    myTimer.addEventListener(TimerEvent.TIMER, countdownHandler);
    function countdownHandler(event:TimerEvent):void{   
        countdown1.text = 100-myTimer.currentCount+"seconds Left";
        if(myTimer.currentCount==100){gotoAndStop(66)}  
    }
function start_btn_clicked(e:MouseEvent):void{
    gotoAndPlay(getLevelFrame(1));
    myTimer.start();
    SoundMixer.stopAll();
}

ステージにカウントダウン タイマーを配置しようとしていますが、タイマーがステージに表示されませんでした。印刷された単語は「seconds Left」ではなく、「secons eft」でした。他のシーンでは走れますが、これは走れません。

4

1 に答える 1