View Full Version : Telling a movie to play another when finished
28dead
03-10-2003, 10:25 PM
Stock.swf movie has 7 different instances in the main timeline
I want a way of tell each one to play another movie (each one different) once they've finished
Really simple isn't it? - Plus where on earth do newbies go to learn this stuff???
Billy T
03-10-2003, 11:10 PM
in the last frame of each mc say
_root.mcInstanceName.gotoAndPlay(2);
also put
stop();
if you don't want the one that is currently playing to loop
check out the tutes on this site and the ones in my footer
cheers
28dead
03-10-2003, 11:33 PM
sorry i meant mc - stock - has 7 instances, so the same movie repeated 7 times in the main time line, i need code to go in the actions of the movie clip, not in the actual movie clip itself.
Is that hard to understand??
B
ssjogus
03-12-2003, 05:33 AM
u can try this
at the end of that particular instance write code
_root.mv2.play();
shruti.
Billy T
03-12-2003, 10:32 AM
on each mc instance on the stage put this actions
onClipEvent(load){
targ="mc2";
}
obviously changing the targ for each one
then in the last frame of the mc say
_root[targ].gotoAndPlay(2);
should work...
28dead
03-12-2003, 08:23 PM
Thanks billy t!!!!
I know that works now!!
However, hehe, if those two movies exist in the main time line it works fine but how about if i put them under they're own movie themselves, which parts of your code do i have to change to say, targ is in a movie on the timeline?
Thanks!! this kind of help is great for new bloods!!!
B
28dead
03-12-2003, 10:17 PM
Actually dont worry bout that, i've worked it out!! - as i should have, its easy..!!!
But i have another question!!
I want to say, if mc1 is playing, then mc1 goto and play frame 30 (outro)
then play mc2 (frame2) (intro)
Billy T
03-12-2003, 10:28 PM
then put the action above in the first frame of the outro instead of the last frame of the mc
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.