Description

Adds a loop listener in a element to perform an animation (with addLoopListener). From the method call, the loop is started on the animation stop. Use the play method to start the animation

Usage

Parameters

  • seq {String}

    Name of the sequence corresponding to the key in the initialization of the class

  • type {String} optional

    (optional) Choose from :

    • loop : Animation loop
    • stop : The animation is done once and stops
    • remove : The animation is done once and removed at the end

Returns

CanvasEngine.Animation

Discussion