Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > macromedia flash sitedesign > august 2003 >

macromedia flash sitedesign : Loading a movie to a specific scene



HouseMusic
8/5/2003 6:04:46 PM
Any one know how to load a movie so that it opens to a specific scene rather than starting right from the start?

Cheers


one
8/5/2003 9:57:23 PM
In your script, after you tell it to load the movie, use with and gotoAndPlay to tell it to go where ever you want it to go.

HouseMusic
8/6/2003 7:55:33 AM
Hi, thanks for the reply.

I tried what you said to do, im not exactly sure if i did it the way you would.. but here goes

on (release) {
loadMovie ("ego.swf", "9");
with (ego.swf) {
gotoAndPlay ("Scene 5", 1);
}
}

Ive never used the "with" command before so not sure if i did it right. Basicly it worked at first but not going to the right Scene (Scene 5, Frame 1), it just went strait to the start of the "Ego.swf"

Any ideas?

Cheers


one
8/6/2003 2:33:47 PM
Load ego.swf into a blank movie clip instead of a layer so that you can refer to it by it's instance name. Create a blank movie clip and put it at (0,0) or where ever you want it in your main movie. Name the instance egoMC or whatever you want to refer to it as.

In your script:

on (release) {
loadMovie("ego.swf", "_root.egoMC");
with (_root.mainMC) {
gotoAndPlay ("Scene 5", 1);
}
}


one
8/6/2003 2:34:53 PM
Sorry I meant level instead of layer but you know what I mean.

AddThis Social Bookmark Button