Stop(); function help...

Subscribe to Stop(); function help... 14 posts

avatar for ChaosJon ChaosJon 121 posts
Flag Post

very simple question here:

I want my movie to stop on the first frame, In actions I have

stop();

it says its needs to appear within on Handler
any help?

 
avatar for jonathanasdf jonathanasdf 3910 posts
Flag Post

onLoad() {
stop();
}

 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

fail on my part, thanks! :D

 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

I still get that error….
with

onLoad() {
stop();
}

and

function onLoad() {
stop();
}

any other ideas?

 
avatar for Maqrkk Maqrkk 45 posts
Flag Post

I don’t know what error this is, could you copy/paste it?

 
avatar for UnknownGuardian UnknownGuardian 8139 posts
Flag Post

Your original code should have worked. That probably means that you have code elsewhere that is causing the problem.

 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

Statement must appear within on handler (description)
stop(); (source)

 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

and the only other code I have so far is on a button in that frame


on(release) {
_root.gotoAndPlay(2);
}

stop();

 
avatar for SavageWolf SavageWolf 2880 posts
Flag Post

Make sure the actions panel says “Actions – Frame” or something similar, rather than “Actions – Button” or something.

 
avatar for UnknownGuardian UnknownGuardian 8139 posts
Flag Post

Try:

on(release) {

_root.gotoAndPlay(2);

};  //semicolon here

stop();
 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

1. for the original problem, it was under the frame’s actions (SavageWolf)
2. when I try doing that, it just adds another error (UnknownGuardian

 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

ok, now all I’m getting is an error in that button…

 
avatar for Eddie1996 Eddie1996 343 posts
Flag Post
Originally posted by ChaosJon:

ok, now all I’m getting is an error in that button…

Ok, tell me exactly what the problem is.

 
avatar for ChaosJon ChaosJon 121 posts
Flag Post

I fixed it now.