# Error message

**URL:** <https://forum.kirupa.com/t/error-message/284146>\
**Category:** Uncategorized\
**Created:** [March 15, 2009, 11:46pm UTC](https://forum.kirupa.com/t/error-message/284146 "2009-03-15T23:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashjones](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@flashjones](https://forum.kirupa.com/u/flashjones)\
**Post date:** [March 15, 2009, 11:46pm UTC](https://forum.kirupa.com/t/error-message/284146/1 "2009-03-15T23:46:13Z")

</div>

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at play\_fla::MainTimeline/frame1()

I am receiving this error message when my site loads. I have set up a simple flash button to go from frame 1 to frame 2. Frame 2 has a video on it and I am getting the above error message when the page loads.

The url is http:www.apvoices.com/main

Here is the code I have used to create the simple flash page. I am very new to AS3 so dont judge me 🙂

forward\_btn.addEventListener(MouseEvent.CLICK, moveForward);  
back\_btn.addEventListener(MouseEvent.CLICK, moveBackward);

function moveForward(e:MouseEvent):void  
{  
nextFrame();  
//or gotoAndStop(2);  
}

function moveBackward(e:MouseEvent):void  
{  
prevFrame();  
//or gotoAndStop(1);  
}
