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));
时间: 2024-11-08 14:56:04