PropertyTween
Kind of class: | class |
---|---|
Inherits from: | Tween < EventDispatcher < CoreObject |
Version: | 03/22/07 |
Author: | Aaron Clinger |
Classpath: | org.casalib.transitions.PropertyTween |
File last modified: | Monday, 01 December 2008, 13:34: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:
Summary
Constructor
- PropertyTween (scope:Object, property:String, equation:Function, endPos:Number, duration:Number, useFrames:Boolean)
- Creates and defines property tween.
Class properties
Class properties inherited from Tween
Instance methods
- start : Void
- Starts tween from start position.
- resume : Void
- Resumes tween from stopped position.
- continueTo (endPos:Number, duration:Number) : Void
- Instructs to tween from its current position to a new finish and duration position.
- getScope : Object
- Retrieves the object defined as scope in the class' constructor.
- getProperty : String
- Retrieves the property string defined in the class' constructor.
- destroy : Void
Instance methods inherited from TweenInstance methods inherited from EventDispatcherInstance methods inherited from CoreObject - getScope : Object
- continueTo (endPos:Number, duration:Number) : Void
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 framestrue
, or secondsfalse
in relation to the value specified in theduration
parameter; defaults tofalse
.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) : VoidInstructs to tween from its current position to a new finish and duration position.#Overrides:getProperty
function getProperty () : StringRetrieves the property string defined in the class' constructor.Returns:- Returns the name of property being tweened.
getScope
function getScope () : ObjectRetrieves the object defined as scope in the class' constructor.Returns:- Returns the object whose property is being tweened.
- resume : Void