# Newbie having Trouble - Error #1009

**URL:** https://forum.kirupa.com/t/newbie-having-trouble-error-1009/319455
**Category:** flash
**Created:** [February 21, 2011, 4:35pm UTC](https://forum.kirupa.com/t/newbie-having-trouble-error-1009/319455 "2011-02-21T16:35:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RCNLE](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@RCNLE](https://forum.kirupa.com/u/RCNLE)
#### Post date: [February 21, 2011, 4:35pm UTC](https://forum.kirupa.com/t/newbie-having-trouble-error-1009/319455/1 "2011-02-21T16:35:24Z")

</div>

I am new to Flash and am working on a banner slider where there are 5 different images (slides) that come onto the scene about 8 seconds apart. Each slide I am trying to link to a web page but am getting the error; TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at NLE\_fla::MainTimeline/frame1()

I’m sure it has to do with the link on the second slide not being found since the slide doesn’t load right away. Am I supposed to be loading some variables first or something? Here’s my code;

slide\_btn1.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToWebPage1);

function fl\_ClickToGoToWebPage1(event:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.adobe.com](http://www.adobe.com)”), “\_blank”);  
}

slide\_btn2.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToWebPage\_2);

function fl\_ClickToGoToWebPage\_2(event:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.adobe.com](http://www.adobe.com)”), “\_blank”);  
}
