Fade effect on AsWing components
Animates the alpha property of a component, either from transparent to opaque, or from opaque to transparent.
Example
public function test() : Void { var button : JButton = new JButton( "move button" ); var effect : FvFade = new FvFade( button ); effect.addEventListener( FvEffectEvent.onEffectEndEVENT, this, _onEnd ); effect.alphaTo = 0; effect.play(); }
public alphaFrom:Numberpublic alphaTo:Numberstatic public function fadeIn(t:Component):FvFadeReturns a predefined Fade effect where alpha property is animated from transparent to opaque.
static public function fadeOut(t:Component):FvFadeReturns a predefined Fade effect where alpha property is animated from opaque to transparent.