# Positioning \_mc relative to browser size

**URL:** <https://forum.kirupa.com/t/positioning--mc-relative-to-browser-size/259903>\
**Category:** Uncategorized\
**Created:** [May 9, 2008, 10:28pm UTC](https://forum.kirupa.com/t/positioning--mc-relative-to-browser-size/259903 "2008-05-09T22:28:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apsara](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@apsara](https://forum.kirupa.com/u/apsara)\
**Post date:** [May 9, 2008, 10:28pm UTC](https://forum.kirupa.com/t/positioning--mc-relative-to-browser-size/259903/1 "2008-05-09T22:28:27Z")

</div>

Hi hope you can help me?

I have a sliding dock utilizing a caurina tweener class however am having problems aligning it on the x y scale. I want it to be able to maintain it’s respective position relative to the changing size of the screen. It seems like the x y variable here

```
var baseX:Number = 200;  
var baseY:Number = 200;  

```

keeps it static & I tried to place this code below to keep it’s position relative to browser size but it only centers it. I tried playing around with the x y values but it only works bettween 1 & 2. Is there a way to align it to the bottom right of the screen that will adjust accordingly to browser size?

```auto

Stage.scaleMode = "noScale";
Stage.align = "TL";

myListenerload = new Object ();
myListenerload.onResize = function () {

    slidingdock_mc._x = Stage.width / 1;
    slidingdock_mc._y = Stage.height / 1.5;
	
};
Stage.addListener (myListenerload);
myListenerload.onResize ();

```

As you can see I’m a newbie at all this so If I’m doing something worng here can someone point me in the right direction?

Thanks.
