Constructor
Variables
Methods
addCallbackTo(label:String, callback:Function, ?layer:EitherType<Int, String>):Bool
Adds a callback to a specific frame label.
Parameters:
label | |
|---|---|
callback | |
null | layer |
getCallbackFrom(label:String, callback:EitherType<Function, Int>, ?layer:EitherType<Int, String>):Null<Function>
getElement(index:Int, ?frame:Int):FlxElement
Gets an element through a specific index from a frame.
Parameters:
index | The element index. |
|---|---|
frame | The keyframe the element is located. If set to |
Returns:
an FlxElement instance.
getElementByName(name:String, ?frame:Int, ?layer:EitherType<Int, String>):Null<FlxElement>
Gets a symbol element via the symbol's name or the instance's name inside a frame.
Parameters:
name | this can be either the name of the symbol or the instance. |
|---|---|
frame | The keyframe the element is located. If set to |
layer | Which layer it should take as a reference. if set to |
Returns:
an FlxElement instance.
getElementIndex(element:FlxElement, ?frame:Int):Int
Gets the element's position inside a frame.
Parameters:
element | The element in question. |
|---|---|
frame | The keyframe the element is located. If set to |
getFrameLabels(?layer:EitherType<Int, String>):Array<FlxKeyFrame>
Gets a list of frames that have a label of any kind.
Parameters:
layer | A specific layer to get the list. if set to |
|---|
removeCallbackFrom(label:String, callback:EitherType<Function, Int>, ?layer:EitherType<Int, String>):Bool
Removes a callback from a certain label. can be extracted from a certain layer.
Parameters:
label | The label in question. |
|---|---|
callback | The callback. Can be the actual function or an |
layer | The layer in question. |
swapElements(oldElement:FlxElement, newElement:FlxElement, ?frame:Int):Void
Swaps an element with another one.
Parameters:
oldElement | The element you wanna replace |
|---|---|
newElement | The new element that's gonna replace the old one |
frame | The keyframe the element is located. If set to |