Defines a set of callbacks available to scripted classes which can be added to the current state. Generally requires the class to be an instance of FlxBasic.

Methods

onAdd(event:ScriptEvent):Void

Called when the relevant element is added to the game state.