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;
}
精彩评论