I am calling Runtime:addEventListener(“enterFrame”,map.updateView) and then remove the listener with scene change: Runtime:removeEventListener(“enterFrame”,map.updateView)
BUT when not moving to a new level and instead trying to play the same level again I have the problem the listener seems to be still running and trying to update, but I then get a Runtime Error because the camera object is NIL
I am working with an empty scene between scene changes, so I thought this will “delete” my old level scene in all cases, even when calling the same level again… BUT somehow there seems to be something left running here.
I have looked into all the composer details and I think maybe this has to do with the runtime listener in dusk?
Anyone have heard about this kind of problem maybe?