# Really REALLY simple question

**URL:** <https://forum.kirupa.com/t/really-really-simple-question/158783>\
**Category:** Uncategorized\
**Created:** [August 11, 2005, 8:41pm UTC](https://forum.kirupa.com/t/really-really-simple-question/158783 "2005-08-11T20:41:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wedge\_oli](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@wedge\_oli](https://forum.kirupa.com/u/wedge_oli)\
**Post date:** [August 11, 2005, 8:41pm UTC](https://forum.kirupa.com/t/really-really-simple-question/158783/1 "2005-08-11T20:41:39Z")

</div>

Hi guys, this seems like such a simple question, but I can’t seem to crack it… I’m trying to use a loop with the CreateEmptyMovieClip method to make several different movie clips, but it seems that each time I make a new empty clip, it replaces the old one!

var counter:Number = 0;  
function image(count) {  
this.createEmptyMovieClip(counter, this\_mc.getNextHighestDepth());  
}  
test\_btn.onRelease = function() {  
image(counter);  
counter++;  
};

For example, in the example, you press the test\_btn once, you get a movie clip called ‘0’. You press it again, that move clip is replaced by one called ‘1’. What I want is, on the second click to have TWO movie clips, 1 and 2…

thanks,

-oliver-
