So I have a button, that inside the listener I want to remove the current listener so the user cant click over and over, but it doesn’t remove the listener and still executes all the code within that listener. My code is below. Any help appreciated, thanks!
local listenerContinue = function(event)
buttonContinueRolled:removeEventListener(“touch”, listenerContinue)
media.playEventSound(sound_selection);
media.stopSound();
return true;
end
local function animateButtons()
buttonContinueRolled = display.newImage(“2a_button_continue.png”);
buttonContinueRolled:addEventListener(“touch”, listenerContinue );
end [import]uid: 6317 topic_id: 893 reply_id: 300893[/import]