Widget Button No Longer Working

Hi all,

 

I’ve updated to the lastest build of the SDK and the button widgets now seem to be broken. I’ve checked the lastest docs and it seems that nothing much has changed, anyone know if it’s something I’ve done or if it’s a bug in the daily builds? Here is what I have?

 

 

soundButtonOn = widget.newButton{ id = "btn001", default = "assets/img/buttons/soundBtnOff\_off.png", over = "assets/img/buttons/soundBtnOff\_on.png", left = midX - 65, label = "", width = 50, height = 50, onEvent = onSoundBtnEvent }

 

 

The result is the default grey button with rounded corners. The button event doesn’t work (clicking on the button does nothing) and there are now errors in debug.

 

Thanks,

 

Neil

Hey, @nglenister, the widget has been updated to v2.0 as of daily build 1034.  You might want to take a look at the following:

 

http://www.coronalabs.com/blog/2013/02/22/widget-2-0-is-here-bam/

 

http://docs.coronalabs.com/daily/api/library/widget/index.html

 

http://docs.coronalabs.com/daily/api/library/widget/migration.html

 

Naomi

 

Thanks! That’s exactly what I needed :)!

Hey, @nglenister, the widget has been updated to v2.0 as of daily build 1034.  You might want to take a look at the following:

 

http://www.coronalabs.com/blog/2013/02/22/widget-2-0-is-here-bam/

 

http://docs.coronalabs.com/daily/api/library/widget/index.html

 

http://docs.coronalabs.com/daily/api/library/widget/migration.html

 

Naomi

 

Thanks! That’s exactly what I needed :)!