PDA

View Full Version : from one Mc to another (in different scenes)


birail
10-29-2001, 04:53 PM
hi!

I have one scene with a mc and a button...

and a second scene with another mc.Inside this second mc there is a button that I want to target a specific frame of the first mc (of first scene)

I was told to use the code:
_root.first mc's instant name.gotoAndStop("FrameLabel that I want to stop");

but it dosen't work.It just loops the second mc.



Thnx for any help.
chris

PS: I have attached the file for anyone wants to see it

Jesse
10-30-2001, 02:34 AM
The method you were told to use is to go to a different frame in the main timeline. Sicne the ball MC no longer exists in Scene 2 (it's not on the stage) you c an't tell it to go anywhere. What you would have to do is tell the main timeline to go back to frame 1, scene 1, by giving that frame a lable like "goBack" and at the same time set a variablet o indicate you want to do that other actionwith the ball MC:
_root.gotoAndStop("goBack");
_root.moveBall = true;

then on Frame 1, Scene 1 you have this code:
if (moveBall) {
ballMC.gotoAndStop("stpball");
}
good luck

birail
10-30-2001, 08:47 AM
thnx!

..I thought that moving from mc to mc in different scenes was something that easy can be done!....

I'll test the code you write... :)

thnx again !

bye
chris