How to use full-screen mode in Actionscript 2:
_root.btn_mc.onRelease = function(){ if(Stage["displayState"] == "normal"){ Stage["displayState"] = "fullScreen"; }else{ Stage["displayState"] = "normal"; } } var listener:Object = {}; listener.onFullScreen = function(isFullscreen:Boolean){ if(isFullscreen){ trace("entered full-screen mode"); }else{ trace("exited full-screen mode"); } } Stage.addListener(listener);
Thanks! Thanks! Thanks!
I’ve been looing for a way to find out if the swf container for my application is fullscreen or not to make some adjustments in the included swf…and your method does that perfectly …thanks again
Perfect! Just what I was looking for. Short simple, and does a great job of going from fullscreen to normal screen with the listener.