开发者

as2 video resume

How can I do resume video.

gen开发者_运维技巧eral.video_button.onRelease = function(){
    if (general.stop_button._visible == false){
        general.video.resume();
    }
    general.video.play(0);
    general.video_button._visible = false;
    general.stop_button._visible = true;
}

Thanks for answers.


If Video.pause() was previously called, playback begins from the current position. If Video.stop() was previously called, playback begins from the first frame.

general.video_button.onRelease = function(){
    if (general.stop_button._visible == false){
        general.video.resume();
        general.video_button._visible = true;
        general.stop_button._visible = false;
        return;
    }
    general.video.pause();
    general.video_button._visible = false;
    general.stop_button._visible = true;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜