# Updating MovieClips position with an array

**URL:** <https://forum.kirupa.com/t/updating-movieclips-position-with-an-array/313615>\
**Category:** flash\
**Created:** [September 4, 2010, 12:59pm UTC](https://forum.kirupa.com/t/updating-movieclips-position-with-an-array/313615 "2010-09-04T12:59:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnknownMystery](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UnknownMystery](https://forum.kirupa.com/u/UnknownMystery)\
**Post date:** [September 4, 2010, 12:59pm UTC](https://forum.kirupa.com/t/updating-movieclips-position-with-an-array/313615/1 "2010-09-04T12:59:21Z")

</div>

I did this to dynamcy create a instance of a MovieClip whenever my downKey boolean variable was true

```php
 var Lasers:Array = [];

if (downKey == true) {
		var Laser:MovieClip = new laser();
		Laser.name = "Laser" + 1;
		addChild(Laser);
		Laser.x = 200;
		Laser.y = 200;
		Lasers[1] = Laser;

}

```

works fine, but now I would like to update the position of the MovieClips every frame, I understand that it should be in my enter frame function but I dont understand how to access the MovieClips. Thanks in Advance.
