I’m trying to get a label on the scree, set it’s colour and text and then later set it’s text based on a textbox content. I’ve started with this:
local ui = require(“ui”)
local defaultLabel = ui.newLabel( “Default”, 200, 35, native.systemFont, 18 )
defaultLabel:setTextColor( 200, 200, 255, 255 )
But it throws an exception:
attempt to call method ‘setTextColor’ (a nil value)
What am I doing wrong?
Please help!
Thanks,
matt [import]uid: 8271 topic_id: 2663 reply_id: 302663[/import]