# Gotoandstop question

**URL:** <https://forum.kirupa.com/t/gotoandstop-question/255670>\
**Category:** Uncategorized\
**Created:** [March 25, 2008, 9:00pm UTC](https://forum.kirupa.com/t/gotoandstop-question/255670 "2008-03-25T21:00:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpaum99](https://avatars.discourse-cdn.com/v4/letter/h/e8c25b/32.png) [@hpaum99](https://forum.kirupa.com/u/hpaum99)\
**Post date:** [March 25, 2008, 9:00pm UTC](https://forum.kirupa.com/t/gotoandstop-question/255670/1 "2008-03-25T21:00:04Z")

</div>

I am converting an exitisting as2 fla to as3 and this is my first time even looking at as3.

what am i doing wrong on this?

stop();  
function eventResponse2(evt:MouseEvent):void {  
mc\_navBar.gotoAndStop(“profile”);  
trace(“clicked”);  
}

btn\_profile.addEventListener(MouseEvent.MOUSE\_UP,eventResponse2);

the trace works i comment out the gotoandstop. here is the error i get…

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

Thanks!

Hiren
