# Auto increments

**URL:** <https://forum.kirupa.com/t/auto-increments/96165>\
**Category:** Uncategorized\
**Created:** [December 5, 2003, 5:35pm UTC](https://forum.kirupa.com/t/auto-increments/96165 "2003-12-05T17:35:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luthan](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@luthan](https://forum.kirupa.com/u/luthan)\
**Post date:** [December 5, 2003, 5:35pm UTC](https://forum.kirupa.com/t/auto-increments/96165/1 "2003-12-05T17:35:11Z")

</div>

not sure what the problem is, probably doing something wrong  
i have 5 clips:  
cir1,cir2, cir3…  
i want them to flicker one after another  
i have the code that does the flicker effect thanks to some one else on this board and that works fine  
so when i do it on the first clip, i want it to go on to the next one  
here is the code so u could understand it better

```auto

MovieClip.prototype.blink = function (x) {
this._visible = true; 
this.step = 0;
this.framespersecond = 40;
this.seconds = x;
this.f = 0;
this.strobe = [0, 100, 30, 100];
this.onEnterFrame = function(){
this._alpha = this.strobe[this.step];
this.step += 1;
this.f += 1;
if (this.step == this.strobe.length){
this.step = 0;
};
if (this.f == this.framespersecond * this.seconds) {
delete this.onEnterFrame;

//need something here so it would go to the next clip, cir2 and then again to cir3 after cir2 is done
};
}
}

cir1.blink(1);

```

i tried arrays and loops but nothing worked, i probably didnt do it right but its getting frustrating

thanks for any help
