EventDispatcher: Getting Rid of the Events

Theory question, more than anything.


var page = _root["pageinstance"+num]; //num is a variable, duh.
//
page_li:Object = new Object(); // page_listener object
page_li.onPageLoad = function() {
    trace("hey, look, the page loaded");
    page.display();
}
page_li.onPageDisplay = function() {
    trace("look at that! The page displayed!");
}
//
page.addEventListener("onPageLoad", page_li);
page.addEventListener("onPageDisplay", page_li);
page.load();

The code is much more complex than this, but thats the skeleton of it. Anyone, my question to you is that I need to use this over and over again, for each time the user presses a button. My problem is that Flash seems to have trouble when I try visiting a page I’ve already been to, because the events don’t properly execute. I’ve tried page.removeEventListener(); and delete page_li; but both seem to be ineffective.

Basically, what I’m asking is how can I whip the slate completely clean, so that the next time when Flash goes over this code, it executes properly?

Thanks a lot.