AbstractTween

Kind of class:class
Inherits from:none
Implements:
Known subclasses:
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.transitions.AbstractTween
File last modified:Wednesday, 31 October 2007, 07:35:30
AbstractTween is the base class for all concrete tween class implementations.

AbstractTween is an abstract class.
Take a look at com.bourre.transitions package to see all concrete
implementations.

Example

var t : BasicTweenFPS = new BasicTweenFPS(mc, '_alpha', 0, 30, 100);

Class methods

noEasing

static function noEasing (
t:Number, b:Number, c:Number, d:Number) : Number
Calculates and returns a new value without easing effect.
Returns:
Number result

Instance methods

execute

function execute (
e:IEvent) : Void
Start tweening.

com.bourre.commands.Command polymorphism.

getDuration

function getDuration (
) : Number
Returns tween duration.
Returns:
Number

getEasing

function getEasing (
) : Function
Returns easing function.
Returns:
Easing Function

getProperty

function getProperty (
) : String
Returns property affected by the tween
Returns:
String property name

getTarget

function getTarget (
)
Returns tweening target.
Returns:
tweening target

isPlaying

function isPlaying (
) : Boolean
Returns true if the tween is currently playing.
Returns:
Boolean

resume

function resume (
) : Void
Plays tweening from current property's value without reinitializing.

setDuration

function setDuration (
n:Number) : Void
Set tween duration.

Example

t.setDuration( 31 );</em>
Parameters:
n:
Number

setEasing

function setEasing (
f:Function) : Void
Defines easing function for tween effect.

Example

var t.setEasing(mx.transitions.easing.Elastic.easeOut);</em>
Parameters:
f:
Easing Function

setEndValue

function setEndValue (
n:Number) : Void
Set end value to tween to.

Example

t.setEndValue( 100 );</em>
Parameters:
n:
Number

setProperty

function setProperty (
) : Void
Parameters:
p:
Setter (method or property).

setStartValue

function setStartValue (
n:Number) : Void
Set start value to tween from.

Example

t.setStartValue( 0 );</em>
Parameters:
n:
Number

setTarget

function setTarget (
) : Void
Parameters:
o:
Object which the Tween targets.

start

function start (
) : Void
Starts tweening.
Specified by:

stop

function stop (
) : Void
Stops tweening.
Specified by:

toString

function toString (
) : String
Returns the string representation of this instance.
Returns:
the string representation of this instance

yoyo

function yoyo (
) : Void

Event handlers

onEnterFrame

function onEnterFrame (
) : Void
Don't use, overwrite or override this method.

That's the public callback of com.bourre.transitions.FBeacon used
internally to calculate tween progression.