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.
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/
thanks