# Duplicating Clips, on click...?

**URL:** <https://forum.kirupa.com/t/duplicating-clips-on-click/972>\
**Category:** flash\
**Created:** [August 5, 2002, 3:50am UTC](https://forum.kirupa.com/t/duplicating-clips-on-click/972 "2002-08-05T03:50:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Decoy](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Decoy](https://forum.kirupa.com/u/Decoy)\
**Post date:** [August 5, 2002, 3:50am UTC](https://forum.kirupa.com/t/duplicating-clips-on-click/972/1 "2002-08-05T03:50:10Z")

</div>

Hi,

I have been trying to get my website so that, no matter where u click, a “ripple” will appear around the cursor and REMAIN where you originally clicked until the animation has stopped playing. I have tried doing it by having a button that is invisible that is dragged by the cursor, but i do not know how to get the duplicated movie clip to stay where i clicked?

I have just created a simple “ripple” movie clip to be played on click.

I am not very fluent with action script so i don’t really know how to use the duplicate movie clip function, or how to get the duplicated clip to be on the X and Y position of the mouse…

I have seen this effect done in the signiture of one of the members on here, but i don’t recall who it was…

Any help is greatly appreciatted.

Thanks…

:rambo: :rambo: :rambo:

---

<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:** [August 5, 2002, 4:15am UTC](https://forum.kirupa.com/t/duplicating-clips-on-click/972/2 "2002-08-05T04:15:21Z")

</div>

I suck at actionscript too! But try this (paste it into a frame, not a movie clip)…

```auto

_root.follower.onMouseDown = function() {
	_root.follower._x = _xmouse;
	_root.follower._y = _ymouse;
	_root.follower.gotoAndPlay(1);
};

```

Follower = your Movie Clip, so change that to whatever the instance name of your movie clip is.

Hopefully this helps.

Like I said, I am not that good with AS, I just started learning it not too long ago, but I tried that with a square movie clip that I had tweening to a larger size.

It may not be exactly what you wanted, but maybe you can adapt it in some way.

---

<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:** [August 5, 2002, 2:54pm UTC](https://forum.kirupa.com/t/duplicating-clips-on-click/972/3 "2002-08-05T14:54:25Z")

</div>

Dude, you hit the nail on the head, thank you so mouch, it works perfectly!

Thanks!

:rambo: :rambo: :rambo:

---

<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:** [August 5, 2002, 4:44pm UTC](https://forum.kirupa.com/t/duplicating-clips-on-click/972/4 "2002-08-05T16:44:48Z")

</div>

No problem, glad to be of service =)
