# AS2 help - scaling issue in liquid layout

**URL:** <https://forum.kirupa.com/t/as2-help-scaling-issue-in-liquid-layout/303206>\
**Category:** flash\
**Created:** [January 16, 2010, 4:48am UTC](https://forum.kirupa.com/t/as2-help-scaling-issue-in-liquid-layout/303206 "2010-01-16T04:48:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![media\_mixx](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@media\_mixx](https://forum.kirupa.com/u/media_mixx)\
**Post date:** [January 16, 2010, 4:48am UTC](https://forum.kirupa.com/t/as2-help-scaling-issue-in-liquid-layout/303206/1 "2010-01-16T04:48:03Z")

</div>

I am sure this is an easy one but I can’t figure it out:

I have a movieclip (tester) that I am locating on the stage via the following code:

setStage();

var stageListener:Object = new Object();

Stage.addListener(stageListener);  
stageListener.onResize = function() {  
setStage();  
};

function setStage() {  
var WIDTH:Number = Stage.width;  
var HEIGHT:Number = Stage.height;

tester.\_x = Stage.width/2;  
tester.\_y = (Stage.height + -70)/2;

What I want to have happen is have it start in that location but when you drag the browser window open the movieclip scales in place to a certain percentage - basically as the window gets bigger I want it to stay in the same place but get bigger and be able to control how big as the window opens.

Can anyone help out…

Thank you
