Isn't it possible to simply unload a movie and load a new one with the SAME button?

Hello, all.

I’ve gone fully gray trying to learn how to do something in AS3 that was routine in AS2: unloading (if something’s already there) something from a movie clip then LOADING something in the same clip, all with the same button.

I’m not complaining as I know AS3 is much more robust - however, this is seriously troubling me. :jailbreak

Here’s the code I’m using, er, attempting to use now. These are for two buttons out of a set of 9. All I’m trying to do is the simple: look to see if there’s something in the clip “hovercap”, and if so, remove it completely;, then load a new movie. (If there ISN’T something in “hovercap”, I want to load a new movie anyway.):

invisible_mvp1800c.addEventListener(MouseEvent.MOUSE_DOWN, loadImage); {
function loadImage(url:String):void:void) {
if(imageLoader != null && contains(imageLoader)){
removeChild(imageLoader);
}

// Set properties on my Loader object

 var imageLoader:Loader = new Loader();
 imageLoader.load(new URLRequest("hovercap_1800c.swf"));

hovercap.addChild(imageLoader);
}
}

invisible_mvp1825c.addEventListener(MouseEvent.MOUSE_DOWN, loadImage2); {
function loadImage2(url:String):void:void) {
if(imageLoader != null && contains(imageLoader)){
removeChild(imageLoader);
}

// Set properties on my Loader object

 var imageLoader:Loader = new Loader();
 imageLoader.load(new URLRequest("hovercap_1825c.swf"));

hovercap.addChild(imageLoader);
}
}

Clearly, I’m still learning things in AS 3. Thanks in advance to anyone’s help on this - I feel like I’ve searched on every AS 3 forum out there.