# Mouse.hide() not work in my class file

**URL:** <https://forum.kirupa.com/t/mouse-hide-not-work-in-my-class-file/289538>\
**Category:** flash\
**Created:** [June 1, 2009, 4:10pm UTC](https://forum.kirupa.com/t/mouse-hide-not-work-in-my-class-file/289538 "2009-06-01T16:10:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nighteagle](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nighteagle](https://forum.kirupa.com/u/nighteagle)\
**Post date:** [June 1, 2009, 4:10pm UTC](https://forum.kirupa.com/t/mouse-hide-not-work-in-my-class-file/289538/1 "2009-06-01T16:10:04Z")

</div>

When I use Mouse.hide() function in the actions panel of my fla file it works, but if I use the same function in my class i got **1120: Access of undefined property cursor.** error.  
Have someone idea why is this happening?  
Thanks
