Button to disable "click" event when it's clicked

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]

A quick search for “addEvent” in ui.lua highlights this line

button:addEventListener( "touch", button )  

So you can see the event listener isn’t registered on the function directly but on the button object. Try this

doneBtn:removeEventListener("touch", doneBtn)  

What exactly are you doing though? I’m wondering why keep displaying a button that isn’t functional. [import]uid: 12108 topic_id: 4587 reply_id: 14512[/import]

i am using the ui.lua, but not for table listing
It’s a ‘countdown’ button,
where once clicked, it will ticking, with a countdown number
So, the button has to be disable ‘re-click’ but still need to show it on screen

Thanks [import]uid: 10373 topic_id: 4587 reply_id: 14543[/import]