I'm doing a simple navigational menu and the idea is that when you rollover certain buttons, a linked movie clip appears in a certain spot and any other linked movie clips disappear off the stage. I heard about a bug with AS3 in CS4 and tried the following method but it's not working. All the movie clips stay on the stage. Nothing disappears. Where am I screwing up?

import flash.display.*;
import flash.net.navigateToURL;
stop();
function clearStage():void {
while (stage.numChildren > 1) {
stage.removeChildAt(1);
//When the last child is removed, stop the function
if (stage.numChildren == 1) {
break;
}
}
}
var aboutMenu:aboutMenu_mc;
var latestMenu:latestMenu_mc;
var mediaMenu:mediaMenu_mc;
var storeMenu:storeMenu_mc;
aboutMenu = new aboutMenu_mc();
latestMenu = new latestMenu_mc();
mediaMenu = new mediaMenu_mc();
storeMenu = new storeMenu_mc();
home.addEventListener(MouseEvent.MOUSE_DOWN, homeBtn);
function homeBtn(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.your-website.com/"));
}
home.addEventListener(MouseEvent.MOUSE_OVER, homeBtnOver);
function homeBtnOver(evt:MouseEvent):void {
clearStage();
}
about.addEventListener(MouseEvent.MOUSE_OVER, aboutBtn);
function aboutBtn(evt:MouseEvent):void {
clearStage();
addChild(aboutMenu);
aboutMenu.x=56;
aboutMenu.y=32;
}
latest.addEventListener(MouseEvent.MOUSE_OVER, latestBtn);
function latestBtn(evt:MouseEvent):void {
clearStage();
addChild(latestMenu);
latestMenu.x=106;
latestMenu.y=32;
}
media.addEventListener(MouseEvent.MOUSE_OVER, mediaBtn);
function mediaBtn(evt:MouseEvent):void {
clearStage();
addChild(mediaMenu);
mediaMenu.x=156;
mediaMenu.y=32;
}
setList.addEventListener(MouseEvent.MOUSE_DOWN, setlistBtn);
function setlistBtn(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.your-website.com/set-list/"));
}
setList.addEventListener(MouseEvent.MOUSE_OVER, setListBtnOver);
function setListBtnOver(evt:MouseEvent):void {
clearStage();
}
store.addEventListener(MouseEvent.MOUSE_OVER, storeBtn);
function storeBtn(evt:MouseEvent):void {
clearStage();
addChild(storeMenu);
storeMenu.x=206;
storeMenu.y=32;
}
forum.addEventListener(MouseEvent.MOUSE_DOWN, forumBtn);
function forumBtn(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.your-website.com/forum/"));
}
forum.addEventListener(MouseEvent.MOUSE_OVER, forumBtnOver);
function forumBtnOver(evt:MouseEvent):void {
clearStage();
}
fanClub.addEventListener(MouseEvent.MOUSE_DOWN, fanBtn);
function fanBtn(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.your-website.com/fan-club/"));
}
fanClub.addEventListener(MouseEvent.MOUSE_OVER, fanBtnOver);
function fanBtnOver(evt:MouseEvent):void {
clearStage();
}
street.addEventListener(MouseEvent.MOUSE_DOWN, streetBtn);
function streetBtn(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.your-website.com/street-team/"));
}
street.addEventListener(MouseEvent.MOUSE_OVER, streetBtnOver);
function streetBtnOver(evt:MouseEvent):void {
clearStage();
}