Getting started
Lua Language
Lua Object Oriented
API Reference
Hello World
When the user clicks on this button.
This example prints the name of the button when the user click.
1 2 3 4 5
local function onClickHandler ( this ) print ( 'the click is on the button "'.. this:getSender():getName() ..'"' ) end myButton.onEnter:setHandler(onEnterHandler)