# AS2: container - addChild to set position :S array?

**URL:** <https://forum.kirupa.com/t/as2-container-addchild-to-set-position-s-array/288775>\
**Category:** flash\
**Created:** [May 20, 2009, 8:34pm UTC](https://forum.kirupa.com/t/as2-container-addchild-to-set-position-s-array/288775 "2009-05-20T20:34:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adiosamigos](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@adiosamigos](https://forum.kirupa.com/u/adiosamigos)\
**Post date:** [May 20, 2009, 8:34pm UTC](https://forum.kirupa.com/t/as2-container-addchild-to-set-position-s-array/288775/1 "2009-05-20T20:34:37Z")

</div>

Hi I am creating a container. When I press a button outside the container it adds a movieclip.

The movieclip is the width of the container but only a fraction of the height.  
I need to know how to get it so every time I press the button it adds the movieclip after the last one, almost like appending a list.

Does anyone know how I would do this?  
Do I use an array or does flash have some sort of table feature?

Sorry I’m new to Flash and I’m struggling to get my head round it.

Any help is much appreciated 🙂

Tom
