class motion.actuators.GenericActuator<T>

Instance Fields

function new(target:T, duration:Float, properties:Dynamic): Void

function autoVisible(?value:Bool): GenericActuator<T>

Flash performs faster when objects are set to visible = false rather than only alpha = 0. autoVisible toggles automatically based on alpha values

value

Whether autoVisible should be enabled (Default is true)

returns

The current actuator instance

function delay(duration:Float): GenericActuator<T>

Increases the delay before a tween is executed

duration

The amount of seconds to delay

returns

The current actuator instance

function ease(easing:IEasing): GenericActuator<T>

Sets the easing which is used when running the tween

easing

An easing equation, like Elastic.easeIn or Quad.easeOut

returns

The current actuator instance

function onComplete(handler:Dynamic, ?parameters:Array<Dynamic>): GenericActuator<T>

Defines a function which will be called when the tween finishes

handler

The function you would like to be called

parameters

Parameters you would like to pass to the handler function when it is called

returns

The current actuator instance

function onPause(handler:Dynamic, ?parameters:Array<Dynamic>): GenericActuator<T>

Defines a function which will be called when the tween is paused

handler

The function you would like to be called

parameters

Parameters you would like to pass to the handler function when it is called

returns

The current actuator instance

function onRepeat(handler:Dynamic, ?parameters:Array<Dynamic>): GenericActuator<T>

Defines a function which will be called when the tween repeats

handler

The function you would like to be called

parameters

Parameters you would like to pass to the handler function when it is called

returns

The current actuator instance

function onResume(handler:Dynamic, ?parameters:Array<Dynamic>): GenericActuator<T>

Defines a function which will be called when the tween resumed after pause

handler

The function you would like to be called

parameters

Parameters you would like to pass to the handler function when it is called

returns

The current actuator instance

function onUpdate(handler:Dynamic, ?parameters:Array<Dynamic>): GenericActuator<T>

Defines a function which will be called when the tween updates

handler

The function you would like to be called

parameters

Parameters you would like to pass to the handler function when it is called

returns

The current actuator instance

function reflect(?value:Bool): GenericActuator<T>

Automatically changes the reverse value when the tween repeats. Repeat must be enabled for this to have any effect

value

Whether reflect should be enabled (Default is true)

returns

The current actuator instance

function repeat(?times:Int): GenericActuator<T>

Repeats the tween after it finishes

times

The number of times you would like the tween to repeat, or -1 if you would like to repeat the tween indefinitely (Default is -1)

returns

The current actuator instance

function reverse(?value:Bool): GenericActuator<T>

Sets if the tween should be handled in reverse

value

Whether the tween should be reversed (Default is true)

returns

The current actuator instance

function smartRotation(?value:Bool): GenericActuator<T>

Enabling smartRotation can prevent undesired results when tweening rotation values

value

Whether smart rotation should be enabled (Default is true)

returns

The current actuator instance

function snapping(?value:Bool): GenericActuator<T>

Snapping causes tween values to be rounded automatically

value

Whether tween values should be rounded (Default is true)

returns

The current actuator instance