# How to modify this function

**URL:** <https://forum.kirupa.com/t/how-to-modify-this-function/79952>\
**Category:** flash\
**Created:** [February 18, 2005, 6:31am UTC](https://forum.kirupa.com/t/how-to-modify-this-function/79952 "2005-02-18T06:31:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [February 18, 2005, 6:31am UTC](https://forum.kirupa.com/t/how-to-modify-this-function/79952/1 "2005-02-18T06:31:44Z")

</div>

Hi guys. I use the following function to make a few mc’s visible on the stage with a setInterval.

```auto
function showClips() {
if (clips.length) {
clips[0]._visible = true;
clips.splice(0, 1);
} else {
clearInterval(id);
}
updateAfterEvent();
}
var clips = [];
var index = 0;
while (index++<15) {
var clip = eval("thump_"+(index<10 ? "0" : "")+index);
clip._visible = false;
clips.push(clip);
}
var id = setInterval(showClips, 1000);

```

This way the clips appear with a intervalof one second untill all are visible.  
Attached is the zip. What i want is that they appear using a fade function instead of \_visible. and that the entire process start all over again when all are faded in!

Anybody an idea?

Thanks in advance
