# A eror in flash

**URL:** https://forum.kirupa.com/t/a-eror-in-flash/42560
**Category:** Uncategorized
**Created:** [February 10, 2004, 12:21pm UTC](https://forum.kirupa.com/t/a-eror-in-flash/42560 "2004-02-10T12:21:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Razvi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/razvi/32/431_2.png) [@Razvi](https://forum.kirupa.com/u/Razvi)
#### Post date: [February 10, 2004, 12:21pm UTC](https://forum.kirupa.com/t/a-eror-in-flash/42560/1 "2004-02-10T12:21:57Z")

</div>

Helo.  
Help me pls to resolve this…  
I have made a button…  
In the button action script i have put  
gotoAndStop(2);  
Then…  
When i go to make the movie a error apears :  
**Error** Scene=Scene 1, layer=Backgorund, frame=1:Line 1: Statement must appear within on handler  
stop();

**Error** Scene=Scene 1, layer=Backgorund, frame=1:Line 2: Statement must appear within on handler  
gotoAndStop(2);

**Error** Scene=Scene 1, layer=Backgorund, frame=1:Line 1: Statement must appear within on handler  
gotoAndStop(2);

Total ActionScript Errors: 3 Reported Errors: 3  
Every time when I put a button  
Pls help me…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 12:28pm UTC](https://forum.kirupa.com/t/a-eror-in-flash/42560/2 "2004-02-10T12:28:07Z")

</div>

A…  
Can you make me pls a model of a nice sound buton(with to bottons thet will Increas and decreas sound Volume…)  
pls help me…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 1:22pm UTC](https://forum.kirupa.com/t/a-eror-in-flash/42560/3 "2004-02-10T13:22:53Z")

</div>

Those error happens because those actions need to be declared inside an _on_ handler, for example _on(press)_, _on(release)_…
