# Duplicate movie clip help

**URL:** <https://forum.kirupa.com/t/duplicate-movie-clip-help/24039>\
**Category:** Uncategorized\
**Created:** [June 25, 2003, 3:25pm UTC](https://forum.kirupa.com/t/duplicate-movie-clip-help/24039 "2003-06-25T15:25:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![massive3215](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/massive3215/32/253_2.png) [@massive3215](https://forum.kirupa.com/u/massive3215)\
**Post date:** [June 25, 2003, 3:25pm UTC](https://forum.kirupa.com/t/duplicate-movie-clip-help/24039/1 "2003-06-25T15:25:32Z")

</div>

On the enter frame of my movie I want to take a movie clip in my library and have 3 instances of it move randomly within a small area (~ 50 x 50 pixels). I also want the alpha to change to 0 and back to 100 every couple of seconds. Should I be using duplicateMovieClip or should I use something else? I’m trying to create something similar to how the leaves react on this site ([http://www.winnersociety.org](http://www.winnersociety.org)). I’m a new actionscripter so if there is an easier way to accomplish this please let me know. Thanks!

Massive3215

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 10:32pm UTC](https://forum.kirupa.com/t/duplicate-movie-clip-help/24039/2 "2003-06-25T22:32:48Z")

</div>

if you want to duplicate a library movieclip then you need to use attachMovie…

the code should look something like this:

[AS]  
MovieClip.prototype.theActions = function () {  
//put whatever actions you want the movie clip to do here  
}  
numInstances = 5  
for (i=1;i\<=numInstances;i++) {  
name = “whatEver” + i  
\_root.attachMovie(“theClipsLinkageIdentifierName” , name , i)  
\_root[name].theActions()  
}  
[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 12:32am UTC](https://forum.kirupa.com/t/duplicate-movie-clip-help/24039/3 "2003-06-26T00:32:15Z")

</div>

if you dont use attachMovie, and use duplicateMovieClip will all the duplicates be reacting to events at the same time?  
even if it was a different duplicate that was actually actioned.

having an issue with check boxes  
posted a thread about it

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=26694](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=26694)

if you just want to the the swf  
[http://www.route108.com/soup/portfolio/check\_box\_2.swf](http://www.route108.com/soup/portfolio/check_box_2.swf)

if you dont really care, i understand

soup
