Static methods

staticdestroy<T>(object:Null<IFlxDestroyable>):T

Checks if an object is not null before calling destroy(), always returns null.

Parameters:

object

An IFlxDestroyable object that will be destroyed if it's not null.

Returns:

null

staticdestroyArray<T>(array:Array<T>):Array<T>

Destroy every element of an array of IFlxDestroyables

Parameters:

array

An Array of IFlxDestroyable objects

Returns:

null

staticdispose(bitmapData:BitmapData):BitmapData

Checks if a BitmapData object is not null before calling dispose() on it, always returns null.

Parameters:

Bitmap

A BitmapData to be disposed if not null

Returns:

null

staticdisposeIfNotEqual(bitmapData:BitmapData, width:Float, height:Float):BitmapData

Checks if a BitmapData object is not null and it's size isn't equal to specified one before calling dispose() on it.

staticput<T>(object:IFlxPooled):T

Checks if an object is not null before putting it back into the pool, always returns null.

Parameters:

object

An IFlxPooled object that will be put back into the pool if it's not null

Returns:

null

staticputArray<T>(array:Array<T>):Array<T>

Puts all objects in an Array of IFlxPooled objects back into the pool by calling FlxDestroyUtil.put() on them

Parameters:

array

An Array of IFlxPooled objects

Returns:

null

staticremoveChild<T>(parent:DisplayObjectContainer, child:T):T