Turning EventListeners on/off

I have a bug in the current release of my game that makes it possible to cheat!
Before the user launches the ball, they can move and arrange the platforms. When they launch the ball, they shouldn’t be able to move the platforms, until they reset the ball.

I accomplish this by using addEventListener when the ball is reset, and removeEventListener when the ball is dropped. Seemed to work fine…

The bug comes into play after the player has dropped/reset the ball about 3 or 4 times. Then the EventListener stays active, and the player can move the platforms when the ball is in play, making it VERY easy to beat the level. When the next level starts, it works properly again, until 3 or 4 resets.

Is there a better/more proper way to suspend or toggle Event Listeners? [import]uid: 18951 topic_id: 12349 reply_id: 312349[/import]

you could try instead of turning the listeners on/off set a Boolean that will skip the touch events until its time [import]uid: 7911 topic_id: 12349 reply_id: 45007[/import]