# Button Problems

**URL:** https://forum.kirupa.com/t/button-problems/217062
**Category:** Uncategorized
**Created:** [February 22, 2007, 5:55pm UTC](https://forum.kirupa.com/t/button-problems/217062 "2007-02-22T17:55:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spastic](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@spastic](https://forum.kirupa.com/u/spastic)
#### Post date: [February 22, 2007, 5:55pm UTC](https://forum.kirupa.com/t/button-problems/217062/1 "2007-02-22T17:55:28Z")

</div>

Basically, I want to add a special layer in my movie that will contain a button that will advance the movie to frame 5, but I can’t seem to make it work! I’ve been using the code:

main\_btn.onRelease=function(){  
gotoAndStop(5);  
};

I’ve included my .fla file, does anyone have any idea why the button doesn’t work?  
(ps. I’ve been playing around with a tutorial found here: [http://www.actionscript.org/resources/articles/549/1/Floating-Background/Page1.html](http://www.actionscript.org/resources/articles/549/1/Floating-Background/Page1.html))

Thanks in advance,

L.
