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 ?
You are not logged in. Please login or register.
chumbysphere forum → Flash/Widget → 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 ?
Try:
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.
chumbysphere forum → Flash/Widget → detecting screen size ??
Powered by PunBB, supported by Informer Technologies, Inc.