all groups > macromedia flash sitedesign > december 2003 >
You're in the

macromedia flash sitedesign

group:

Jumping to a scene in a new movie


Jumping to a scene in a new movie swheller
12/22/2003 4:34:21 PM
macromedia flash sitedesign:
Hi,

I have a flash movie that has buttons on it. When you click on any of the buttons it unloads the movie and loads a new movie in at level 0. The second movie has 5 scenes in it. I want to be able to click on the button in the first movie and get it load the second movie but going to a specific scene in that movie.

I know how to jump to a specific scene in the same move but don't know how to jump to a specific scene in a loaded move.

Code example:

on (press) {
unloadMovieNum(0);
}
on (press) {
loadMovieNum("benefits/benefits.swf", 0);
}

*I want to specify a scene in the benefits.swf file.

All help greatfully appreciated.

Steve


Re: Jumping to a scene in a new movie airmar
12/23/2003 6:53:55 PM
Hello, I tried this little piece of code.

loadMovieNum("benefits/benefits.swf", 0);
gotoAndPlay("Scene 2", 1);


AirMair


Re: Jumping to a scene in a new movie MoonsD
1/5/2004 10:43:22 PM
Hi steve,
You can load benefits.swf file with loadMovieNum("benefits/benefits.swf", 0);

And in the first frame of scene 1 in benefits.swf you put gotoAndPlay("Scene 2", 1);

greetings
David


Re: Jumping to a scene in a new movie Laiverd.COM
1/6/2004 12:03:28 AM
I would not use scene names for that, unless you're in for a serious
headache somewhere along the line. Stick to framelabels. For more on using
scenenames in actionscript check the below google link.\

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button