# A repeating mc

**URL:** <https://forum.kirupa.com/t/a-repeating-mc/197432>\
**Category:** Uncategorized\
**Created:** [August 16, 2006, 9:22am UTC](https://forum.kirupa.com/t/a-repeating-mc/197432 "2006-08-16T09:22:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![achisholm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/achisholm/32/2607_2.png) [@achisholm](https://forum.kirupa.com/u/achisholm)\
**Post date:** [August 16, 2006, 9:22am UTC](https://forum.kirupa.com/t/a-repeating-mc/197432/1 "2006-08-16T09:22:25Z")

</div>

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:

```auto
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
