Regarding - "i don't even get a warning dialog box to ask me if i am sure i
want to 
close the window " --
   
Don't know if this helps you - it's a way to notify the user that he's
attempting to shut the browser window that is running the Flash app.  (I
used this approx 1-1/2 years ago - it still works under IE)

window.onbeforeunload = unloadAll;
function unloadAll()  {
        if (event.clientY < 0) {
          alert("You are now leaving the course.");
  }
}



-----Original Message-----
From: Simon Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 2:56 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] browser will not quit!!


Ok - i now have this as the coding within the flash file ....

on (release, releaseOutside ) {
    this.gotoAndStop ('buttonUp');
    getURL("javascript:window.close();");
    fscommand("closeBrowserWindow", "");
}


and i have some java in the html page like so ...


<script type="text/JavaScript">
<!--
function myFlashMovie_DoFSCommand(command, args) {
 if (command == "closeBrowserWindow") {
     window.close();
    }
}


//-->
</script>

but it still will not quit the browser!! - is there some kind of 
security that stops code from closing browsers in flash8 created files? 
- i don't even get a warning dialog box to ask me if i am sure i want to 
close the window ... i just cannot figure this out!

Simon
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to