PDA

View Full Version : skipping a scene in Flash



visual
04-09-2007, 01:54 PM
I have a Flash document with three scenes; CHOOSE, STEVE, LIDIA
I have a two buttons on CHOOSE, which is the first screen, going to STEVE and LIDIA. Getting to STEVE is a snap:

on(release){
nextScene();
}

...BUT...HOW do a code the button to get to the LIDIA scene?
I want the LIDIA button to skip past the STEVE scene to the scene after, called LIDIA.
I have attempted (guessed) two variations and neither work:

on(release){
lidia.scene();
}

on(release){
Scene("lidia");
}

How do I write the ActionScript to accomplish this?

I know I have asked a lot of questions lately. I appreciate everyone's willingness to help me!!

Johnny Gulag
04-09-2007, 02:32 PM
Hello

Try this:
on(release){
gotoAndPlay("LIDIA", 1);
}I think that is it. Though for the record scenes are not the best bet, movieclips are better.

More info (http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001732.html)

Hope it helps. :)