# Gallery animation effect

**URL:** <https://forum.kirupa.com/t/gallery-animation-effect/242132>\
**Category:** Uncategorized\
**Created:** [October 22, 2007, 8:51pm UTC](https://forum.kirupa.com/t/gallery-animation-effect/242132 "2007-10-22T20:51:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zimmy](https://avatars.discourse-cdn.com/v4/letter/z/c2a13f/32.png) [@zimmy](https://forum.kirupa.com/u/zimmy)\
**Post date:** [October 22, 2007, 8:51pm UTC](https://forum.kirupa.com/t/gallery-animation-effect/242132/1 "2007-10-22T20:51:06Z")

</div>

i’ve been trying to figure this out for the past few hours now and have no luck. what i have is about 28 mc on the stage now, i’m setting there alpha to 0 with a for loop. what i want to have happen is start with the first one, t1\_mc, tween its alpha to 100 with mc tween and when thats done start on the next one, t2\_mc. i’ve tried using a for loop and a while loop but i’m probably doing something wrong cause it doesnt work, i keep getting script errors saying that the script is making flash run slowly…

any help would be wonderful, thanks

ok maybe some code will help get a reply, from my understanding this should go through and tween the alpha to 100, add 1 to i, and go through it again until i\<29. all its doing instead is tweening them all at the same time. am i missing something?

```auto
var i:Number = 0
while(i<29){
var _thumb:String = "t"+i+"_mc"
_root.gallery[_thumb].alphaTo(100,1)
i++

}

```
