Topic: detecting screen size ??

how do i detect screen size 800/320 in actionscript in a simple if loop ?
also how do i resize the flash movie dynamically ?

Re: detecting screen size ??


var screenWidth:Number = System.capabilities.screenResolutionX;
var screenHeight:Number = System.capabilities.screenResolutionY;

Resizing a movie dynamically requires some creativity and there's no easy answer that covers everything a movie might want to do - however, to detect that the movie was resized, you can attach a listener to Stage.onResize.