Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
Effect

Package | org.apache.flex.createjs.tween
Class | public class Effect
Inheritance | Effect EventDispatcher 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

| Property | Defined 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

| Method | Defined By
--- | --- | ---
|  | Effect(target:CreateJSBase = null) Constructor | Effect
|  | play():void Plays the effect on the target object | Effect

Property Detail

duration | property

`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).

easing | property |

`easing:Function`

Implementation
`public function get easing():Function`
`public function set easing(value:Function):void`

loop | property |

`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).

target | property |

`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

Mon Sep 5 2016, 07:19 AM -07:00