class flixel.addons.display.FlxNestedSprite extends FlxSprite
Available on all platforms
Some sort of DisplayObjectContainer but very limited. * It can contain only other FlxNestedSprites. * @author Zaphod
Instance Fields
function add(Child:FlxNestedSprite):FlxNestedSprite
Adds the FlxNestedSprite to the children list. * *
Child | The FlxNestedSprite to add. * |
returns | The added FlxNestedSprite. |
WARNING: This will remove this sprite entirely. Use kill() if you * want to disable it temporarily only and reset() it later to revive it. * Used to clean up memory.
function remove(Child:FlxNestedSprite):FlxNestedSprite
Removes the FlxNestedSprite from the children list. * *
Child | The FlxNestedSprite to remove. * |
returns | The removed FlxNestedSprite. |
function removeAt(?Index:Int = 0):FlxNestedSprite
Removes the FlxNestedSprite from the position in the children list. * *
Index | Index to remove. |