load widget image form sheet

hello,

why i can not load an image in a widget button from an imagesheet ?

local cloudbutton=widget.newButton {         defaultFile = "images/buttons/cloud.png",  -- THIS WORK         overFile = display.newImage(myImageSheet,sheetInfo:getFrameIndex("cloud\_over")), -- does not work         width = 36,         height = 36,         x=centerX,         y=0,         id = "cloudButton",         onEvent = onButtonEvent,     }

 Thank you

Hi @shadrak,
You can do this, but the parameters are unique when using an image sheet. Please refer to the following documentation which shows exactly how to visually customize a button widget:

http://docs.coronalabs.com/api/library/widget/newButton.html

Take care,
Brent

Hi @shadrak,
You can do this, but the parameters are unique when using an image sheet. Please refer to the following documentation which shows exactly how to visually customize a button widget:

http://docs.coronalabs.com/api/library/widget/newButton.html

Take care,
Brent