I am trying to play a couple of movie clips one after the other one. In other words, I would like movie clip A to run and execute the AS attached, then I would like movie clip B to run and execute the AS attached to it.
Can anyone help me with how to get a movie to play and execute AS on one movie, then the next, then the next?
okay on the last frame of mvclip A put “mclipB.gotoAndPlay();” ok same thing for mvclipB.
Frames can have other code too but thats all you asked so… hope i was help. (Nice little DND name lol)
Will what you suggested work with movieclips that are created with AS (in other words, no timeline)? I am controlling the animation using actionscript, so I don’t really have frames for the movieclip.
Best,
CG
PS - name was given to me by some friends, but didn’t know it was a DnD thing…
You’ll have to explain what you’re trying to do a little more.
You can try setInterval(function, milliseconds) and have the function keep track of the next MC to play, and play it after the time to say has ended. Or you could have it keep track of the time by frames.
I dont have time but here this should work sry for no code box hope i could help. just put it on the MVClip
onClipEvent (enterFrame) {
//Tests what movie its counting so if the movie was a it would count to 200.
if (_root.movie == “a”) {
_root.number = _root.number += 1;
//Tells it to play when it hits total frames of 200.
if (_root.number == “200”) {
Movieclip.gotoAndPlay(1);
_root.number = 0
_root.movie == “b”
}
}
if (_root.movie == “b”) {
_root.number = _root.number += 1;
//Tells it to play when it hits total frames of 300.
if (_root.number == “300”) {
Movieclip.gotoAndPlay(1);
_root.number = 0
_root.movie == “c”
}
}
//Tests what movie its counting so if the movie was a it would count to 200.
if (_root.movie == “c”) {
//do nothing its done
}
}