# Scaling issue in fluid layout

**URL:** https://forum.kirupa.com/t/scaling-issue-in-fluid-layout/303198
**Category:** Uncategorized
**Created:** [January 15, 2010, 8:46pm UTC](https://forum.kirupa.com/t/scaling-issue-in-fluid-layout/303198 "2010-01-15T20:46:26Z")
**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 15, 2010, 8:46pm UTC](https://forum.kirupa.com/t/scaling-issue-in-fluid-layout/303198/1 "2010-01-15T20:46:26Z")

</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 “tester” 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
