# Simple Movie Clip Alignment Problem

**URL:** <https://forum.kirupa.com/t/simple-movie-clip-alignment-problem/249410>\
**Category:** flash\
**Created:** [January 18, 2008, 12:40pm UTC](https://forum.kirupa.com/t/simple-movie-clip-alignment-problem/249410 "2008-01-18T12:40:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewmerl](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@drewmerl](https://forum.kirupa.com/u/drewmerl)\
**Post date:** [January 18, 2008, 12:40pm UTC](https://forum.kirupa.com/t/simple-movie-clip-alignment-problem/249410/1 "2008-01-18T12:40:50Z")

</div>

Hello to all.

I have a movie that has multiple layers and is published at 100%, no scale.

Within that movie I have all movie assets/clips centered, but one. I am trying to load the final clip to the upper right corner so upon brower resize, it will always be in the upper right corner.

From my understanding I create the clip, do not drag it to stage, instead export it for AS in the library and attach the following code to it:

```auto
cornerBox_mc.onResize = function() {
        var bounds = this.getBounds(this._parent);
        var yoffset = this._y-bounds.yMax;
        this._y = Stage.height+yoffset;
};
Stage.addListener(Interface);
Stage.scaleMode = "noScale";
Stage.align = "TR";
cornerBox_mc.onResize();

```

I’ve pieced this together from 3 examples…needless to say it doesn’t work. Any ideas?

Thank you.
