Add mechanism to reset Animation?
The frame.time property indicates the total number of ms the animation has been running, and persists across start() and stop() calls. Since it looks like the animation code passes the actual frame instance held by the animation, I can modify the time property directly, but it would be clearer if Animation had a reset() or similar method to do the same.
what is the use case here? You need the time to be set back to zero?
Yes. In my case, I'm using an animation to pulse the drawing properties of some shapes in response to an event. I figured I'd create the event once, call start() when the event occurs, and call stop() within the frame callback once the desired duration is reached.
sounds like you should be using Tweens. Here's what you're looking for:
http://www.html5canvastutorials.com/kineticjs/html5-canvas-stop-and-resume-transitions-with-kineticjs/
A reset would be very helpful for me - tweens won't do. I have had to implement my own timer count, which is not a big deal, but it seems like a work-around when a reset would be so much simpler and clearer.