# Button problem

**URL:** https://forum.kirupa.com/t/button-problem/172766
**Category:** Uncategorized
**Created:** [December 17, 2005, 6:24pm UTC](https://forum.kirupa.com/t/button-problem/172766 "2005-12-17T18:24:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fuzzman](https://avatars.discourse-cdn.com/v4/letter/f/82dd89/32.png) [@fuzzman](https://forum.kirupa.com/u/fuzzman)
#### Post date: [December 17, 2005, 6:24pm UTC](https://forum.kirupa.com/t/button-problem/172766/1 "2005-12-17T18:24:23Z")

</div>

everytime i try to make a button that make u go to another frame it says this

> **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler  
> gotoAndPlay(3);

Total ActionScript Errors: 1 Reported Errors: 1

can anyone help?
