Close Window button?

Hello…I am creating a Flash (CS3) tour that will open in a new HTML window. I have a button that should close the window. Any idea how I can do this?

I’m assuming its pretty basic, but I can’t seem to find a working solution. Thanks!

I thought this would work, but it does not:


function closeWindow(evt:Event):void{
    getURL("javascript:window.close()");
}
bClose.addEventListener(MouseEvent.CLICK, closeWindow);

It dosent work that way… ive been trying to figure this out but no luck.