# Object trail

**URL:** https://forum.kirupa.com/t/object-trail/4478
**Category:** Uncategorized
**Created:** [August 11, 2002, 6:43am UTC](https://forum.kirupa.com/t/object-trail/4478 "2002-08-11T06:43:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sw0L\_z](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Sw0L\_z](https://forum.kirupa.com/u/Sw0L_z)
#### Post date: [August 11, 2002, 6:43am UTC](https://forum.kirupa.com/t/object-trail/4478/1 "2002-08-11T06:43:55Z")

</div>

how can i make a trail that follows behind a object that i have following the mouse? Sort of how on windows u can set ur mouse trail…and the trail that follows, is it possible to do that with actionscript and how?

---

<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 11, 2002, 6:02pm UTC](https://forum.kirupa.com/t/object-trail/4478/2 "2002-08-11T18:02:45Z")

</div>

Use duplicateMovieClip().

Here is a tutorial on it…

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

The tutorial uses it in a button, but it shouldn’t be too hard to use it to follow the mouse.

[http://www.kirupa.com/developer/flash5/follow.asp](http://www.kirupa.com/developer/flash5/follow.asp)

Just in case, there is a tutorial that teaches you how to make an object follow the mouse.

Just combine both tutorials.

Hope it helps!
