| Package | com.bourre.transitions |
| Interface | public interface Tween extends Suspendable, Runnable |
| Subinterfaces | AdvancedTween |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Tween interface defines a tween, a property animation
performed on a target object over a period of time. That animation
can be a change in position, a change in size, a change in visibility,
or other types of animations.
When defining tween effects, you typically create an instance of
a concret Tween class. A tween instance accepts the
startValue, endValue, and duration properties, and an optional
easing function to define the animation.
Concret tweens doesn't specifically work on a special member type. A tween should work for both properties and methods of an object. See the Accessor interface for a description of members access.
See also
| Method | Defined by | ||
|---|---|---|---|
![]() |
isRunning():Boolean
Returns
true if this object is running. | Runnable | |
![]() |
reset():void
Resets the state of this object.
| Suspendable | |
![]() |
run():void
Starts the asynchronous process of this runnable object.
| Runnable | |
|
setEasing(f:Function):void
Defines the easing function used by this
Tween object. | Tween | ||
![]() |
start():void
Starts the operation of this suspendable operation.
| Suspendable | |
![]() |
stop():void
Stops the operation in process.
| Suspendable | |
| setEasing | () | method |
public function setEasing(f:Function):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines the easing function used by this Tween object.
Easing function can't be null, concret implementation must provide
a default function if no function is defined, or if the passed-in
function is null.
f:Function — easing function for this tween, the function must implements
the following signature :
function easingFunc( t : Number, b : Number, c : Number, d : Number ) : Number
|