Play different movie clip at a given fame on the main timeline

I need to play different movie clip at a given frame, let’s say 100, in the main timeline. For example,
if(_root.x==1) play movieClip1;
else if(_root.x == 2) play movieClip2;
else if(_root.x == 3) play movieClip3;

How can I do it?

Thanks

James

You could use something like this:


onClipEvent(enterFrame){
if(_root.currentframe == 25)
mc25.play();
else if(_root.currentframe == 26)
mc26.play();


Hope that helps :slight_smile: