Smooth Transitions AS2 to AS3

Hello.
Please bear with me…I had the start of this fabulous disaster in another thread ( communicating with external SWFs ) but I’ve since run into another issue & my brain is feeling discombobulated.

I’m essentially trying to load in a series of external movies that contain timeline based transitions. The interface will load in a movie, when a button is clicked it goes to the next frame of the external movie to play the “outro”, then it loads the next movie into the loader ( much like the smooth transitions tutorial on this site ) . I have this working…However, I cannot seem to figure out how to unload the previous movie when a button is clicked…then load the next movie…and so on and so forth…The movies just load ontop of eachother.


var nextMovie= "movie1.swf";
var request:URLRequest = new URLRequest(nextMovie);
var loader:Loader = new Loader();
loader.load(request);
loaderMC.addChild(loader);
 
///////////Buttons ///////////////////
 
function clickButton(event:MouseEvent):void {
if(nextMovie!="movie1.swf"){
  nextMovie="movie1.swf";
  MovieClip(loader.content).gotoAndPlay("outro");
}
} 
 
 
function clickButton2(event:MouseEvent):void {
if(nextMovie!="movie2.swf"){
 nextMovie="movie2.swf";
 MovieClip(loader.content).gotoAndPlay("outro");
 
}
}
 
loader.addEventListener("animationDone", aniComplete);
button1.addEventListener(MouseEvent.CLICK, clickButton);
button2.addEventListener(MouseEvent.CLICK, clickButton2);
 
function aniComplete(event:Event):void {
trace ("animation complete");
//Need to figure out how to unload the movie and load the next movie? 
var request:URLRequest = new URLRequest(nextMovie);
var loader:Loader = new Loader();
loader.load(request);
loaderMC.addChild(loader);
}
}

This is on the last frame of my external movies

parent.dispatchEvent(new Event("animationDone"));
trace("end of movie");
stop();

I have a pretty good feeling I’m not fully seeing the big picture as far as AS3.0. & OOP.
I guess I don’t fully understand the absolute “need” for class files( I’d like to think I’m not the only one in this boat). As a result of this, I feel like I’m in between a rock and a hard place when it comes to reading 99.9% of the current AS 3.0 documentation. My actionscript knowledge is very linear. etc. etc.
as a bonus I’m hoping that some altruistic soul could take a look over what I have going on and tell me “how”, “if” and “why” it could be simpler by using a class file.
Any help would be greatly appreciated. Thanks.