Hello. I have 5 movie clips that I am trying to duplicate.
I was going well but then i decided to make it so they appear at certain intervals using the amount of seconds elapsed.
now only MC2 is duplicated.
Any ideas what I need to do?
var PreElapsedS=0;
dupCir = function(mc:MovieClip, interval:Number){
mc.onEnterFrame = function(){
if(elapsedS==PreElapsedS+interval){
mc.duplicateMovieClip (mc+elapsedS, _root.getNextHighestDepth());
PreElapsedS=elapsedS;
}
}
}
dupCir(MC1, 60);
dupCir(MC2, 5);
dupCir(MC3, 30);
dupCir(MC4, 25);
dupCir(MC5, 10);
Thanks