# Question - Frame Jumping Buttons

**URL:** <https://forum.kirupa.com/t/question-frame-jumping-buttons/288977>\
**Category:** Uncategorized\
**Created:** [May 24, 2009, 12:27pm UTC](https://forum.kirupa.com/t/question-frame-jumping-buttons/288977 "2009-05-24T12:27:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![udi001](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@udi001](https://forum.kirupa.com/u/udi001)\
**Post date:** [May 24, 2009, 12:27pm UTC](https://forum.kirupa.com/t/question-frame-jumping-buttons/288977/1 "2009-05-24T12:27:26Z")

</div>

Hello,  
I’m quite new to flash and as3, and i have this problem:

\*\*\* you can see the code on post no’5\*\*\*

I have a button (lets say bt1) that has an eventListener on frame 1, with a function gotoAndStop (2);

When i click on it, it goes to frame 2. but! when i go back to frame 1 (with another button that works just fine) i get a NULL REFERENCE ERROR.  
\*\* bt1 does not exist in frame 2

I noticed that if i had the button in frame 2 as well, this wouldn’t happan (but i can’t put it there)

What’s wrong?
