# AS3 movie clip instantiation

**URL:** https://forum.kirupa.com/t/as3-movie-clip-instantiation/239007
**Category:** Uncategorized
**Created:** [September 17, 2007, 10:26pm UTC](https://forum.kirupa.com/t/as3-movie-clip-instantiation/239007 "2007-09-17T22:26:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spirton](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@spirton](https://forum.kirupa.com/u/spirton)
#### Post date: [September 17, 2007, 10:26pm UTC](https://forum.kirupa.com/t/as3-movie-clip-instantiation/239007/1 "2007-09-17T22:26:37Z")

</div>

hello

after playing with AS1 3 years ago I returned this year to find half of what i knew changed. Still determined to make AS3 work for me I wonder:

How can I dynamicly istantiate a group of movie clips?

the following code doesn’t work of course but it gives an idea of what i’m trying to do.

for (var i:int = 0; i \< 50; i++) {  
var starlet\*:Star =new Star();  
starlet\*.x = Math.floor(Math.random( )_550);  
starlet_.y = Math.floor(Math.random( )_400);  
addChild(starlet_);  
}

any ideas?  
thnx a lot!
