Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / July 2008



Tip: Looking for answers? Try searching our database.

Closing a Main Browser Window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
siemens777 - 02 Jul 2008 03:03 GMT
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 - 02 Jul 2008 05:33 GMT
Sorry, figured it out.

on(release){
getURL("javascript:window.close()");
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.