why am I having this error ??

Hi

i’m having this error(attempt to call field ‘newImageSheet’ ) when i’m runing this code :
[blockcode]
local sheetData = {
width = 512,
height = 256,
numFrames = 8,
sheetContentWidth = 1024,
sheetContentHeight = 1024
}
local mySheet = graphics.newImageSheet( “runningcat.png”, sheetData )

[/blockcode]

i have my image file in right place , within lua files not in a separated folder
thank you [import]uid: 100339 topic_id: 32546 reply_id: 332546[/import]

attempt to call field ‘newImageSheet’ ; i should say [import]uid: 100339 topic_id: 32546 reply_id: 129377[/import]

a nil value sorry [import]uid: 100339 topic_id: 32546 reply_id: 129378[/import]

Did you require sprite?

[import]uid: 52491 topic_id: 32546 reply_id: 129402[/import]

Image sheets don’t require the old sprite library, so this an odd error. What Corona build are you using?

Brent [import]uid: 9747 topic_id: 32546 reply_id: 129421[/import]

attempt to call field ‘newImageSheet’ ; i should say [import]uid: 100339 topic_id: 32546 reply_id: 129377[/import]

a nil value sorry [import]uid: 100339 topic_id: 32546 reply_id: 129378[/import]

Thank you Pellen and Sorrentino

by the way i copied the code from Sorrentino’s blog about Animated Sprites and Methods,

i am using corona trial version 2011-12-8 704 , and yes pellen i required sprite lbr,

i try to replace the jungleScene code coming with corona trial (sample code), by your code Mr

Sorrentino, but i am having this error…

thank you
[import]uid: 100339 topic_id: 32546 reply_id: 129446[/import]

Did you require sprite?

[import]uid: 52491 topic_id: 32546 reply_id: 129402[/import]

Image sheets don’t require the old sprite library, so this an odd error. What Corona build are you using?

Brent [import]uid: 9747 topic_id: 32546 reply_id: 129421[/import]

Didn’t the graphics.newImageSheet() come to us in a build AFTER 704? I would download the latest stable build and try it from there. [import]uid: 19626 topic_id: 32546 reply_id: 129468[/import]

Thank you Pellen and Sorrentino

by the way i copied the code from Sorrentino’s blog about Animated Sprites and Methods,

i am using corona trial version 2011-12-8 704 , and yes pellen i required sprite lbr,

i try to replace the jungleScene code coming with corona trial (sample code), by your code Mr

Sorrentino, but i am having this error…

thank you
[import]uid: 100339 topic_id: 32546 reply_id: 129446[/import]

Didn’t the graphics.newImageSheet() come to us in a build AFTER 704? I would download the latest stable build and try it from there. [import]uid: 19626 topic_id: 32546 reply_id: 129468[/import]

Yes, I think you’re correct Rob. Image sheets rolled out sometime in early 2012, and Build 704 is from late 2011. I suspected this was why the term “newImageSheet” was throwing an error.

maqajma, please download the latest Public Build .894 and your code should work fine.

Thanks,
Brent
[import]uid: 9747 topic_id: 32546 reply_id: 129544[/import]

Ok , I 'll download the latest version … thank you bob, Sorrentino… I like your blogs… very helpful… [import]uid: 100339 topic_id: 32546 reply_id: 129547[/import]

Yes, I think you’re correct Rob. Image sheets rolled out sometime in early 2012, and Build 704 is from late 2011. I suspected this was why the term “newImageSheet” was throwing an error.

maqajma, please download the latest Public Build .894 and your code should work fine.

Thanks,
Brent
[import]uid: 9747 topic_id: 32546 reply_id: 129544[/import]

Ok , I 'll download the latest version … thank you bob, Sorrentino… I like your blogs… very helpful… [import]uid: 100339 topic_id: 32546 reply_id: 129547[/import]