On click, duplicate clip?

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.

You’d have to start with this

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.

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.

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.

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

Ahhh neat!

[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 :wink:

What’s the:

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

for?

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]

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

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

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.