# TypeError: Error #1010

**URL:** <https://forum.kirupa.com/t/typeerror-error-1010/323145>\
**Category:** Uncategorized\
**Created:** [June 18, 2011, 8:16pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/323145 "2011-06-18T20:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashAj325](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@FlashAj325](https://forum.kirupa.com/u/FlashAj325)\
**Post date:** [June 18, 2011, 8:16pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/323145/1 "2011-06-18T20:16:00Z")

</div>

[FONT=Courier New]I am making a point-and-click game, and one of the objects is a pencil that I have placed in a cabinet. You have to click on a drawer, then click on the pencil to get it. I placed this code on the same frame that the pencill is in, and the same MovieClip as well:[/FONT]

```auto

pencil1_mc.addEventListener(MouseEvent.CLICK, pencil1Description);
function pencil1Description(event:MouseEvent):void{
 this.info_txt.text = "A small wooden pencil.";
 pencil1_mc.visible = false;
}

```

[FONT=Courier New]And when I test it, it gives me this error:[/FONT]  
[FONT=Courier New][/FONT]  
TypeError: Error #1010: A term is undefined and has no properties.  
at Point\_fla::CabinetDrawer2\_14/thingDescription()

[FONT=Courier New]Help? -FlashAj325[/FONT]
