# Duplicating movieclips and hitTests

**URL:** <https://forum.kirupa.com/t/duplicating-movieclips-and-hittests/243449>\
**Category:** Uncategorized\
**Created:** [November 7, 2007, 6:24am UTC](https://forum.kirupa.com/t/duplicating-movieclips-and-hittests/243449 "2007-11-07T06:24:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darth\_Turtle](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@Darth\_Turtle](https://forum.kirupa.com/u/Darth_Turtle)\
**Post date:** [November 7, 2007, 6:24am UTC](https://forum.kirupa.com/t/duplicating-movieclips-and-hittests/243449/1 "2007-11-07T06:24:30Z")

</div>

I was wondering if anyone could explain to me what the actionscript would be if i wanted to duplicate movieClips randomly from the edge of the flash? And how i would make the hit tests for them.

Looking at the tutorial  
[http://www.kirupa.com/developer/actionscript/duplicatemovie\_mx2004.htm](http://www.kirupa.com/developer/actionscript/duplicatemovie_mx2004.htm)  
I don’t get what  
for (i=0; i\<100; i++) {  
means

and what the  
\_alpha  
is in  
{\_x:Math.random()\*300, \_y:Math.random()\*200, \_alpha:Math.random()\*50}

and does it automatically play the movieClip that you duplicated?
