   playAnimation: (animation) ->
     animTask = new DivSugar.Task()
     animTask.animation = animation
-    animTask._elapsedTime = 0
     animTask._cmdIndex = 0
     animTask._firstFrame = true
     animTask.onUpdate = (elapsedTime) => @_updateAnimation animTask, elapsedTime

    return animTask

  _updateAnimation: (animTask, elapsedTime) ->
    animTask._elapsedTime += elapsedTime

    while animTask._elapsedTime > 0
      if animTask._cmdIndex >= animTask.animation.length
        animTask.destroy()
        return


          @_transform.set animTask._fromTransform if animTask._fromImageClip?

          if animTask._totalTime > elapsedTime
            animTask._currentTime += elapsedTime
            elapsedTime = 0
          else
            elapsedTime -= animTask._totalTime
            animTask._currentTime = animTask._totalTime
            animTask._cmdIndex++
            animTask._firstFrame = true

