开发者

beginner flash - delay frame for X seconds then continue

开发者 https://www.devze.com 2022-12-22 21:25 出处:网络
i have a very simple animation in flash CS4. My image travels from point X to point Y over 90 frames. I would like the image to stop at frame 45 for a few seconds, before continuing.

i have a very simple animation in flash CS4. My image travels from point X to point Y over 90 frames. I would like the image to stop at frame 45 for a few seconds, before continuing.

how would i achie开发者_如何学编程ve this

thanks


add this actionscript to the frame 45:

    stop();
    var myTimer:Timer = new Timer(5000, 1);
    myTimer.start();
    myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, function(e:TimerEvent){
        play();
    });
0

精彩评论

暂无评论...
验证码 换一张
取 消