Runtime listener and director

Using runtime listeners with director isn’t working as I’d hoped.

I’m adding “Runtime:removeEventListener” to my clean function but my app is still crashing. I get this error

screen1.lua:67: attempt to perform arithmetic on field ‘y’ (a nil value)

Line 67 is within the function used by my eventlistener.
I get this error when click a button that takes me to screen2.lua [import]uid: 31718 topic_id: 7277 reply_id: 307277[/import]

Try removing the event listener as soon as you’ve finished with it (probably just before changing scene) instead of waiting for it to be called in clean. [import]uid: 8366 topic_id: 7277 reply_id: 25638[/import]