# Need Help : Going Back frames!

**URL:** <https://forum.kirupa.com/t/need-help-going-back-frames/298706>\
**Category:** Uncategorized\
**Created:** [October 23, 2009, 12:19pm UTC](https://forum.kirupa.com/t/need-help-going-back-frames/298706 "2009-10-23T12:19:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashr](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Flashr](https://forum.kirupa.com/u/Flashr)\
**Post date:** [October 23, 2009, 12:19pm UTC](https://forum.kirupa.com/t/need-help-going-back-frames/298706/1 "2009-10-23T12:19:03Z")

</div>

Hello all

So i am building a portfolio and have my main stage with three frames, the first is my navigation section with 2 buttons

button 1 sends the playhead to frame2 and button sends the playhead to frame3 etc

here is the code  
\<a\>stop();

ShowReel\_btn.addEventListener(MouseEvent.MOUSE\_DOWN , Showreel)

function Showreel(evt:MouseEvent) : void {  
gotoAndStop(2)  
}

VizualTech\_btn.addEventListener(MouseEvent.MOUSE\_DOWN , Viz)

function Viz(evt:MouseEvent) : void {  
gotoAndStop(3);  
}\</a\>

and that works

now on frames 2 and 3 i have a button that has this code

\<a\>Home\_btn.addEventListener(MouseEvent.CLICK , goback );

function goback(evt:MouseEvent) : void {  
gotoAndPlay(1)  
} \</a\>

and it works but gives me this error :

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at WorkingMain\_fla::MainTimeline/frame1()  
at flash.display::MovieClip/gotoAndPlay()  
at WorkingMain\_fla::MainTimeline/goback()

it does put me back on to the frame 1 but the buttons dont work after that…

…this wouldnt have happened in AS 2.0

anyidea how to get around this please ?
