Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

Closing a Main Browser Window

 
Jump to:  
 
siemens777
PostPosted: Wed Jul 02, 2008 2:03 am    Post subject: Closing a Main Browser Window
       
I'm loading (onload) .swf files into an html shell. The shell holds my Flash
exported SWF file, which is embedded in the html file, so, I have buttons on
the top of the html page for resources, etc. I also have a link to EXIT. I'm
trying to figure out how to close this main browser window using a button
action. Is this close:

Header of HTML shell

<head>


<script language="javascript">
<function closewindow()

if(window.parent!=window){
window.close = function() { window.parent.close(); }}

</SCRIPT>


</head>


---------

BUTTON in Flash:

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

 
siemens777
PostPosted: Wed Jul 02, 2008 4:33 am    Post subject: Re: Closing a Main Browser Window
       
Sorry, figured it out.

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

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Zwrot podatku z anglii ubranka dla dzieci Kredyty mieszkaniowe porównanie Free History Books Fotka