# On click, duplicate clip?

**URL:** <https://forum.kirupa.com/t/on-click-duplicate-clip/15639>\
**Category:** Uncategorized\
**Created:** [March 16, 2003, 3:47pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639 "2003-03-16T15:47:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronsgoingcrazy](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@ronsgoingcrazy](https://forum.kirupa.com/u/ronsgoingcrazy)\
**Post date:** [March 16, 2003, 3:47pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/1 "2003-03-16T15:47:29Z")

</div>

> **[BETWEEN THE BURIED AND ME](https://www.betweentheburiedandme.com/#_=_)**
>
> btbamofficial

when you get to their flash site, near the top of the pop up window in the center is a little red flower, when you click on it, 3 red flowers drop out of it, the original one you cant click on anymore, but the three that dropped out can be clicked on to span 3 more flowers each . . .and so forth.

how is this done?

UPDATE:

also see my most recent reply below.

---

<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:** [March 16, 2003, 4:00pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/2 "2003-03-16T16:00:04Z")

</div>

You’d have to start with this

[http://www.kirupa.com/developer/actionscript/duplicate.htm](http://www.kirupa.com/developer/actionscript/duplicate.htm)

and edit it. I suppose you’d have to do it by disabling the original mc once used and each time make the new img be the new main duplicator and so on and so on.

---

<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:** [March 16, 2003, 4:10pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/3 "2003-03-16T16:10:01Z")

</div>

thanks a lot, thats a good start.

i’m working on it now, but im really new at all this, so if anyone can further push me in the right direction it’d be greatly appreciated.

---

<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:** [March 16, 2003, 5:28pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/4 "2003-03-16T17:28:02Z")

</div>

can somebody fix this code?

i am trying to set it up so that clicking on a cirle generates another random circle, but the one you’ve already clicked on will not generate any more, you’d have to click on the new ones in order to generate a new one.

here’s the coded I added to the circle movie clip

* * *

on (release) {  
i = i+1;  
for (j=0; j\<1; j++) {  
duplicateMovieClip(\_root.circle, “circle”+i, i);  
}  
}

* * *

the result is that clicking on the circle generates a new one, but if you click on any circle twice it dissappears.

---

<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:** [March 16, 2003, 6:26pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/5 "2003-03-16T18:26:27Z")

</div>

on(release){  
this.enabled =false;  
}

---

<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:** [March 16, 2003, 7:01pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/6 "2003-03-16T19:01:09Z")

</div>

Ahhh neat!

---

<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:** [March 16, 2003, 7:08pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/7 "2003-03-16T19:08:33Z")

</div>

[AS]on (release) {  
i++;  
for (j=0; j\<1; j++) {  
\_root.circle.duplicateMovieClip(“circle”+i, i)  
}  
}[/AS]

i++ is the same as i = i+1

\_root.circle.duplicateMovieClip(“circle”+i, i) is the same as what you have as well.

Just a few alternative methods 😉

---

<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:** [March 16, 2003, 7:42pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/8 "2003-03-16T19:42:16Z")

</div>

What’s the:

on(release){  
this.enabled =false;  
}

for?

---

<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:** [March 16, 2003, 7:43pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/9 "2003-03-16T19:43:59Z")

</div>

> the result is that clicking on the circle generates a new one, but if you click on any circle twice it dissappears.

The solution to that would be to disable the button. So set its enabled to false.

So overall the code would be…

[AS]on (release) {  
i++;  
for (j=0; j\<1; j++) {  
\_root.circle.duplicateMovieClip(“circle”+i, i)  
}  
this.enabled = false;  
}[/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:** [March 16, 2003, 7:46pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/10 "2003-03-16T19:46:48Z")

</div>

it mean… when u release, the button is inactive…  
to activate it again change it to true…

---

<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:** [March 16, 2003, 7:50pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/11 "2003-03-16T19:50:29Z")

</div>

lost… would u help me with my problem?? pleease…  
(post: kax!!illyas…!!anyone!!helP!!)

---

<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:** [March 16, 2003, 7:57pm UTC](https://forum.kirupa.com/t/on-click-duplicate-clip/15639/12 "2003-03-16T19:57:36Z")

</div>

Oh I see… call for kax and ilyas, but come crawling to me for help…hehe. Just kidding. I will check that thread out in a second.
