Draknek/FlashPunk — Issue #65: Spritemap.play frame parameter does not work as documented
Author: Blecki
Created: 2012-02-05 18:17:04+00:00
State: open

The function header has this to say about the frame parameter

`
/**
* Plays an animation.
* @param	name	Name of the animation to play.
* @param	reset	If the animation should force-restart if it is already playing.
* @param	frame	Frame of the animation to start from, if restarted.
* @return	Anim object representing the played animation.
*/
`

However, it does not work. The function sets the current frame, but does not set the index into the animation.

Line 132 of Spritemap.as should read	_index = frame % _anim._frameCount;