I know, I know. Stupid question. If I look hard enough, maybe I’ll find it. However I have been searching google, Corona Docs, API and Templates, example programs and forums and I still haven’t found what I’m looking for.
[lua]local msg
local t = ui.newLabel{
bounds = {100, 55, 100, 10},
text = “loading…”,
align = “center”
}
function showMsg(msg)
t:setText(msg)
end
function changeMessage(event)
msg = “This is a message”
end[/lua]
This obviously doesn’t work, but how can I write it so that it does? I’m guessing it’s something to do with showMsg and the way I define the input? [import]uid: 106739 topic_id: 18353 reply_id: 318353[/import]