# Shortcut?

**URL:** <https://forum.kirupa.com/t/shortcut/161021>\
**Category:** flash\
**Created:** [August 31, 2005, 1:24pm UTC](https://forum.kirupa.com/t/shortcut/161021 "2005-08-31T13:24:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlecho](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mlecho](https://forum.kirupa.com/u/mlecho)\
**Post date:** [August 31, 2005, 1:24pm UTC](https://forum.kirupa.com/t/shortcut/161021/1 "2005-08-31T13:24:39Z")

</div>

i know there MUST be a faster way to write this (maybe using a for loop???):

```auto

this.createEmptyMovieClip("imageHolder0", this.getNextHighestDepth());
this.createEmptyMovieClip("imageHolder1", this.getNextHighestDepth());
this.createEmptyMovieClip("imageHolder2", this.getNextHighestDepth());
this.createEmptyMovieClip("imageHolder3", this.getNextHighestDepth());
this.createEmptyMovieClip("imageHolder4", this.getNextHighestDepth());
this.createEmptyMovieClip("imageHolder5", this.getNextHighestDepth());
this.createEmptyMovieClip("imageHolder6", this.getNextHighestDepth());

```

or even this:

```auto
var thumbs:Array= new Array (movieRow.thumb0.holder,movieRow.thumb1.holder,movieRow.thumb2.holder,movieRow.thumb3.holder,
movieRow.thumb4.holder,movieRow.thumb5.holder,);

```

i learning about arrays, and rather than writing things over and over, i was hoping to find a faster way, especially if i had to make 50 or 60 instances!
