How to select all the children of a DisplayObjectContainer

I generated an XML gallery inside a DisplayObjectContainer (the square) placed on the stage. Since all the thumbnails have listeners applied to them, I thought it was a good idea to remove all listeners and child objects when closing the square container. There are many gallery categories which could be selected afterwards and every one has the same functionality so I’m concerned about performance dropping from hundreds of active listeners left behind. To do so, I worte this code

(metiches() is another custom check function unrelated to this process)

function closegal(evt:MouseEvent):void
{
    var thesquare = evt.target.parent;
    trace("the square "+thesquare.name+" is gonna die!");
    korose(thesquare);
    metiches();
}

function korose(die:DisplayObjectContainer)
{
    var morira:DisplayObjectContainer=die;
    var i:int=new int;
    
    for (i=0; i<morira.numChildren; i++)
    {
        var thisMC:Object =morira.getChildAt(i);
        thisMC.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
        thisMC.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
        thisMC.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        morira.removeChildAt(i);
        
    }
    [COLOR=Red]removeChild(morira);[/COLOR]
    trace(morira.willTrigger(MouseEvent.MOUSE_DOWN));
}

I commented the line second from last (marked in red), so I could visually confirm that all the thumbnails and other elements inside the square container were gone, but when I tested the thing, all the odd numbered thumbnails were left behind. The trace returns “false”, so I guess the EventListener’s were removed.
Does anyone have a clue on why half of the thumbnail gallery children were not removed. Also, is the last line enough to make sure there are no more active listeners related to this container?

As always I appreciate any help, insights…