i’m trying to simply make an animation repeat every few seconds with a bit of actionscript but it’s not working properly. Here is the code i’ve written:
var speed:Number;
speed= 1000;
function pourOil():Void{
oilDrip_mc.duplicateMovieClip('new_oil',getNextHighestDepth())
}
setInterval(pourOil,speed);
Now, i thought this might work but it’s not really working properly. It seems to repeat the movie but keeps on cutting out the other ones that it started. I’m just guessing but i think it has to do with the new movie clips not having a unique name? (in the duplicateMovieClip i just put ‘new_oil’). There might be a neater way of doing this.
Can anybody help? That would be great, thanx