Packagexp.utils
Classpublic class Tween
InheritanceTween Inheritance flash.events.EventDispatcher
SubclassesChartEffect, PieSliceExplodeEffect, PieSliceRotateEffect

A class that manages a time based tween effects A class which provides the abilty to change property values over time.

See also

support


Public Properties
 PropertyDefined by
  active : Boolean
[read-only] Indicates whether the tween is active
Tween
  duration : int = 3000
The duration in ms of the tween
Tween
  easingEquation : Function
The easing equation This can be replaced by any equation you like that takes the follwing params
Tween
  isFactory : Boolean = false
Is this a factory tween that generates clones of itself
Tween
  mode : String = "in"
The mode of tween One of in or out.
Tween
  tweenId : int
[read-only] A unique Id for this tween
Tween
  tweenType : String
[read-only] The type of tween
Tween
Protected Properties
 PropertyDefined by
  target : Object
Tween
  tweenClass : Class
Tween
  _tweenType : String = "tween"
Tween
Public Methods
 MethodDefined by
  
Tween(target:Object = null, mode:String = "in")
Creates a new Tween instances
Tween
  
getInstance(target:Object = null, mode:String = "in"):Tween
Tween
  
reverse():void
Plays a tween in reverse from the current point back to the beginning.
Tween
  
start():void
Starts or restarts a tween
Tween
  
stop(noevent:Boolean = true):void
Stops a tween
Tween
Protected Methods
 MethodDefined by
  
Tween
  
end():void
Tween
  
getValue(endValue:Number, beginValue:Number):Number
Gets the property value at the current point in time
Tween
  
onTweenBegin():void
Tween
  
onTweenEnd():void
Tween
  
onTweenUpdate(value:Number):void
Tween
Property detail
activeproperty
active:Boolean  [read-only]

Indicates whether the tween is active

Implementation
    public function get active():Boolean
durationproperty 
public var duration:int = 3000

The duration in ms of the tween

easingEquationproperty 
public var easingEquation:Function

The easing equation This can be replaced by any equation you like that takes the follwing params

See also

mx.effects.easing
isFactoryproperty 
public var isFactory:Boolean = false

Is this a factory tween that generates clones of itself

modeproperty 
public var mode:String = "in"

The mode of tween One of in or out. If in the tween value increases towards 1, if out it decreases to 0.

targetproperty 
protected var target:Object
tweenClassproperty 
protected var tweenClass:Class
tweenIdproperty 
tweenId:int  [read-only]

A unique Id for this tween

Implementation
    public function get tweenId():int
_tweenTypeproperty 
protected var _tweenType:String = "tween"
tweenTypeproperty 
tweenType:String  [read-only]

The type of tween

Implementation
    public function get tweenType():String
Constructor detail
Tween()constructor
public function Tween(target:Object = null, mode:String = "in")

Creates a new Tween instances

Parameters
target:Object (default = null)
 
mode:String (default = "in")
Method detail
configureChildInstance()method
protected function configureChildInstance(tween:Tween):voidParameters
tween:Tween
end()method 
protected function end():void
getInstance()method 
public final function getInstance(target:Object = null, mode:String = "in"):TweenParameters
target:Object (default = null)
 
mode:String (default = "in")

Returns
Tween
getValue()method 
protected function getValue(endValue:Number, beginValue:Number):Number

Gets the property value at the current point in time

Parameters
endValue:Number — end value
 
beginValue:Number — beginning value

Returns
Number — The current value
onTweenBegin()method 
protected function onTweenBegin():void
onTweenEnd()method 
protected function onTweenEnd():void
onTweenUpdate()method 
protected function onTweenUpdate(value:Number):voidParameters
value:Number
reverse()method 
public function reverse():void

Plays a tween in reverse from the current point back to the beginning. If a tween has been started and is running, reverse will play it backwards from the current time point to the starting point.

start()method 
public function start():void

Starts or restarts a tween

stop()method 
public function stop(noevent:Boolean = true):void

Stops a tween

Parameters
noevent:Boolean (default = true)