error while custominzing check button

Hey,

I created a check button and I’d like to customize it with an image sheet, but I got an error… her’s the code I’m using:

  --  options for the  imagesheet: Sheet\_opt = { width = 200, height = 200, numFrames = 2,  sheetContentWidth = 200, sheetContentHeight = 200 }    -- create the actual image sheet, which is just two frames and created with texture packer: Balls\_sheet =graphics.newImageSheet( "on\_off.png", Sheet\_opt )    -- create the switch implementing the image sheet customization: FXswitch =  widget.newSwitch({style="checkbox", x=150, y=100,sheet = Balls\_sheet, frameOff=2, frameOn=1,       initialSwitchState=sfxIsPlaying,onPress = function () sfxIsPlaying = not sfxIsPlaying end })   

seems about right but I get this error:

Incorrect number of frames (w,h) = (200,200) with border (0) in texture (w,h) = (200,200). Failed after frame 2 out of 2.
stack traceback:
    [C]: in function ‘newImageSheet’

Any idea what this is about???

Thank you.
 

Ok, never mind: it was an incongruence between the width value I put in and the actual width of the image sheet file. Sorry!

Ok, never mind: it was an incongruence between the width value I put in and the actual width of the image sheet file. Sorry!