# Access of possibly undefined property useHandCursor

**URL:** https://forum.kirupa.com/t/access-of-possibly-undefined-property-usehandcursor/291777
**Category:** flash
**Created:** [July 5, 2009, 12:36pm UTC](https://forum.kirupa.com/t/access-of-possibly-undefined-property-usehandcursor/291777 "2009-07-05T12:36:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)
#### Post date: [July 5, 2009, 12:36pm UTC](https://forum.kirupa.com/t/access-of-possibly-undefined-property-usehandcursor/291777/1 "2009-07-05T12:36:57Z")

</div>

bold line gives me an error, and I use movieClips which have buttonMode set to true:

```auto
var target:DisplayObject;
function overList(e:MouseEvent):void {
    
    target = DisplayObject(e.target);
    
    if (e.target.name == myArray[blueCounter]) {

        **target.useHandCursor = false;**
        target.removeEventListener(MouseEvent.CLICK, clickPlaylist);
    }
    
}

1119: Access of possibly undefined property useHandCursor through a reference with static type flash.display:DisplayObject.

```
