get frames from spritesheet

How can I get (and display) individual frames from a sprite sheet loaded with newSpriteSheetFromData? I don’t want to just tell a sprite to animate through all the frames; I want to, in a time-based or screen-refresh-based update method choose ‘by hand’ which frame to display.

Is this possible? Is it clear what I’m asking for?

thanks!
[import]uid: 4686 topic_id: 13188 reply_id: 313188[/import]

If I understood your question correctly, then just prepare the sprite, it will keep the sprite on the first frame.
[lua]spriteInstance:prepare() [import]uid: 17138 topic_id: 13188 reply_id: 48397[/import]

…and then how do I display, say, frame 17? [import]uid: 4686 topic_id: 13188 reply_id: 48398[/import]

ah, nevermind:

mysprite.currentFrame = 17 [import]uid: 4686 topic_id: 13188 reply_id: 48406[/import]