i am using the ui.lua class provided in corona
here my code
doneBtn = gameUI.newButton{
default = gButton.countdown,
onRelease = startStableCountDown
}
doneBtn.x = 300
doneBtn.y = 150
i need a code to disable the “click” event once it’s clicked
i tried may ways below, but doesn’t work
[code]
doneBtn:removeEventListener(“onRelease”, startStableCountDown)
doneBtn:removeEventListener(“onPress”, startStableCountDown)
doneBtn:removeEventListener(“touch”, startStableCountDown)
doneBtn:removeEventListener(“tap”, startStableCountDown)
[/code] [import]uid: 10373 topic_id: 4587 reply_id: 304587[/import]