# AIR help required

**URL:** <https://forum.kirupa.com/t/air-help-required/259741>\
**Category:** Uncategorized\
**Created:** [May 8, 2008, 10:30am UTC](https://forum.kirupa.com/t/air-help-required/259741 "2008-05-08T10:30:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yankeedoodles](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yankeedoodles/32/812_2.png) [@yankeedoodles](https://forum.kirupa.com/u/yankeedoodles)\
**Post date:** [May 8, 2008, 10:30am UTC](https://forum.kirupa.com/t/air-help-required/259741/1 "2008-05-08T10:30:19Z")

</div>

Hello guys!  
I have embarked on my first AIR application.  
So now I am trying to resize the main window. I have used the stage.nativeWindow.startResize(NativeWindowResize.BOTTOM\_RIGHT); and it resizes beautifully. But this is not what I want. First of all I want the Stage to Expand…but not the elements. Meaning you know when you create a flash app, they ask you to choose the background color…i want that part to expand but my text, images and such should remain the same size. Any solution for that?

Also, I saw this  
[http://livedocs.adobe.com/labs/air/1/aslr/flash/display/NativeWindow.html#event:resizing](http://livedocs.adobe.com/labs/air/1/aslr/flash/display/NativeWindow.html#event:resizing)  
go to the bottom where they talk about resizing. Does this mean I can do stuff while its being resized such as calculate the middle of the stage and such? if i can can i know how do i add the event to listen to that? cos currently i am using

function resizeWindow(e:MouseEvent):void {  
stage.nativeWindow.startResize(NativeWindowResize.BOTTOM\_RIGHT);  
stage.addEventListener(NativeWindowBoundsEvent.RESIZING,resizing);  
hellooo.text = "STAGE "+String(stage.height);  
}  
function resizing(e:NativeWindowBoundsEvent):void {  
hellooo.text = String(stage.height);  
bg.x=stage.height/2;  
bg.y=stage.width/2;  
}

but i am not getting any value in my “hellooo.text” textfield and neither is my bg centralising as i resize…

Any help?

Thanks  
Murtaza
