/ Published in: Other
Expand |
Embed | Plain Text
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"; }
Comments
Subscribe to comments
You need to login to post a comment.

Fullscreen is not enabled by default, so in the html you'll need to do something like:
Full screen is not enabled by default, so to make this work you must include something like this in the html:
``
Full screen is not enabled by default, so to make this work you must include something like this in the html:
embed src="example.swf" allowFullScreen="true" ...Sorry so many comments, but code is not showing up in the comments.