Stop(); function help...

13 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?

 
Flag Post

onLoad() {
stop();
}

 
Flag Post

fail on my part, thanks! :D

 
Flag Post

I still get that error….
with

onLoad() {
stop();
}

and

function onLoad() {
stop();
}

any other ideas?

 
Flag Post

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

 
Flag Post

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

 
Flag Post

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

 
Flag Post

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


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

stop();

 
Flag Post

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

 
Flag Post

Try:

on(release) {

_root.gotoAndPlay(2);

};  //semicolon here

stop();
 
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

 
Flag Post

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

 
Flag Post

I fixed it now.