# Newbie seeks help with errors 1120 and 1180

**URL:** <https://forum.kirupa.com/t/newbie-seeks-help-with-errors-1120-and-1180/311891>\
**Category:** flash\
**Created:** [July 19, 2010, 5:49pm UTC](https://forum.kirupa.com/t/newbie-seeks-help-with-errors-1120-and-1180/311891 "2010-07-19T17:49:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freelancer412](https://avatars.discourse-cdn.com/v4/letter/f/c68b51/32.png) [@Freelancer412](https://forum.kirupa.com/u/Freelancer412)\
**Post date:** [July 19, 2010, 5:49pm UTC](https://forum.kirupa.com/t/newbie-seeks-help-with-errors-1120-and-1180/311891/1 "2010-07-19T17:49:19Z")

</div>

I’m a newbie to flash and I can’t overwhelm a problem at all. I have a website and I’m intending to extend it, but whenever I’m trying to add a button or more with hyperlink, it’s dropping back the following errors:

1120: Access of undefined property button\_1.  
1120: Access of undefined property button\_2.  
1180: Call to a possibly undefined method navigateToURL.  
1180: Call to a possibly undefined method navigateToURL.

The buttons are defined as button\_1 and button\_2 in their instance and when I use the very same method in a new work, it’s working properly. But when I’m intending to modify my site, adding the new buttons, adding the code on the very same way, it’s continuously dropping these errors.

Here is the code.

```auto
[FONT=&quot]function init() { [/FONT]
  [FONT=&quot]button_1.addEventListener(MouseEvent.CLICK, EmailHyperlink); [/FONT]
  [FONT=&quot]button_2.addEventListener(MouseEvent.CLICK, WebHyperlink);[/FONT]
  [FONT=&quot]} [/FONT]
  [FONT=&quot]init(); [/FONT]
  
  [FONT=&quot]function EmailHyperlink(e:MouseEvent) [/FONT]
  [FONT=&quot]{ [/FONT]
  [FONT=&quot]var email:URLRequest = new URLRequest("mailto:test@test.com"); [/FONT]
  [FONT=&quot]navigateToURL(email);[/FONT]
  [FONT=&quot]} [/FONT]
  
  [FONT=&quot]function WebHyperlink(e:MouseEvent) [/FONT]
  [FONT=&quot]{ [/FONT]
  [FONT=&quot]var web:URLRequest = new URLRequest("http://www.test.com"); [/FONT]
  [FONT=&quot]navigateToURL(web, "_self");[/FONT]
  [FONT=&quot]}[/FONT]

```
