Reputation: 1860
I am trying to apply the fade effect for images in as3 (not in flash or flex), but examples contain with flash or flex only I want to pure action script example for image fade effect. Is it possible?
Upvotes: 0
Views: 3997
Reputation: 1
import fl.transitions.*;
import fl.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Fade, direction:Transition.IN, duration:9, easing:Strong.easeOut});
Upvotes: 0
Reputation: 11590
Personally I like using the free TweenMax Library, something like:
TweenLite.to(yourImage_mc, 1, {alpha:0});
Or you can do the built in Tween stuff:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var t:Tween = new Tween(yourImage_mc, "alpha", Strong.easeIn, 1, 0, 3, true);
I strongly suggest you read the docs for both and decide for yourself.
Upvotes: 1