Packagecom.bourre.transitions
Interfacepublic interface Tween extends Suspendable, Runnable
SubinterfacesAdvancedTween

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The 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



Public Methods
 MethodDefined by
 Inherited
isRunning():Boolean
Returns true if this object is running.
Runnable
 Inherited
reset():void
Resets the state of this object.
Suspendable
 Inherited
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
 Inherited
start():void
Starts the operation of this suspendable operation.
Suspendable
 Inherited
stop():void
Stops the operation in process.
Suspendable
Method detail
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.

Parameters
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
Where :
  • t is the elapsed time since start in milliseconds
  • b is the the start value
  • c is the size of the value range such c = endValue - startValue
  • d is the duration of the tween in milliseconds
  • the returned value is the the interpolated value