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: | Tuesday, 23 January 2007, 20:42:57 |
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
Class properties inherited from Tween
Instance properties
Instance properties inherited from Tween
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject
Instance methods
Instance methods inherited from Tween
Instance methods inherited from EventDispatcher
Instance methods 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.