PDA

View Full Version : Play different movie clip at a given fame on the main timeline



jwang@autoskill
May 15th, 2003, 11:47 AM
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

boristheblade
May 15th, 2003, 05:00 PM
You could use something like this:


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


Hope that helps :)