I need to remove the event listener before remove the object or it will be removed automatically?
For exemple:
local startBut = display.newImageRect("images/bt\_draw.png", 239, 110)
function startBut:touch ( event )
end
startBut:addEventListener("touch", startBut)
To remove this object I use:
startBut:removeEventListener("touch", startBut)-- this line is needed or not??
startBut:removeSelf()
[import]uid: 6732 topic_id: 9302 reply_id: 309302[/import]
[import]uid: 52491 topic_id: 9302 reply_id: 34035[/import]