# Arranging Movieclips headache

**URL:** <https://forum.kirupa.com/t/arranging-movieclips-headache/233384>\
**Category:** flash\
**Created:** [July 23, 2007, 4:36pm UTC](https://forum.kirupa.com/t/arranging-movieclips-headache/233384 "2007-07-23T16:36:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaymondP](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@RaymondP](https://forum.kirupa.com/u/RaymondP)\
**Post date:** [July 23, 2007, 4:36pm UTC](https://forum.kirupa.com/t/arranging-movieclips-headache/233384/1 "2007-07-23T16:36:51Z")

</div>

Here is a confusing one , My website is pritty simple a window based design i basicly have the content inside movieclips and im using \_root.attachmovie toload them , Now im working on completing the project

Anyway im trying to add a taskbar to my websitre ive managed to get it to load a taskbar icon whenever a new window is open by launching the fuction below

```auto

function AddWindow() {
var icon = attachMovie("TaskbarIcon", _root.CurrentWindow, 10);
icon._x = this._width / 2 - icon._width / 2;
icon.Name.text = _root.WindowName;
}

```

My problem is im trying to find a way to arrange these movieclips theyre ninstance name is set using the name of the new window name . At the moment they simply load over eachother in the center of the taskbar . Im looking for a way to get them to arange in the center of the taskbar like [**this**](http://i11.tinypic.com/62gje47.png) .

Can anyone tell me how to do this possiblyy by putting them into an array or something ?
