another method, besides chubbard's answer, is to simply use the Capabilities class, which also works outside of AIR:
import flash.system.Capabilities; var screenWidth:Number = Capabilities.screenResolutionX; var screenHeight:Number = Capabilities.screenResolutionY;
source share