Full window and onResize question

[FONT=Times New Roman][SIZE=3]Hi[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Been trying to work this one out for ages, I’ve a MC on stage named container_mc and 4 buttons in globalNav_mc, which move the container_mc to 4 different coordinates, everything is ok and works fine, the problem I have is I cant get the onResize listener to reposition the container_mc to whatever position is at when the window is resized.[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Ive tried a few if statement in the listener function but with no luck[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Example :[/SIZE][/FONT]

 
If(container_mc._y ==Stage.width/2-230){
Container_mc.slideTo(Stage.width/2-230,Stage.height/2+230,1,”easeOutExpo”);
}

[SIZE=3][FONT=Times New Roman] Any help would be greatly appreciated [/FONT][/SIZE]

 
var myListener:Object ();
myListener.onResize = function {
globalNav_mc.tween(“_y”,Stage.height/2-230,1,”easeOutExpo”)
globalNav_mc.tween(“_x”,Stage.width/2-350,1,”easeOutExpo”)
}
Stage.addListener(myListener);
myListener.onResize();
 
///// button code and coordinates///
GlobalNav_mc.move1_btn.onRelease = function(){
Container_mc.slideTo(Stage.width/2-230,Stage.height/2+230,1,”easeOutExpo”);
}
GlobalNav_mc.move2_btn.onRelease = function(){
Container_mc.slideTo(Stage.width/2-130,Stage.height/2+110,1,”easeOutExpo”);
}
GlobalNav_mc.move3_btn.onRelease = function(){
Container_mc.slideTo(Stage.width/2-200,Stage.height/2+200,1,”easeOutExpo”);
}
GlobalNav_mc.move4_btn.onRelease = function(){
Container_mc.slideTo(Stage.width/2-180,Stage.height/2+40,1,”easeOutExpo”);
}
//// initial positions///
globalNav_mc._y = Stage.height/2-230;
globalNav_mc._x = Stage.width/2-350;
container_mc._y = Stage.height/2;
container_mc._x = Stage.width/2;