Class com.thelab.tween.TweenFx

com.thelab.tween.TweenFx

Description

Class that implements the tween special effects like filters, color matrix,...

Field Index

_quality

Method Index

addFx(), chn2Hex(), hex2Obj(), isFx()

Field Detail

_quality

static _quality:Number
Value of the overall Filter Quality

Method Detail

addFx

static function addFx(target, param_name:String, id:Number)

Creates an specific Tween Effect and register it as a target's variable for the TweenNode use.

Parameters

targetObject that will be modified.
param_nameName of the special feature.

isFx

static function isFx(param_name:String):Boolean

Tells if some parameter name is a special effect.

Parameters

param_nameName of the parameter.

Return

Boolean - Flag indicating if the parameter is a special effect.

hex2Obj

static function hex2Obj(hex:Number):Object

Convert an Hexadecimal color value to an Object with each channel separated.

Parameters

hexHexadecimal code of the color.

Return

Object - Object containing each channel separated.

chn2Hex

static function chn2Hex(red:Number, green:Number, blue:Number):Number

Given the three color channels it returns the 24bit - Hexadecimal representation.

Parameters

redRed Channel.
greenGreen Channel.
blueBlue Channel.

Return

Number - The Hexadecimal representation.