Key points of using --animation Kinetic

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

new Animation(func, layers)

  Parameters:

    func: Each frame can be a call to this function. This function accepts a parameter object contains four elements, the time unit is milliseconds.

{
    timeDiff:"A frame and the current frame time difference",
    lastTime:"The animation starts and a frame time difference",
    time:"Animation starts and the current frame time difference",
    frameRate:"Animation execution frequency FPS"
}

    layers: Each frame of animation needs to redraw layer. Can be a layer, layer array and null.

  Method:

    addLayer(layer): Add a layer to the current animation, if you add a return true, otherwise returns false.

    getLayers(): Gets the current animation all layers.

    isRunning(): Make sure that the current animation is running, if it is to return true, otherwise returns false.

    setLayers(layers): Add a layer to the current animation, adding method and the instantiated function layers parameters.

    start(): Boot animation.

    stop(): Stop Animation.

    

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Arthur at December 17, 2013 - 3:40 AM