Packageorg.apache.flex.createjs.tween
Classpublic class Effect
InheritanceEffect Inheritance EventDispatcher Inheritance flash.events.EventDispatcher
Subclasses Sequence, Tween

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

This is the base class for the CreateJS/TweenJS effects.



Public Properties
 PropertyDefined By
  duration : Number = 1000
The duration of the effect, defaults to 1000 (1 second).
Effect
  easing : Function
Effect
  loop : Boolean = false
Determines if the effect should loop continuously or not.
Effect
  target : String
The name of the object upon which the effect is being made.
Effect
Public Methods
 MethodDefined By
  
Effect(target:CreateJSBase = null)
Constructor
Effect
  
play():void
Plays the effect on the target object
Effect
Property Detail
durationproperty
public var duration:Number = 1000

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The duration of the effect, defaults to 1000 (1 second).

easingproperty 
easing:Function


Implementation
    public function get easing():Function
    public function set easing(value:Function):void
loopproperty 
public var loop:Boolean = false

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Determines if the effect should loop continuously or not. The default is false (do not loop).

targetproperty 
target:String

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The name of the object upon which the effect is being made.

This property can be used as the source for data binding.


Implementation
    public function get target():String
    public function set target(value:String):void
Constructor Detail
Effect()Constructor
public function Effect(target:CreateJSBase = null)

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Constructor

Parameters
target:CreateJSBase (default = null)
Method Detail
play()method
public function play():void

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Plays the effect on the target object