# Aligning

**URL:** <https://forum.kirupa.com/t/aligning/119144>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 9:35pm UTC](https://forum.kirupa.com/t/aligning/119144 "2004-08-11T21:35:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chunk](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@chunk](https://forum.kirupa.com/u/chunk)\
**Post date:** [August 11, 2004, 9:35pm UTC](https://forum.kirupa.com/t/aligning/119144/1 "2004-08-11T21:35:59Z")

</div>

hello all !

i would like to align a movie clip to the bottom left hand side side of the browser, i dont wish for the middle of the the movie clip to be in the center of the bottom left hand corner of the browser this may help explain:

these are my browser corners

|\_ bottom left \_| bottom right

this is my movie clip

* * *

Red is not visible by the viewer (off the browser page)  
Blue is visivle by the viewer ! (on the browser page)

i want it like:

|_[color=royalblue]-------------------------------[/color]_|[color=red]-----------------------------[/color]

not like

[color=red]---------------------------------[/color]|_[color=royalblue]------------------------[/color]_|[color=red]–[/color]

lol hope that helps 😕

i have this code:

Stage.addListener(Interface);  
Stage.align = “TM”;  
Stage.scaleMode = “noScale”;

to make the flash movie as a whole edge to edge with the browser

and this code:

inyer.onResize = function() {  
var bounds = this.getBounds(this.\_parent);  
var yoffset = this.\_y-bounds.yMax;  
var xoffset = this.\_x-bounds.xMax;  
this.\_y = Stage.height+yoffset;  
this.\_x = Stage.width+xoffset;  
};  
inyer.onEnterFrame = function() {  
var bounds = this.getBounds(this.\_parent);  
var yoffset = this.\_y-bounds.yMax;  
var xoffset = this.\_x-bounds.xMax;  
this.\_y = Stage.height+yoffset;  
this.\_x = Stage.width+xoffset;  
};

to make the movie clip align with the bottom left had but the code does:

---------------------------------|_------------------------_|–

indsted of:

|_-------------------------------_|-----------------------------

oh and my movie clip is named inyer

lol bit long and messy, thank you for your help and time

thanks !

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [August 11, 2004, 9:38pm UTC](https://forum.kirupa.com/t/aligning/119144/2 "2004-08-11T21:38:25Z")

</div>

couldn’t you just do

Stage.align=“BR”;  
?

---

<div class="post-metadata">

**Author:** ![chunk](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@chunk](https://forum.kirupa.com/u/chunk)\
**Post date:** [August 11, 2004, 9:53pm UTC](https://forum.kirupa.com/t/aligning/119144/3 "2004-08-11T21:53:02Z")

</div>

no becuase that would be the whole movie i only want the moive clip named inyer to be in the bottom left hand corner.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [August 11, 2004, 9:55pm UTC](https://forum.kirupa.com/t/aligning/119144/4 "2004-08-11T21:55:42Z")

</div>

could you set the registration point (where it bases x and y on) to be the bottom right instead of the top left and then just set the x and y to be stage width and height?

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [August 11, 2004, 10:10pm UTC](https://forum.kirupa.com/t/aligning/119144/5 "2004-08-11T22:10:05Z")

</div>

maybe something like this might work for you

fscommand(“allowscale”, “false”);  
Stage.scaleMode = “showAll”;  
Stage.originalWidth = Stage.Width;  
Stage.originalHeight = Stage.Height;  
Stage.scaleMode = “noScale”;  
Stage.onResize = function() {  
this.left = this.getLeft();  
this.bottom = this.getBottom();  
this.top = this.getTop();  
};  
Stage.getLeft = function() {  
return -1\*(this.width-this.originalWidth)/2;  
};  
Stage.getTop = function() {  
return -1\*(this.height-this.originalHeight)/2;  
};  
Stage.getBottom = function() {  
return this.top+this.height;  
};  
Stage.addListener(Stage);  
Stage.addListener(inyer);  
inyer.onResize = function() {  
this.\_x = Stage.left;  
this.\_y = Stage.bottom;  
};  
//assumes a regpoint of bottomleft

EDIT/

inyer.onResize = function() {  
this.\_x = Stage.getleft();  
this.\_y = Stage.getbottom();  
};

---

<div class="post-metadata">

**Author:** ![chunk](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@chunk](https://forum.kirupa.com/u/chunk)\
**Post date:** [August 12, 2004, 2:39pm UTC](https://forum.kirupa.com/t/aligning/119144/6 "2004-08-12T14:39:54Z")

</div>

ok foget that how do i get the movie clip named inyer to align to the botom of the browser ?
