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

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.

views:1436 update:2011/10/13 9:25:17
corona forums © 2003-2011