PDA

View Full Version : Movie clip controlling scenes


Binbag
01-14-2002, 02:25 PM
I know this is a really simple question, but, I can seem to get it to work.

I have a scene1 containing a movie clip. Within that Movie Clip is a button that when clicked goes to Scene2 on the main stage. I've just used a

gotoAndPlay ("Scene 2", 1);

But I'm obviously missing some hierarchy knowledge.

Can someone shed some light

Cheers

poab
01-14-2002, 03:25 PM
Hi,

I know lots about more complicated stuff, and always get the simple stuff wrong (because I flick to the back of books to get to the exciting stuff, and miss out fundamentals.) But in this case unless I'm completely inept:

on(release){
_root.gotoAndPlay("scene2", 1);
}


It's just a path. Good of tutorials on this site about them. Basically the Flash player is looking for "scene2" inside the movieclip, so you have to tell it to move up one place in the movieclip hierarchy.

cheers.

Ricod
01-14-2002, 03:43 PM
Also, Flash seems to have problems with scenes, when u call them from within a mc. Its better to label the 1st frame in each scene as "scene2Frame1" or sumthing handier and call that one :

on(release){
_root.gotoAndPlay("scene2Frame1");
}

Binbag
01-14-2002, 03:45 PM
Yep,

Tried that a few minutes ago and it's still not working. Probably something really simple.

Thanks anyway!!

Tink
01-14-2002, 04:00 PM
u could post the file binbag so we can have a look to find that prob for ya

BLEEDA

Binbag
01-14-2002, 04:13 PM
Labeling the frames worked a treat. Still unsure why the _root option didn't work.

Thanks Ricod for the label advice