2010-04-27 41 views

回答

3

或者您可以拨打最大化();功能在应用程序创建完成功能。

+0

这一个伎俩。我正在寻找一些东西放在''这可能是为什么我的搜索是空的=)。 – Nathan 2010-04-27 16:01:34

+0

太好了。乐意效劳 :) – 2010-04-27 17:52:56

0

也许这有助于(从这里:http://www.kerkness.ca/how-to-launch-an-adobe-air-windowedapplication-in-full-screen-mode/

<?xml version="1.0" encoding="utf-8"?> 
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()"> 
    <mx:Script> 
    <![CDATA[ 
     private function init():void 
     { 
      systemManager.stage.displayState=flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE 
     } 
    ]]> 
    </mx:Script> 
</mx:WindowedApplication> 
0

试试这个。 onCreationComplete - 称主应用程序创建完成的这种方法

private function onCreationComplete():void{ 
var current:Screen; 
var scrArray:Array = Screen.screens; 
var screens:Array = Screen.getScreensForRectangle(stage.nativeWindow.bounds); 
(screens.length > 0) ? current = screens[0] : current = Screen.mainScreen; 
this.width = current .bounds.width ; 
this.height = current .bounds.height; 
this.nativeWindow.x = 0; 
this.nativeWindow.y = 0; 
} 
相关问题