开发者

mediadisplay complete

开发者 https://www.devze.com 2023-04-09 09:31 出处:网络
I am use Mediadisplay in stage. I want to make show button When video is complete. But not show play button after video completed. How can I do this. Thanks for answers.

I am use Mediadisplay in stage. I want to make show button When video is complete. But not show play button after video completed. How can I do this. Thanks for answers.

general.video_button.onRelease = function(){
    general.video.play(0);
    general.video_button._visible = false;
}

general.video.complete = func开发者_高级运维tion (){
    general.video_button._visible = true;
    }


Ok I am make.

general.video.addEventListener("complete",example); 

function example(){
    general.video_button._visible = true;
}
0

精彩评论

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

关注公众号