Code to fit Adobe AIR application in the desktop window

To fit the Adobe Window Application in the desktop you need to call the below script in the applicationComplete event.
ie
In mxml file
applicationComplete="init()"

In the script add the below function
private function init():void
{
this.nativeWindow.maximize();
}