@:value({ frame : 0, reversed : false, suffix : "" })new(animName:String, direction:Int, suffix:String = "", reversed:Bool = false, frame:Int = 0)
animName:String
Default animation that will be played
direction:Int
In which direction the animation will be played
force:Bool
Whenever the animation will play reversed or not.
frame:Int
At what frame the animation will start playing
reversed:Bool
suffix:String
The suffix of the animation (ex: "-alt") - Defaults to ""
@:value({ })data:Dynamic = { }
Additional data if used in scripts
@:value({ c : false })preventDefault(c:Bool = false):Void
Prevents default action from occuring.
Parameters:
c
Whenever the scripts following this one should be called or not. (Defaults to true)
true
toString():String
Returns a string representation of the event, in this format: [CancellableEvent] [CancellableEvent (Cancelled)]
[CancellableEvent]
[CancellableEvent (Cancelled)]
Returns:
String