Wait for a clip to finish playing

Hi,

I need to understand how to control a sequence of events inside a function. What’s happening is that as I call different actions to be performed, it seems that when I enable a movie clip and then call for a second movie clip to do it’s thing, the second clip starts before the first one ends. How can I control the beginning of the second movie clip only when the first has finished performing it’s own?

Thank you

Barzalou:-\

if (instance._currentframe == instance._totalframes) {
	instance.play()
} else {
	instance.stop()
}

replace instance with the appropriated instance name of the movie clips =)

Thanx a lot (what a fast response!!!):slight_smile:

no problem :slight_smile:

and that’s not fast. it’s just the average here at kirupa.com :wink: