# Two movie clips that resize on browse ropening

**URL:** <https://forum.kirupa.com/t/two-movie-clips-that-resize-on-browse-ropening/174923>\
**Category:** Uncategorized\
**Created:** [January 10, 2006, 11:52am UTC](https://forum.kirupa.com/t/two-movie-clips-that-resize-on-browse-ropening/174923 "2006-01-10T11:52:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![conzago](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@conzago](https://forum.kirupa.com/u/conzago)\
**Post date:** [January 10, 2006, 11:52am UTC](https://forum.kirupa.com/t/two-movie-clips-that-resize-on-browse-ropening/174923/1 "2006-01-10T11:52:46Z")

</div>

I have this problem with my movies not scaling right on entry to the website. I have two movie clips, the first resizes to fit the browser window the second just shifts to be centered on screen. My problem is that it doesn’t scale right as soon as I open the website, only after resize. how do I get the resize function to start before any thing displays. I also don’t want it to be on a clip event cause I don’t want it have to run over and over every time it flips back and forth from frame to frame.

here’s the code:

trace(Stage.width);  
trace(Stage.height);

function stageResize() {  
scaleable\_mc.\_width = Stage.width+50;  
scaleable\_mc.\_height = Stage.width\*.5;  
scaleable\_mc.\_y = Stage.height\*.5-scaleable\_mc.\_height\*.5;  
centered\_mc.\_x = Stage.width\*.5;  
centered\_mc.\_y = Stage.height\*.5;  
}

//  
Stage.scaleMode = “noScale”;  
myListener = new Object();  
myListener.onResize = function() {  
stageResize();  
};  
Stage.addListener(myListener);

help me please

zago out
