Leather Engine Documentation
View source

class FlxKeyFrame

package flxanimate.animate

@:directlyUsed

Static methods

staticfromJSON(frame:Frame):Null<FlxKeyFrame>

Constructor

@:value({ duration : 1 })new(index:Int, duration:Int = 1, ?elements:Array<FlxElement>, ?colorEffect:ColorEffect, ?name:String)

Variables

colorEffect:ColorEffect

duration:Int

index:Int

read onlyname:Null<String>

Methods

add(element:EitherType<FlxElement, Function>):Null<EitherType<FlxElement, Function>>

clone():FlxKeyFrame

destroy():Void

fireCallbacks():Void

get(element:Int):FlxElement

getList():Array<FlxElement>

remove(element:EitherType<FlxElement, Function>):Null<EitherType<FlxElement, Function>>

removeCallbacks():Void

toString():String

© 2025