Basic removeChild problem

There are quite afew threads that cover this topic, but I couldnt make any of them to work.

What I want to do is to write an if statement to check if an external swf has been loaded to the stage, and if it has, I want to remove it and go to a framelable, else, jsut go to a framelabel.

I thought this was easy, but I keep getting errors saying that the swf I´m checking for cant be found.

Can someone help me with the code?

function on_click(event:MouseEvent):void {
if (product1.swf) {
removeChild(product1.swf);
MovieClip(root).gotoAndStop(“home”);
}
else {
MovieClip(root).gotoAndStop(“home”);
}

Thanks in advance
/rundevo