# Access of possibly undefined property

**URL:** <https://forum.kirupa.com/t/access-of-possibly-undefined-property/292985>\
**Category:** Uncategorized\
**Created:** [July 21, 2009, 6:35pm UTC](https://forum.kirupa.com/t/access-of-possibly-undefined-property/292985 "2009-07-21T18:35:28Z")\
**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 21, 2009, 6:35pm UTC](https://forum.kirupa.com/t/access-of-possibly-undefined-property/292985/1 "2009-07-21T18:35:28Z")

</div>

this works:  
getChildByName(showArray\*).visible = true;

this doesnt:  
getChildByName(showArray\*).mouseEnabled = true;

I am getting an error:

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

```

and these are movieClips inside of an array
