interface motion.actuators.IGenericActuator

Instance Fields

function autoVisible(?value:Bool): IGenericActuator

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): IGenericActuator

Increases the delay before a tween is executed

duration

The amount of seconds to delay

returns

The current actuator instance

function ease(easing:IEasing): IGenericActuator

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>): IGenericActuator

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>): IGenericActuator

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>): IGenericActuator

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>): IGenericActuator

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>): IGenericActuator

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): IGenericActuator

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): IGenericActuator

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): IGenericActuator

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): IGenericActuator

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): IGenericActuator

Snapping causes tween values to be rounded automatically

value

Whether tween values should be rounded (Default is true)

returns

The current actuator instance