Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adobe AIR app fit screen(maximize) by itself

Is there a way to make an Adobe AIR app fit screen(maximize) by itself when it's launched?

like image 963
simplfuzz Avatar asked Nov 26 '25 10:11

simplfuzz


2 Answers

From Abhilash :

Just call the maximize(); function in the Application creation Complete function.

Source : http://groups.google.com/group/flex_india/browse_thread/thread/afd5a97aea768d52/59aabcf6a74171b9#59aabcf6a74171b9

like image 95
simplfuzz Avatar answered Nov 28 '25 00:11

simplfuzz


Add a creationComplete event to your application

   <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx" 
                           width="950" height="500"
                           showStatusBar="false"  
    creationComplete="winApp_creationCompleteHandler(event)">

Then Add the maximize(); function to the creation complete event.

protected function winApp_creationCompleteHandler(event:FlexEvent):void
{

maximize();

}
like image 30
Khattab Avatar answered Nov 28 '25 00:11

Khattab



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!