Adobe AIR app fit screen(maximize) by itself
-
10-07-2019 - |
Question
Is there a way to make an Adobe AIR app fit screen(maximize) by itself when it's launched?
Solution
From Abhilash :
Just call the maximize(); function in the Application creation Complete function.
OTHER TIPS
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();
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow