# TypeError: Error #1010: A term is undefined and has no properties

**URL:** <https://forum.kirupa.com/t/typeerror-error-1010-a-term-is-undefined-and-has-no-properties/314009>\
**Category:** Uncategorized\
**Created:** [September 16, 2010, 2:21am UTC](https://forum.kirupa.com/t/typeerror-error-1010-a-term-is-undefined-and-has-no-properties/314009 "2010-09-16T02:21:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valstorm](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@Valstorm](https://forum.kirupa.com/u/Valstorm)\
**Post date:** [September 16, 2010, 2:21am UTC](https://forum.kirupa.com/t/typeerror-error-1010-a-term-is-undefined-and-has-no-properties/314009/1 "2010-09-16T02:21:20Z")

</div>

Ok, this is driving me insane.

I have my AS3 on the main timeline in the first frame:

```auto
import flash.events.MouseEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;

hero.btn_purchaseNow.addEventListener(MouseEvent.CLICK, getLink);

var url:String = "http://www.addresshere.com/";

function getLink(e:MouseEvent):void
{
    var request:URLRequest = new URLRequest(url);
    try {
        navigateToURL(request, '_blank');
    } catch (e:Error) {
        trace("Error occurred!");
    }
}

```

I have a movieclip called ‘hero’ sitting in frame(1) on the timeline.

Inside that movieclip is another movieclip ‘btn\_purchaseNow’ which will act as my button. This button is animated with keyframes, and in every keyframe it shares the same instance name of ‘btn\_purchaseNow’.

When I export my flash file or test, I get the following line in the output window:

```auto
TypeError: Error #1010: A term is undefined and has no properties.
    at Hero_fla::MainTimeline/frame1()

```

The issue is not an incorrectly named instance, I’ve checked.

Could somebody please suggest a reason for why my button will not work?
