I need to remove the text in a textfield when the user clicks the field. I´ve tried adding a listener but it didn´t work
[code]
local textBox = native.newTextField( 210, 200, 100, 30, txtList)
textBox:setTextColor(0, 0, 0, 255 )
textBox.hasBackground = false
textBox.inputType = “number”
textBox.text = “Price”
function txtBxLst ()
textBox.text = “”
end
textBox:addEventListener(“tap”, txtBxLst)
[/code] [import]uid: 93074 topic_id: 21358 reply_id: 321358[/import]
