2010-04-27 2 views

Répondre

3

ou vous pouvez appeler le maximize(); fonction dans la création de l'application Fonction complète.

+0

Celui-ci a fait l'affaire. Je cherchais quelque chose à mettre à l'intérieur de '' qui est probablement la raison pour laquelle mes recherches ont été lancées vides =). – Nathan

+0

Super. Heureux de vous aider :) –

0

Peut-être que cette aide (d'ici: 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

essayez celui-ci. onCreationComplete - appeler cette méthode de la principale création d'applications complète

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; 
} 
Questions connexes