Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIEaseDriver Class Reference
Inheritance diagram for MOAIEaseDriver:
MOAITimer MOAINode MOAIAction MOAIInstanceEventSource MOAIInstanceEventSource MOAIEventSource MOAIEventSource

List of all members.

Function List

  reserveLinks
  setLink

Function Documentation

Reserve links.


function reserveLinks ( MOAIEaseDriver self, number nLinks )
Parameters:
self ( MOAIEaseDriver )
nLinks ( number )
Returns:
nil

Set the ease for a target node attribute.


function setLink ( MOAIEaseDriver self, number idx, MOAINode target, number attrID [, number value, number mode ] )
Parameters:
self ( MOAIEaseDriver )
idx ( number ) Index of the link;
target ( MOAINode ) Target node.
attrID ( number ) Index of the attribute to be driven.
value ( number ) Optional. Value for attribute at the end of the ease. Default is 0.
mode ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH.
Returns:
nil
Note:
Target is a number.

function setLink ( MOAIEaseDriver self, number idx, MOAINode target, number attrID, MOAINode source, number sourceAttrID [, number mode ] )
Parameters:
self ( MOAIEaseDriver )
idx ( number ) Index of the link;
target ( MOAINode ) Target node.
attrID ( number ) Index of the attribute to be driven.
source ( MOAINode ) Node that you are linking to target.
sourceAttrID ( number ) Index of the attribute being linked.
mode ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH.
Returns:
nil
Note:
Target is a node.