Close Browser window

I utilized the special effect Launch a Centered Pop-Up Window for Flash MX. I want to go one step further that if there is a button in the pop-up window when you click on the button it closes the browser window or if another pop-up window is launched the previous windows closes.

Spirit beanies click on Samples then Styles choose any cap & you will see the Centered Pop-Up Window. Then if you click on the cap it doesn’t close. Can’t seem to find the right code to do that piece of it.

Any help would be appreciated.

Thanks

Deb

in Flash…

on (release) {
getURL("javascript:close()");
}

in HTML

<a href="javascript:close();">CLOSE WINDOW</a>

Remove the spaces between java and script as this forum automatically puts it there and it should not be there.

Thanks for the help.

Glad I could help :slight_smile: