all groups > flash (macromedia) > october 2007 >
You're in the

flash (macromedia)

group:

How do I change scenes from inside a movie clip?



How do I change scenes from inside a movie clip? nonybd
10/18/2007 11:05:01 PM
flash (macromedia): Hi,

I can't figure out how to move to another scene, from inside a movieclip.
From my experiments, you can only change scenes from _root, so I tried
_root.gotoAndStop('Scene 2', 1), but that doesn't work either. I also tried to
make an if statement in the _root, but it doesn't seem to work, for some reason:

if (_root.my_mc._currentframe==40){
gotoAndStop('Scene 2', 1);
}

How can I do this? Any help much appreciated :smile;
Re: How do I change scenes from inside a movie clip? ggshow
10/19/2007 5:58:36 AM
try this:

step 1:
label the first frame of your scene 2, e.g.: s2f1

step 2:
if (_root.my_mc._currentframe==40){
_root.my_mc.gotoAndStop("s2f1");
}

If cannot, please explain more about your movie timeline & any script on it.
Re: How do I change scenes from inside a movie clip? nonybd
10/21/2007 10:20:14 PM
Hi,

Sorry about taking so long. I tried that, but it doesn't work, for some
unknown reason. I did, however, get it to work, because of your suggestion,
because of your suggestion, anyway. Thanks so much for your help :smile;

//in frame 40 in my_mc
_root.gotoAndStop('s2f1');

//label of frame in scene 2
s2f1

//nothing in _root.

So, the scene changing didn't work, but it did work with a labeled frame, in
the second scene. Thanks!
AddThis Social Bookmark Button