Aligning

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 :confused:

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 !

couldn’t you just do

Stage.align=“BR”;
?

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

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?

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();
};

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