Remove functions

hi
I have a function (doAll) that includes a collision detection, upon collision I use several removeChild, removeListener statements.
Below these I end the doAll function, and add several other listeners, however the removeChild statements cant find these objects and listeners.
how could I solve this in an easy way?