FlexLayer#getChildIndex()

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance Parameters Name Type Description child DisplayObject The DisplayObject instance to identify Returns Number - The index position of the child display object to identify Inherited From PIXI.DisplayObjectContainer#getChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 112)

FlexLayer#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

FlexLayer#getByName()

getByName(name) → {any} Searches the Group for the first instance of a child with the nameproperty matching the given argument. Should more than one child havethe same name only the first instance is returned. Parameters Name Type Description name string The name to search for. Returns any - The first child with a matching name, or null if none were found. Inherited From Phaser.Group#getByName Source code: core/Group.js (Line 1042)

FlexLayer#getBounds()

getBounds(targetCoordinateSpace) → {Rectangle} Retrieves the global bounds of the displayObjectContainer as a rectangle. The bounds calculation takes all visible children into consideration. Parameters Name Type Argument Description targetCoordinateSpace PIXIDisplayObject | PIXIMatrix <optional> Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object. Returns Rectangle - The rectangular bounding area

FlexLayer#getBottom()

getBottom() → {any} Returns the child at the bottom of this group. The bottom child the child being displayed (rendered) below every other child. Returns any - The child at the bottom of the Group. Inherited From Phaser.Group#getBottom Source code: core/Group.js (Line 2221)

FlexLayer#getAt()

getAt(index) → {DisplayObject | integer} Returns the child found at the given index within this group. Parameters Name Type Description index integer The index to return the child from. Returns DisplayObject | integer - The child that was found at the given index, or -1 for an invalid index. Inherited From Phaser.Group#getAt Source code: core/Group.js (Line 524)

FlexLayer#getAll()

getAll(property, value, startIndex, endIndex) → {any} Returns all children in this Group. You can optionally specify a matching criteria using the property and value arguments. For example: getAll('exists', true) would return only children that have their exists property set. Optionally you can specify a start and end index. For example if this Group had 100 children,and you set startIndex to 0 and endIndex to 50, it would return a random child from onlythe first 50 children in the Group. Pa

FlexLayer#forEachExists()

forEachExists(callback, callbackContext, args) Call a function on each existing child in this group. See forEach for details. Parameters Name Type Argument Default Description callback function The function that will be called for each applicable child. The child will be passed as the first argument. callbackContext object The context in which the function should be called (usually 'this'). args any <optional> <repeatable> (none) Additional arguments to pass to t

FlexLayer#forEachDead()

forEachDead(callback, callbackContext, args) Call a function on each dead child in this group. See forEach for details. Parameters Name Type Argument Default Description callback function The function that will be called for each applicable child. The child will be passed as the first argument. callbackContext object The context in which the function should be called (usually 'this'). args any <optional> <repeatable> (none) Additional arguments to pass to the cal

FlexLayer#forEachAlive()

forEachAlive(callback, callbackContext, args) Call a function on each alive child in this group. See forEach for details. Parameters Name Type Argument Default Description callback function The function that will be called for each applicable child. The child will be passed as the first argument. callbackContext object The context in which the function should be called (usually 'this'). args any <optional> <repeatable> (none) Additional arguments to pass to the c