# Sequentially fade in Duplicated Movie Clips via Actionscript

**URL:** https://forum.kirupa.com/t/sequentially-fade-in-duplicated-movie-clips-via-actionscript/143508
**Category:** Uncategorized
**Created:** [April 6, 2005, 2:06pm UTC](https://forum.kirupa.com/t/sequentially-fade-in-duplicated-movie-clips-via-actionscript/143508 "2005-04-06T14:06:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bumblepuppy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bumblepuppy/32/1225_2.png) [@bumblepuppy](https://forum.kirupa.com/u/bumblepuppy)
#### Post date: [April 6, 2005, 2:06pm UTC](https://forum.kirupa.com/t/sequentially-fade-in-duplicated-movie-clips-via-actionscript/143508/1 "2005-04-06T14:06:55Z")

</div>

Hi Guys,

I’m relatively news to Flash MX 2004, and I’ve created a function which builds a vertical menu based on an Array read from a mySQL database. I’ve managed to acheive all this relatively easily, but I want the individual movieClips to fade in one after each other (say emulating alpha tweening the clips 5 frames apart at 25 fps), instead of appearing all at once. No matter what I try I can only seem to get them to fade in at the same time…

Does anyone have any ideas…? They would be gratefully appreciated and you’d make you world an even more joyous place to live in!

// Builds the Client List Navigation  
buildNavigation = function() {  
nav\_count = clstArray.length;  
for(i=0; i\<nav\_count; i++) {  
duplicateMovieClip(“nav”, “nav”+i, (10+i));  
setProperty(“nav”+i, \_alpha, 0);  
setProperty(“nav”+i, \_x, 192.5);  
// Mathematics to emulate Fireworks design…  
setProperty(“nav”+i, \_y, 170+(i_12));  
// Define text of Movie clip to reflect client names Array and embed client Id  
x = eval(“nav”+i);  
x.clientName = clstArray_;  
x.clientId = cidArray\*;

// This is the fade in Actionscript

\_root.x.onEnterFrame = function() {  
if (this.\_alpha \>= 99) {  
delete this.onEnterFrame;  
} else {  
this.\_alpha += 5;  
}

// End of the fade in Actionscript

```
};

```

};

* * *

Does this make sense and can anyone out their offer me spiritual guru like advise in the wonderful world of Flash…?

Laters,

Peace, love and flowers,

Bumblepuppy
