# Prototype align 5 diff mc's / swf's

**URL:** <https://forum.kirupa.com/t/prototype-align-5-diff-mcs-swfs/133522>\
**Category:** Uncategorized\
**Created:** [January 9, 2005, 4:36pm UTC](https://forum.kirupa.com/t/prototype-align-5-diff-mcs-swfs/133522 "2005-01-09T16:36:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointer](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@pointer](https://forum.kirupa.com/u/pointer)\
**Post date:** [January 9, 2005, 4:36pm UTC](https://forum.kirupa.com/t/prototype-align-5-diff-mcs-swfs/133522/1 "2005-01-09T16:36:50Z")

</div>

Hello ive made 5 diff codes to give the right positions on my mc’s.  
but the code is all hanging on the mc’s.  
Now i was thinking 2 put all code into 1 keyframe.  
So i think i need to write a prototype of it.

It will be great if somebody can help me out so i can understand more about how 2 write my own prototype for this.  
The file is just for study for me to play a bit with aligning mc’s on stage.

The code that is hanging on the clips are:

Top left

```auto

  this._x = (Stage.width - 780)/2;
  this._y = (Stage.height - 570)/2;
  

```

Top right

```auto

  this._x = (Stage.width - this._width);
  this._y = (Stage.height - 570)/2;
  

```

Center

```auto

  this._x = (Stage.width - this._width)/2;
  this._y = (Stage.height - this._height)/2;
  

```

Bottom right

```auto

  this._x = (Stage.width - this._width);
  this._y = (Stage.height - this._height); 
  

```

Bottom Left

```auto

  this._x = (Stage.width - 780)/2;
  this._y = (Stage.height - this._height);
  

```

My 2nd Q = is there any posibillity to give mc’s or swf’s of a width in %?  
For example, 2 load 5 diff mc’s or swf’s with 20% so i got a total of 100%  
or 4 of 25%.
