Move effect on AsWing components
Effect changes the position of a target over a specified time
interval.
You can specify the initial position with the xFrom and yFrom values,
the destination position with xTo and yTo, or the number of pixels to
move the component with xBy and yBy.
If you specify any two of the values (initial position, destination,
or amount to move), FvMove calculates the third.
If you specify all three, Fever ignores the xBy and yBy values.
If you specify only the xTo and yTo values or the xBy and yBy values,
FvMove sets xFrom and yFrom to be the object's current position.
Example
public function test() : Void { var button : JButton = new JButton( "move button" ); var effect : FvMove = new FvMove( button ); effect.addEventListener( FvEffectEvent.onEffectEndEVENT, this, _onEnd ); effect.xTo = 200; effect.yTo = 100; effect.startDelay = 2000; effect.easing = Bounce.easeOut; effect.play(); }
public xBy:Numberpublic xFrom:Numberpublic xTo:Numberpublic yBy:Numberpublic yFrom:Numberpublic yTo:Number