# Displaying a movie clip at mouse position?

**URL:** <https://forum.kirupa.com/t/displaying-a-movie-clip-at-mouse-position/216592>\
**Category:** flash\
**Created:** [February 18, 2007, 5:16pm UTC](https://forum.kirupa.com/t/displaying-a-movie-clip-at-mouse-position/216592 "2007-02-18T17:16:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laver2k](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/laver2k/32/3320_2.png) [@laver2k](https://forum.kirupa.com/u/laver2k)\
**Post date:** [February 18, 2007, 5:16pm UTC](https://forum.kirupa.com/t/displaying-a-movie-clip-at-mouse-position/216592/1 "2007-02-18T17:16:44Z")

</div>

Hey everyone.  
Im learning actionscript using the tutorials here so im more interested in learning _how_ rather than just getting it done.

Ive come across a problem on something ive been trying to do.  
Ive been trying to make a 10 framed movieclip appear at the mouse position and play continuously. To do this I have a two framed loop.

## Here is my code. Circle\_mc is the movie clip:

//this is the name of my function and what it has in it.  
CreateAtMouse = function () {

**Circle\_mc.duplicateMovieClip(“circlecreate”, 2, {\_x: \_root.\_xmouse, \_y: \_root.\_ymouse});**

};

CreateAtMouse();

* * *

Now this shows only the first frame of the movie clip but DOES follow my mouse around. There are two problems I have.

1. Id like the animation to carry on playing leaving a trail where my mouse has been.
2. I have to have the clip hidden off of the stage to use duplicateMovieClip. Can I get around this?

Thanks for any replies!
