Output Error...Statement must appear

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…

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.

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.

Is there an echo in here? :p:

Thanks Voetsjoeba & Viru!

You’re welcome :wink:

You’re welcome :wink:

oooo, spooky echo’s :slight_smile: