I have a toggler icon to switch between full screen and normal screen. When the user is in normal screen the icon is a plus sign and when in full screen the icon is a minus sign.
This works fine until the user presses escape to exit full screen mode. Doing this doesn't cause the icon to switch back.
I have a movieClip called toggler with two frames, one containing the plus, the other the minus sign.
How could I get around this???Code:function toggleFullScreen(){ if(Stage["displayState"]=="normal"){ toggler.gotoAndStop(2); Stage["displayState"]="fullScreen"; }else{ toggler.gotoAndStop(1); Stage["displayState"]="normal"; } } var resizeListener:Object = new Object(); resizeListener.onResize = function () { toggleFullScreenButton._x=Stage.width/2; toggleFullScreenButton._y=Stage.height/2; } Stage.addListener(resizeListener); toggler.onRelease = function() { toggleFullScreen(); }




Reply With Quote
