# Trouble with a mouse trail

**URL:** <https://forum.kirupa.com/t/trouble-with-a-mouse-trail/188465>\
**Category:** flash\
**Created:** [May 8, 2006, 6:28am UTC](https://forum.kirupa.com/t/trouble-with-a-mouse-trail/188465 "2006-05-08T06:28:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ancerick](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ancerick](https://forum.kirupa.com/u/ancerick)\
**Post date:** [May 8, 2006, 6:28am UTC](https://forum.kirupa.com/t/trouble-with-a-mouse-trail/188465/1 "2006-05-08T06:28:05Z")

</div>

Hy. so i got one toutorial off the internet about mouse trail… but i cant seem to get it to work.

the toutorial lacks in documentation and it only sayd i should paste this script into my movie clip:

onClipEvent (mouseMove) {  
i++;  
this.duplicateMovieClip(“star”+i, i+10);  
\_root[“star”+i].\_x = \_root.\_xmouse;  
\_root[“star”+i].\_y = \_root.\_ymouse;  
}  
onClipEvent (enterFrame) {  
if (this.\_name == “starParent”) {  
\_visible=0;  
}else{  
this.\_alpha -= 5;  
this.\_rotation += 2;  
this.\_xscale -= 5;  
this.\_yscale -= 5;  
if (this.\_alpha \<= 5) {  
removeMovieClip(this);  
}  
}  
}

* * *

i pasted all of the text into frame 1 and made 2 movie clips one named “star” and another “starParent” but i get 3 errors that say:

* * *

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Clip events are permitted only for movie clip instances  
onClipEvent (mouseMove) {

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 7: Clip events are permitted only for movie clip instances  
onClipEvent (enterFrame) {

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 9: Type mismatch in assignment statement: found Number where Boolean is required.  
\_visible=0;

## Total ActionScript Errors: 3 Reported Errors: 3

original toutorial can be found at:

[http://www.flashkit.com/tutorials/Actionscripting/Simple\_P-Chris\_Sa-846/index.php](http://www.flashkit.com/tutorials/Actionscripting/Simple_P-Chris_Sa-846/index.php)

im quite new so pleaze i realy need your help C:-)
