# \[MX\] multiple fadein's

**URL:** <https://forum.kirupa.com/t/mx-multiple-fadeins/42946>\
**Category:** flash\
**Created:** [February 15, 2004, 1:35am UTC](https://forum.kirupa.com/t/mx-multiple-fadeins/42946 "2004-02-15T01:35:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karolyne](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@karolyne](https://forum.kirupa.com/u/karolyne)\
**Post date:** [February 15, 2004, 1:35am UTC](https://forum.kirupa.com/t/mx-multiple-fadeins/42946/1 "2004-02-15T01:35:31Z")

</div>

Thanks to everyone who tried helping me with this last week but it’s still not working.

this is what i’m hoping to accomplish entirely in AS:

on button rollover, the button and title of the page fade in  
on button rollout, they both fade out  
on button release the MC fades in  
on new button release, the last MC fades out

so far I have this AS on my button:

[AS]on (rollOver) {  
\_root.x + 1;  
\_root.caption.words = “shows”;  
\_root.fadein(this, 100, 8);  
\_root.fadein(\_root.caption, 100, 20);  
}  
on (rollOut) {  
\_root.x = 0;  
\_root.caption.words = " ";  
}  
on (release) {  
gotoAndStop(“shows”);  
}  
[/AS]

but neither the button or caption fades in

i also put this in the first frame of my main timeline:

[AS]stop();  
fadein = function(alpha, obj, steps) {  
this.alpha = alpha;  
this.obj = obj;  
this.steps = steps; // the lesser steps, the faster the fade  
if (this.obj.\_alpha \< 100){  
this.obj.\_alpha += 100/this.steps;  
}  
}

fadeout = function(alpha, obj, steps) {  
this.alpha = alpha;  
this.obj = obj;  
this.steps = steps; // the lesser steps, the faster the fade  
if (this.obj.\_alpha \>= 100){  
this.obj.\_alpha -= 100/this.steps;  
}  
}

[/AS]

and instead of my mc’s fading in, everything just disappears. Eeek. What am I doing wrong?!

[here’s a link to the .fla file](http://home.comcast.net/~amcelis/autumndefensework.sit)

Thanks so much and Happy Valentine’s Day!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 17, 2004, 12:27am UTC](https://forum.kirupa.com/t/mx-multiple-fadeins/42946/2 "2004-02-17T00:27:58Z")

</div>

eek! i couldn’t open your files either. i’ll try uploading something better.

thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 17, 2004, 12:34am UTC](https://forum.kirupa.com/t/mx-multiple-fadeins/42946/3 "2004-02-17T00:34:17Z")

</div>

If you zip them, I can open them, but if I zip mine, I’ll have to email them to you…I use geocities to hold my stuff, and they are funny about zip files. Weird, I thought mac users could open PC files, not just the other way.

Adam
