Link to home
Start Free TrialLog in
Avatar of Donelson
Donelson

asked on

frame break;

Is there a way to go to a new frame and NOT FINISH the ActionScript on the current frame

for example:

a = 1;
b = 2;
if (quit_request) {
  gotoAndPlay(2);
  break from this frame;
  }

c = 3;
d = 4;
....... etc etc


I want the playhead to go IMMEDIATELY to frame 2, WITHOUT completing the rest of the script shown...

Thanks
ASKER CERTIFIED SOLUTION
Avatar of sam85281
sam85281

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Donelson
Donelson

ASKER

I was afraid of that...

Oh well.

Thanks.


Or, I could put everything into a function...

if (quit_request) gotoAndPlay(2);
else frame5();

frame5 function () {
blah...
}

If I want the (quit_request) on every frame, the second way might be cleaner...