How to set the .currentFrame property with the new sprite API?

How can we change the currently displayed image frame of a sprite that was created from an image sheet?

The “old style” command doesn’t seem to work anymore:

[lua]AnySprite.currentFrame = …[/lua]
[import]uid: 10504 topic_id: 23271 reply_id: 323271[/import]

Beat me to it by a day.
I just took a backup and started reading about the new image sheet stuff, then ran into this brick wall:

spriteObject.frame – Read-only – Currently shown frame index of loaded sequence.

I use .currentFrame extensively right now.
If old sprite is deprecated, my whole app goes belly up…

[import]uid: 108660 topic_id: 23271 reply_id: 93369[/import]

+1 for this question… anyone at Corona knows the answer? [import]uid: 10284 topic_id: 23271 reply_id: 94237[/import]

Philipp, you can use sprite:setFrame() as explained here.
[import]uid: 10504 topic_id: 23271 reply_id: 94378[/import]

Thanks X-Pressive! [import]uid: 10284 topic_id: 23271 reply_id: 94381[/import]