[SOLVED] How do I change the frame on a newImageRect?

Hi!

I’m in the process of replacing my code that used the old sprite api with Image Sheets but I can’t figure out how to change the frame on a display.newImageRect( ). Any one know how to do this or if it’s even possible?

Thanks in advance.

[EDIT: Moved this to the daily Builds forum from Developer support considering it’s not available in stable builds.] [import]uid: 129450 topic_id: 23186 reply_id: 323186[/import]

Anyone got an idea? Really need to be able to have an object which I can manually change frame on when needed, I’ve tried using sprites instead but the .frame property doesn’t work. [import]uid: 129450 topic_id: 23186 reply_id: 93065[/import]

“Image objects will always display the same image, so use sprites if you want to swap the frame of a sheet, e.g. a button with an up and down state.” - Walter

http://developer.anscamobile.com/forum/2012/03/14/issues-imagesheetsimage-groupssprites-build-759#comment-93241 [import]uid: 129450 topic_id: 23186 reply_id: 93717[/import]