PDA

View Full Version : Is it possible...



mlkedave
January 5th, 2004, 10:15 PM
Is it possible to have movieclips, on two seperate layers, both located on the first frame of their layer, to have an AS where when MovieClip1 reached frame 5 of the movieclip MovieClip2 goes to frame 5 of its movieclip but MovieClip1 continues to play even though the AS was triggered? Thanks. Mike

JimmyJimmy
January 5th, 2004, 10:34 PM
Hi mlkedave

Sure
This is not the correct syntax but this is (something) like what you will need:

When you are at the root level of your movie, and you can see both MC's give them each an instance name. (For now I call them Red and Green)

on frame 5 of the Red MC (on the actual frame, not the MC) have an action like:

_root.Green.gotoAndPlay(5);


If there is no stop(); command, Flash will keep going until you tell it to stop.

Or if you could give frame 5 in the Green MC a frame label, and have the AS gotoAndPlay that frame label.

Hope this helps!

mlkedave
January 6th, 2004, 05:53 PM
Well that would be nice but I want _root.Green.gotoAndPlay(5);
to trigger when Red reaches its 5th frame. Any suggestions?

InsaneMonk
January 6th, 2004, 07:32 PM
on frame 1, type these actions:

var frame5 = false;
stop();

then on frame 5, type these actions:

frame5 = true;

then on teh red thign, type this:

if (frame5 = true) {
var redYes = true;
}

then on teh green thing type these actions:

if (_root.redthing.redYes = true) {
this.gotoAndPlay(5);
}

hope that helped! :be:

mlkedave
January 6th, 2004, 07:38 PM
I think I can do this... THANKS.

Mike