Remove listeners in Director 1.2

This one is probably an easy one. I've been using director 1.1 but the screen1.lua file for director 1.2 is quite different. Where in the screen1.lua file for director 1.2 would I call my function that removes all of my listeners? I am using the director class for a game and all other examples I can find such as martian control and ghosts vs monsters use director 1.1. Thanks for your help.

Anyone? Lets say I have a function called unloadMe() which removes my listeners. Where would I call it if I wanted to remove the listeners after the level is over?

unloadMe() -> clean()

Thanks for repsonding yuewah. So I can remove the listeners directly in the clean function like this?

1
2
3
4
5
function clean ( event )
        listener1:removeEventListener(....)
        listener2:removeEventListener(....)
        ...
end

btw, if u look at the sourcecode, it is easy to find out.

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