Class Index | File Index

Classes


Class lime.animation.KeyframeAnimation


Extends lime.animation.Animation.

Defined in: keyframeanimation.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Keyframe Animation object.
Field Summary
Field Attributes Field Name and Description
<private>  
Current frame index of the playhead
 
Delay in seconds between frames
<private>  
Array of frame images
 
Should the animation keep looping or stop when frame animation done.
<private>  
Number of frame images loaded
 
<private>  
Animation is using Background Canvas to make the changes.
Fields borrowed from class lime.animation.Animation:
isPlaying_, targets, update
Method Summary
Method Attributes Method Name and Description
 
addFrame(frame)
Add frame to the current animation
<private>  
Handler to be called on every loaded frame image
 
Returns the delay in seconds between frames.
 
play()
 
setDelay(value)
Set the delay between frames to specific value.
 
setFrames(frames)
Set array of frames to be used in the animation
 
setLooping(looping)
Set the keyframe animation to keep loopoing or just play the animation once.
 
updateAll(t, targets)
Methods borrowed from class lime.animation.Animation:
addTarget, cloneParam, enableOptimizations, getDirector, getDuration, getEasing, getTargetProp, initTarget, makeTargetProp, removeTarget, reverse, setDuration, setEasing, step_, stop, useTransitions
Class Detail
lime.animation.KeyframeAnimation()
Keyframe Animation object. Keyframe Animation contains images that are changed on targets. Similar to GIF effect.
Field Detail
<private> currentFrame_
Current frame index of the playhead

delay
Delay in seconds between frames

<private> frames_
Array of frame images

looping
Should the animation keep looping or stop when frame animation done. Setting loopoing to true, this is deafault behaviour.

<private> numFramesLoaded_
Number of frame images loaded

scope

<private> usesBackgroundCanvas_
Animation is using Background Canvas to make the changes. Faster if there are many targets but only supported on Webkit.
Method Detail
{lime.animation.KeyframeAnimation} addFrame(frame)
Add frame to the current animation
Parameters:
{string} frame
Path to frame image.
Returns:
{lime.animation.KeyframeAnimation} object itself.

<private> frameLoadedHandler_()
Handler to be called on every loaded frame image

{number} getDelay()
Returns the delay in seconds between frames.
Returns:
{number} Delay between frames.

play()

{lime.animation.KeyframeAnimation} setDelay(value)
Set the delay between frames to specific value.
Parameters:
{number} value
New delay value.
Returns:
{lime.animation.KeyframeAnimation} object itself.

{lime.animation.KeyframeAnimation} setFrames(frames)
Set array of frames to be used in the animation
Parameters:
{Array.} frames
Paths to frame images.
Returns:
{lime.animation.KeyframeAnimation} object itself.

{lime.animation.KeyframeAnimation} setLooping(looping)
Set the keyframe animation to keep loopoing or just play the animation once.
Parameters:
{boolean} looping
Keep looping or not.
Returns:
{lime.animation.KeyframeAnimation} object itself.

updateAll(t, targets)
Parameters:
t
targets

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 30 2011 11:27:20 GMT+0300 (EEST)