标签:
Application.application.stage.addEventListener(Event.RESIZE, function(event:Event):void
{
trace("screenResolutionX", Application.application.width);
trace("screenResolutionY", Application.application.height);
trace("screenResolutionX", stage.stageWidth);
trace("screenResolutionY", stage.stageHeight);
});Application.application.addEventListener(ResizeEvent.RESIZE, function(event:ResizeEvent):void
{
trace("aa", Application.application.width);
trace("bb", Application.application.height);
});
Application.application.dispatchEvent(new ResizeEvent(ResizeEvent.RESIZE));
标签:
原文地址:http://www.cnblogs.com/chencidi/p/4897177.html