Access keys

PropertyTween

Kind of class: class
Inherits from: Tween < EventDispatcher < CoreObject
Version: 01/17/07
Author: Aaron Clinger
Classpath: org.casaframework.transitions.PropertyTween
File last modified: Wednesday, 24 January 2007, 21:45:40
A simple property tween class that extends Tween.
Example:
var boxMove:PropertyTween = new PropertyTween(this.box_mc, "_x", com.robertpenner.easing.Bounce.easeOut, 250, 2);
boxMove.start();
Usage note:
If you want to tween a value other than a property use Tween.
See also:
Robert Penner's easing equations.

Summary

Constructor
Class properties
Instance properties
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject

Constructor

PropertyTween

function PropertyTween (
scope:Object, property:String, equation:Function, endPos:Number, duration:Number, useFrames:Boolean)
Creates and defines property tween.
Parameters:
scope :
An object that contains the property specified by "property".
property :
Name of the property you want to tween.
equation :
Tween equation.
endPos :
The ending value of the tween.
duration :
Length of time of the tween.
useFrames:
[optional] Indicates to use frames true, or seconds false in relation to the value specified in the duration parameter; defaults to false.
Usage note:
Class uses the property's current value when start is called as the starting position.

Instance methods

continueTo

function continueTo (
endPos:Number, duration:Number) : Void
Instructs to tween from its current position to a new finish and duration position.
#
Parameters:
endPos :
The ending value of the tween.
#
duration:
Length of time of the tween.
#
Overrides:

destroy

function destroy (
) : Void
Overrides:

resume

function resume (
) : Void
Resumes tween from #stop stopped position.
#
Overrides:

start

function start (
) : Void
Starts tween from start position.
#
Overrides: