Some help with the basics

This may be a completely lame question but I am new to programming and it feels like I am missing a piece to the puzzle.

I was looking at the sample code for “Button-events” and in that code there are references to:

ui.newLabel
ui.newButton

I cannot seem to find information on these. Is there a reference document to these “ui.'s” and the parameters they take? Is there a reference source to others that are used that I don’t see in the Corona API’s?

Forgive my ignorance. Thanks for any help you can give. [import]uid: 16203 topic_id: 5600 reply_id: 305600[/import]

Got it. Those are referencing the ui.lua file that is required and where the helper functions and classes are defined.

Lame question it was, sorry. [import]uid: 16203 topic_id: 5600 reply_id: 19057[/import]

No seriously, that was a good question. Which example are you using?

Right now I’m trying to make my buttons “press” properly so when you touch it another “pressed button” image is loaded but the code I’ve got isn’t working with my code.

Suggestions? Thanks man!

[import]uid: 20687 topic_id: 5600 reply_id: 19089[/import]

There are multiple versions of ui.lua floating around actually. The samples that come with Corona have 1.1, on Code Exchange you can download 1.5, but the version I would recommend is the tweak jon beebe made in the Ghosts vs. Monsters sample.

The syntax for the commands is the same as the version on Code Exchange (so look there for instructions) but jon’s version has high-res text on Retina displays. [import]uid: 12108 topic_id: 5600 reply_id: 19092[/import]

Ahh, I see!

Thanks for answering my question jhocking! Much appreciated and keep on rocking!

-chrisbryantguitar [import]uid: 20687 topic_id: 5600 reply_id: 19094[/import]