I am trying to remove an event listener but it doesn’t appear to be removing.
I add it as follows:
Runtime:addEventListener( "enterFrame", moveBallObjects )
And inside a local function if a conditional is met I remove it as follows:
Runtime:removeEventListener( "enterFrame", moveBallObjects )
I have put a print statement in the moveBallObjects function to check if it is still being called after I remove the event listener and unfortunately it is.
Guess I am doing something wrong?
Any help appreciated.
Thanks
Paul
[import]uid: 7863 topic_id: 2539 reply_id: 302539[/import]