i have a problem using ui.lua, any advice will be much appreciated
sorry for many different topics, but im such a noob(
[code][lua]local ui = require(“ui”)
local director = require(“director”)
function printing()
print(“wow”)
end
local button = ui.newButton
{
defaultSrc = “buttonBlue.png”, defaultX = 298, defaultY = 56,
overSrc = “buttonBlueOver.png”, overX = 298, overY = 56,
text = “Play Game”
onRelease = function()printing() end, --use a function closure to pass parameter
text = “Level 2”,
emboss = true
}
button.x = 250; button.y= 250
[/code][/lua]
terminal is pointing to onRelease,but i dont understand why its not working… [import]uid: 16142 topic_id: 11667 reply_id: 311667[/import]

[import]uid: 52491 topic_id: 11667 reply_id: 42482[/import]