Utils class - a collection of useful functions
1.0
© TheoWorlds.com, 2007-2008.
| com. | Utils class - a collection of useful functions |
| Functions | |
| createSimpleMap | |
| inString | |
| isOdd | |
| isPositiveNonZeroNumber | |
| isPositiveNumber | |
| d2h | |
| traceObject | |
| firstIndexOf | |
| create3DArray | |
| createArray | |
| trace3DArray | |
| inEmpty | |
| getRandomNumber | |
| parseStr | |
| inArray | |
| cloneObject | |
| getNextAvailableZOrder | |
| getNearestDirections | |
| kill | |
| killSubMovies | |
| flipDirection | |
| isPointInRhomb | |
| getBitmap | creates a bitmap that will react to mouse events (needed to filter out transparent areas) |
| getBitmapCroppedOutWhitespace |
public static function createSimpleMap( cols: Number, rows: Number, defaultParams: Object ):Array
public static function inString( s: String, slong: String ): Boolean
public static function isOdd( n: Number ): Boolean
public static function isPositiveNonZeroNumber( n: Number ): Boolean
public static function isPositiveNumber( n: Number ): Boolean
public static function d2h( dec: Number ):String
public static function traceObject( o: Object ):Void
public static function firstIndexOf( a: Array, el ):Number
public static function create3DArray ( rows: Number, cols: Number, defaultValue ): Array
public static function createArray ( aLength: Number, defaultValue ): Array
public static function trace3DArray( a: Array ):Void
public static function inEmpty( v ):Boolean
public static function getRandomNumber( low: Number, high: Number ):Number
public static function parseStr( str: String, delim: String, equal: String ): Object
static function inArray( v: Object, a: Array ): Boolean
public static function cloneObject( o: Object, fieldsToCopy: String, fieldsNotToCopy: String ):Array
static function getNextAvailableZOrder( target: MovieClip, n: Number ):Number
public static function getNearestDirections( dir: Number ):Array
public static function kill( o ):Void
public static function killSubMovies( m: MovieClip ):Void
public static function flipDirection( direction: Number ):Number
public static function isPointInRhomb( p: Point, rCenter: Point, rWidth: Number, rHeight ):Boolean
creates a bitmap that will react to mouse events (needed to filter out transparent areas)
public static function getBitmap( mc: MovieClip ):BitmapData
public static function getBitmapCroppedOutWhitespace( bd: BitmapData ):BitmapData