stop spritesheet

hii, this may be really simple question but imp.
I have created one spritesheet as below.
local sheet3 = sprite.newSpriteSheet( “CM_Page1_MonkeyJmp_Sprite_vinay_v002.png”,400,317)

local spriteSet3 = sprite.newSpriteSet(sheet3, 1, 8)
sprite.add( spriteSet3, “puma”, 1, 8, 1000, 0 ) – play 8 frames every 1000 ms

local instance3 = sprite.newSprite( spriteSet3 )
instance3.x = 2* display.contentWidth / 4 + 30
instance3.y = baseline - 5
instance3.xScale = .5
instance3.yScale = .5

instance3:prepare(“puma”)
instance3:play()

Now i want to stop this spritesheet once it completes one loop.

How can i do that?

Thanks,
Pravin Gate
[import]uid: 52727 topic_id: 8890 reply_id: 308890[/import]

I think you also asked this question on Stack Overflow so I’ll just copy/paste my answer from there:

When you define the animation in the first place you set whether or not to loop: http://developer.anscamobile.com/reference/index/spriteadd

Alternatively if you need to adjust the animation programmatically (ie. loop until the player does something) then you can set an event listener and call pause() when the loop event happens: http://developer.anscamobile.com/reference/index/spriteinstanceaddeventlistener
[import]uid: 12108 topic_id: 8890 reply_id: 32685[/import]