# Duplicate MC

**URL:** <https://forum.kirupa.com/t/duplicate-mc/109140>\
**Category:** Uncategorized\
**Created:** [May 2, 2004, 4:10pm UTC](https://forum.kirupa.com/t/duplicate-mc/109140 "2004-05-02T16:10:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jabird](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jabird](https://forum.kirupa.com/u/Jabird)\
**Post date:** [May 2, 2004, 4:10pm UTC](https://forum.kirupa.com/t/duplicate-mc/109140/1 "2004-05-02T16:10:52Z")

</div>

I was taking this tutorial, [\>\>LINK\<\<](http://www.kirupa.com/developer/actionscript/duplicate.htm) I want to change it from,

```auto

on (click) {

```

Duplicate Movie clip to,

```auto

onClipEvent (Load) {

```

That way once it load’s it will duplicate the circle MC a random number of times (I need help with that part as well)

This circle MC is inside of another MC so it wouldnt be \_root i want it to goto, it would be t\_mc that I want it to look for it in.

So in the t\_mc MC I put this code,

```auto

onClipEvent (load) {
	i = i + 1;
	duplicateMovieClip (t_mc.circle, "circle" + i, i);
}

```

and on the circle, I put this code,

```auto

onClipEvent (load) {
   scale = (random(100) + 50)

   this._x = random(250);
   this._y = random(150);
   this._alpha = random(100);
   this._xscale = scale;
   this._yscale = scale;
}

```

Can anyone tell me what I am doing wrong? I am a real N00b to this actionscript stuff.

I have Flash MX if that helps any.
