# Full Browser Flash - Resize action

**URL:** <https://forum.kirupa.com/t/full-browser-flash-resize-action/298699>\
**Category:** flash\
**Created:** [October 23, 2009, 9:14am UTC](https://forum.kirupa.com/t/full-browser-flash-resize-action/298699 "2009-10-23T09:14:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelus82](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@michaelus82](https://forum.kirupa.com/u/michaelus82)\
**Post date:** [October 23, 2009, 9:14am UTC](https://forum.kirupa.com/t/full-browser-flash-resize-action/298699/1 "2009-10-23T09:14:07Z")

</div>

Hello guys,

i have a question about resize listener for a full browser flash.

**OBJECTIVE**  
to make some function like “initiateAll()” that will be triggered when Stage is resized.  
the function should “hide” all the elements and reposition/re initiate them when the resize is completed

**WHAT I HAVE NOW**  
now i am moving elements constantly using a function moveStuff() that you can see below.

```auto
function moveStuff() {
    myBack._width = Stage.width;
    myBack._height = Stage.height;
    myBack._x = 0;
    myBack._y = 0;
//other 20+ items that are positioning like itemMC = Stage.widht - 300 etc.
  
}
//and the listener
resizeListener = new Object();
resizeListener.onResize = function() {
    moveStuff();
};
Stage.addListener(resizeListener);
//and to run it first time
moveStuff();

```

i would like the function to move my elements only after the resize has stopped.

something like here: ( a bit ) when you resize screen it says “building interface”  
[http://www.emmanuelrouzic.com/](http://www.emmanuelrouzic.com/)

thanks
