全屏闪存as2
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了全屏闪存as2相关的知识,希望对你有一定的参考价值。
fullScreen_btn.onRelease = fullScreen_btn.onReleaseOutside = toggleFullScreen; fullScreen_btn.onRollOver = onRollOverHandler; fullScreen_btn.onRollOut = onRollOutHandler; function onRollOverHandler() { } function onRollOutHandler():Void { } function toggleFullScreen():Void { if( Stage["displayState"] == "normal"){ goFullScreen(); } else { exitFullScreen(); } } function goFullScreen():Void { Stage["displayState"] = "fullScreen"; } function exitFullScreen():Void { Stage["displayState"] = "normal"; }
以上是关于全屏闪存as2的主要内容,如果未能解决你的问题,请参考以下文章