all groups > flash (macromedia) > november 2005 >
You're in the

flash (macromedia)

group:

Fade in plus fade out


Fade in plus fade out bo jehos
11/21/2005 9:48:26 PM
flash (macromedia):
Trying to get different sized photos (.jpgs) to fade in and then fade out. So
far they just fade out.

Here's the actionscript (modified from Todd Dominey's free script). I'm no
expert, so it may be something obvious I've got wrong.

swapPlace("container_mc.loader2_mc",1);
alphaTween = new mx.transitions.Tween(thisLoader, "_alpha",
mx.transitions.easing.Regular.easeIn, 200, 0, 5, true);
timerInterval = setInterval(imageGen,_global.numPause,data);
delete this.onEnterFrame;

Just wondering if anyone can help with the fade in.
Re: Fade in plus fade out sly one
11/21/2005 10:13:23 PM
This line confuses me:

alphaTween = new mx.transitions.Tween(thisLoader, "_alpha",
mx.transitions.easing.Regular.easeIn, 200, 0, 5, true);

Shouldn't the 200 be 100? Those are the starting/ending alpha percentages
right? 200%?

Anyway, just reverse the 0 and the 200 (changed to 100) and you get a fade in.
Re: Fade in plus fade out bo jehos
11/22/2005 12:46:14 AM
Sorry about that. Yes. Should be a 100.

AddThis Social Bookmark Button