# Within On Handler Question

**URL:** <https://forum.kirupa.com/t/within-on-handler-question/23086>\
**Category:** flash\
**Created:** [June 12, 2003, 5:50pm UTC](https://forum.kirupa.com/t/within-on-handler-question/23086 "2003-06-12T17:50:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aislin](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Aislin](https://forum.kirupa.com/u/Aislin)\
**Post date:** [June 12, 2003, 5:50pm UTC](https://forum.kirupa.com/t/within-on-handler-question/23086/1 "2003-06-12T17:50:09Z")

</div>

Working on Slider Menu by Pom - Works great - Trying to make it so that the individual sections will “go to and play” a certain frame.  
I keep getting this error.

Symbol=1st, Layer=numero, Frame=1: Line 2: Statement must appear within on handler  
gotoAndStop(30);

I’ll try to upload the fla, but uh, might not work.

* * *

Too big, never mind.

---

<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:** [June 12, 2003, 5:53pm UTC](https://forum.kirupa.com/t/within-on-handler-question/23086/2 "2003-06-12T17:53:02Z")

</div>

it means you have some actionscript placed on a button thats not within a block such as

on(press){ }

etc

---

<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:** [June 12, 2003, 6:01pm UTC](https://forum.kirupa.com/t/within-on-handler-question/23086/3 "2003-06-12T18:01:33Z")

</div>

thanks sen, but how do I like… make it… not… …make it fixed. Yeah.

---

<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:** [June 12, 2003, 6:09pm UTC](https://forum.kirupa.com/t/within-on-handler-question/23086/4 "2003-06-12T18:09:47Z")

</div>

it depends what that gotoAndStop(30); is for. Is it supposed to be run on the timeline or when you press the button? If on the timeline, take it off the button, select the timeline then paste it in the actionscript editor there. If by button press, then add the on(press){ around it };

🙂
