# Output Error...Statement must appear

**URL:** <https://forum.kirupa.com/t/output-error-statement-must-appear/28857>\
**Category:** Uncategorized\
**Created:** [August 19, 2003, 2:11pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857 "2003-08-19T14:11:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)\
**Post date:** [August 19, 2003, 2:11pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857/1 "2003-08-19T14:11:18Z")

</div>

I put a stop action at the end of a movie clip, common normal thing that I have never had any problem with.

I am getting this error when I test the movie:

Symbol=tumbleweed\_mc2, Layer=Layer 1, Frame=45: Line 1: Statement must appear within on/onClipEvent handler  
stop();

It is still playing ok, but why would I be getting an error?  
Doesn’t make sense to 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:** [August 19, 2003, 2:14pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857/2 "2003-08-19T14:14:59Z")

</div>

Looks like you put it on a movieclip instead of on a frame. You can’t use[AS]  
stop();  
[/AS]  
just like that on a movieclip. It has to be placed within an on/onClipEvent handler (eg on(press) / onClipEvent(load) ). You said the movie still stopped. Are you sure you haven’t put the stop() action on both the frame and the mc ? That would be a possible cause of the error but the movieclip still stopping.

---

<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:** [August 19, 2003, 2:16pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857/3 "2003-08-19T14:16:52Z")

</div>

When you added the stop(); it looks like you’ve added **to** the MC and not **in** the MC itself.

You must of had the MC selected and then opened the actions panel and put the stop(); action in there. Instead, double click the MC so you can see the timeline for the MC, and add the stop(); action in there.

Regards,  
Viru.

---

<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:** [August 19, 2003, 2:17pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857/4 "2003-08-19T14:17:12Z")

</div>

Is there an echo in here? :p:

Thanks Voetsjoeba & Viru!

---

<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:** [August 19, 2003, 3:19pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857/5 "2003-08-19T15:19:46Z")

</div>

You’re welcome 😉

---

<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:** [August 19, 2003, 3:55pm UTC](https://forum.kirupa.com/t/output-error-statement-must-appear/28857/6 "2003-08-19T15:55:01Z")

</div>

You’re welcome 😉

oooo, spooky echo’s 🙂
