remove button

Hi, how can i delete the UI button?
The code nameOfButton:removeSelf() doesn't works properly.

myButton:removeSelf()
myButton = nil

Should work, UNLESS you have some other variable referencing that object somewhere else in your code.

it seems doesen't work for me, i should remove all object when i press some a button
Here i have the sample code, can you help me?
http://cl.ly/1f36451v0q230W2O3R2n

views:1682 update:2011/10/6 9:28:12
corona forums © 2003-2011