Class lime.animation.Loop
Extends
lime.animation.Animation.
Defined in: loop.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.animation.Loop(action)
Loop animation again after it has finished
|
- Fields borrowed from class lime.animation.Animation:
- isPlaying_, scope, targets, update
| Method Attributes | Method Name and Description |
|---|---|
|
addTarget(target)
|
|
|
getLimit()
Return the run limit value for animation.
|
|
| <private> |
Handle action end.
|
|
initTarget(target)
|
|
|
play()
|
|
|
removeTarget(target)
|
|
|
setLimit(value)
Set new run limit for animation.
|
|
|
stop()
|
- Methods borrowed from class lime.animation.Animation:
- cloneParam, enableOptimizations, getDirector, getDuration, getEasing, getTargetProp, makeTargetProp, reverse, setDuration, setEasing, step_, updateAll, useTransitions
Class Detail
lime.animation.Loop(action)
Loop animation again after it has finished
- Parameters:
- {lime.animation.Animation} action
- Animation to loop.
Method Detail
addTarget(target)
- Parameters:
- target
{number}
getLimit()
Return the run limit value for animation. 0 means no limit.
- Returns:
- {number} Limit.
<private>
handleActionEnd_()
Handle action end. Start new action or stop if limit reached.
initTarget(target)
- Parameters:
- target
play()
removeTarget(target)
- Parameters:
- target
{lime.animation.Loop}
setLimit(value)
Set new run limit for animation. 0 means no limit/infinity.
- Parameters:
- {number} value
- New limit value.
- Returns:
- {lime.animation.Loop} object itself.
stop()