Welcome to WebmasterWorld Guest from 54.196.244.206

Forum Moderators: open

Message Too Old, No Replies

Is there any way to exit in actionscript?

A simple actionscript question.

     
3:33 am on Jun 3, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:June 16, 2007
posts: 120
votes: 0


Is there a code that will stop a frame of actionscript from running? I know in PHP that there are the exit(), and die() codes.

(Oops. Sorry about the misspelling in the title)

[edited by: MartinWeb at 3:33 am (utc) on June 3, 2009]

7:59 am on June 3, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


stop();

If you want to skip a frame,


frame20.........¦frame21.........¦frame22.....
goToAndPlay(22);¦................¦............

Or rewind,

goToAndStop(1);

or halt based on conditions,

if (condition1) {
stop();
// or goToAndStop(1);
}