I have created a button widget object on the app and set some properties to it.
After some time i want to change the default file image of the button, but don’t want to recreate the object again. Is this possible in corona?
local button1 = widget.newButton { width = 240, height = 120, defaultFile = "buttonDefault.png", overFile = "buttonOver.png", label = "button", onEvent = handleButtonEvent } -- Center the button button1.x = display.contentCenterX button1.y = display.contentCenterY -- Change the button's label text button1:setLabel( "2-Image" ) -- Change the button's default file button1:setDefaultFile("buttonDefault-Changed.png") ????
