How to unload external SWF from a child?

I have a button that loads an external movie onto the stage:


magnalock.addEventListener(MouseEvent.CLICK, magnalock_newvid);

function magnalock_newvid(event:MouseEvent) {
    trace("you clicked me");
    var loadit = new Loader();
    addChildAt(loadit,4);
    loadit.load(new URLRequest("FinalFlash/BracketWizard.swf"));
    }

I then have a close button right below this:


closebtn.addEventListener(MouseEvent.CLICK, closebtn_click);

function closebtn_click(event:MouseEvent):void{
    loadit.unload();  
}

It errors on me and says “Access to undefined property loadit.”

Any help on what I’m doing wrong with this would be really appreciated. Thanks.