得到屏幕的宽度: Capabilities.screenResolutionX;
得到屏幕的高度:Capabilities.screenResolutionY;
得到当前窗口的高度:this.height;
得到当前窗口的宽度:this.width;
浏览器窗口:
- Application.application.stage.stageHeight
- Application.application.stage.stageWidth
得到屏幕的宽度: Capabilities.screenResolutionX;
得到屏幕的高度:Capabilities.screenResolutionY;
得到当前窗口的高度:this.height;
得到当前窗口的宽度:this.width;
浏览器窗口:
转载于:https://www.cnblogs.com/mikevictor07/archive/2012/10/13/2722694.html