Problem with resize function

Well I have this code:

public function addFlow() {
			
for (var i:int=0; i<4; i++) {
// Box is a movieclip exported for actionscript from my library
var box:Box = new Box()
box.x= (yourMC.width)+i*(box.width+100);
box.y = stage.stageHeight-100;		
addChild(box);

Which is ok, but when i put into this function :

public function onStageResize(param1:Event):void {

box.y = stage.stageHeight-100;

}

it doesnt seem to work… when I resize the browser the “box” doesnt stick to its “y position”
Can somebody see the error? :red: