I have made a small class that you can use if you would like to do something when your flash player is scaled to a maximum or minimum size. I have seen this used before where if the user scaled the browser to less then 1024×768 the user was warned to scales their browser to the correct size.
I have also added the ability to ignore all out of bound events with a simple method call.
Download Zip here
http://gfxcomplex.com/blog/wp-content/uploads/2008/07/screensizenotification.zip
Source comes with completed example file.
Heres some example useage
import com.gfxcomplex.screen_management.ScreenSizeNotification;
var testing:ScreenSizeNotification = new ScreenSizeNotification();
testing.manageStage(stage, {minSizeW:550, minSizeH:400, maxSizeW:1000, maxSizeH:850});
testing.addEventListener(ScreenSizeNotification.SCREEN_LESS_THEN_MIN, tooSmall);
testing.addEventListener(ScreenSizeNotification.SCREEN_GREATER_THEN_MAX, tooBig);
function tooSmall(e:Event):void{
trace("Too small");
}
function tooBig(e:Event):void{
trace("Too Big");
}
//if needed to stop event dispatches use testing.ignoreEvents(true);




