Class caurina.transitions.AuxFunctions

Description

Generic, auxiliary functions

Method Index

concatObjects(), getObjectLength(), isInArray(), numberToB(), numberToG(), numberToR()

Method Detail

numberToR

static public function numberToR(p_num:Number):Number

Gets the R (xx0000) bits from a number

Parameters

p_numNumber Color number (ie, 0xffff00)

Return

Number The R value

numberToG

static public function numberToG(p_num:Number):Number

Gets the G (00xx00) bits from a number

Parameters

p_numNumber Color number (ie, 0xffff00)

Return

Number The G value

numberToB

static public function numberToB(p_num:Number):Number

Gets the B (0000xx) bits from a number

Parameters

p_numNumber Color number (ie, 0xffff00)

Return

Number The B value

isInArray

static public function isInArray(p_string:String, p_array:Array):Boolean

Checks whether a string is on an array

Parameters

p_stringString String to search for
p_arrayArray Array to be searched

Return

Boolean Whether the array contains the string or not

getObjectLength

static public function getObjectLength(p_object:Object):Number

Returns the number of properties an object has

Parameters

p_objectObject Target object with a number of properties

Return

Number Number of total properties the object has

concatObjects

static public function concatObjects():Object