2010-04-27 70 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; 
} 
相關問題