I got my button to work. how do I make it have an image instead of text?

I finally got the button to work but the only problem is that my button does not have my default image and my over image anymore it just has “play now”. I would really be grateful if anyone  could tell me how I could implement the two images (default, and over) into my button instead of just having bland text that says “play now”. oh and a snap of my code.

any help at all is appreciated!

thanks!

Max

Hey,

“default” and “over” should be “defaultFile” and “overFile” respectively when including files in the button widget.  I saw that just from checking the docs dude… (*hint hint*)

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

Rich

are your 2 graphics (button and buttonclick) both .png’s and both in the same folder as lua thats calling them?

yeah but its making the play now act like a button with the default and over but i want my images to be there

rich my man!!! it worked! now how do I put multiple buttons on the same page my menu.lua?

I did it yo!

Hey,

“default” and “over” should be “defaultFile” and “overFile” respectively when including files in the button widget.  I saw that just from checking the docs dude… (*hint hint*)

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

Rich

are your 2 graphics (button and buttonclick) both .png’s and both in the same folder as lua thats calling them?

yeah but its making the play now act like a button with the default and over but i want my images to be there

rich my man!!! it worked! now how do I put multiple buttons on the same page my menu.lua?

I did it yo!