animation events for sprites not working?

When the player destroys an enemy I’m creating an explosion sprite as follows:

local explosion = sprite.newSprite( fxExplosionSpriteSet )
explosion.x = self.x
explosion.y = self.y
explosion:scale( 1.5, 1.5 )
explosion:prepare( “fx_explosion” )
explosion:play()
explosion:addEventListener( “animation”, KillSprite )

KillSprite is defined as:

local KillSprite = function( event )
if event.phase == “end” then
event.sprite:removeSelf()
end
end

KillSprite is never called. Am I missing something or is this something to do with the animation event for sprites? [import]uid: 6259 topic_id: 1605 reply_id: 301605[/import]

The documentation is wrong, and the event.sprite is not implemented. I am fixing it now.

The correct listener will be:
explosion:addEventListener( “sprite”, KillSprite )
[import]uid: 54 topic_id: 1605 reply_id: 4655[/import]