all groups > flash (macromedia) > july 2003 >
You're in the

flash (macromedia)

group:

Closing Browser Window


Closing Browser Window cooped
7/10/2003 9:06:44 PM
flash (macromedia):
Does anyone know the command to close the browser window that the movie is in? I have a close button at the end of the movie, but can not get the published HTML version to close the browser. Any help will be greatly appreciated.

Re: Closing Browser Window discman
7/11/2003 2:24:16 AM
There a few ways of doing this.

here the simple one...make a button in your flash. Go to your action script and you'll find "get URL". Assign the "get url to the button. Were it says in the "get url" box "URL:" put this


javascript:window.close();

That's it.....like i said there proably 20 ways in doing this...you figure this one out and you'll figure out other ways to close a bowser window. And you'll find other javascript as well.

Re: Closing Browser Window urami_
7/11/2003 11:47:53 AM

[quoted text, click to view]



this will trigger warning message asking user to confirm the closing - security feature.

Here , for future reference , NS and IE browser closing W/o any warning message

getURL("javascript: window.opener=self; window.close();");







Regards

urami_*



<lsym>

There's no place like 127.0.0.1

AddThis Social Bookmark Button