# Cursor icon changes on movie within a movie

**URL:** https://forum.kirupa.com/t/cursor-icon-changes-on-movie-within-a-movie/250665
**Category:** Uncategorized
**Created:** [January 31, 2008, 3:07pm UTC](https://forum.kirupa.com/t/cursor-icon-changes-on-movie-within-a-movie/250665 "2008-01-31T15:07:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MIRADORO](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@MIRADORO](https://forum.kirupa.com/u/MIRADORO)
#### Post date: [January 31, 2008, 3:07pm UTC](https://forum.kirupa.com/t/cursor-icon-changes-on-movie-within-a-movie/250665/1 "2008-01-31T15:07:19Z")

</div>

;( hi

i have a movie clip that changed the cursor icon. But once i inserted the movie within another movie it stopped working.

heres the code of my movie clip ( FLASH 8 -ACTIONSCRIPT 2)

\_root.onMouseMove = function() {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {

if (isAttached) {  
Mouse.hide();  
\_root.attachMovie(“cursor”, “cursor”, 1);  
isAttached = false;  
}  
with (cursor) {  
\_x = \_root.\_xmouse;  
\_y = \_root.\_ymouse;  
}

} else {

if (!isAttached) {  
Mouse.show();  
cursor.removeMovieClip();  
isAttached = true;  
}  
}  
};

Please help !!!
