FORUMS: list search recent posts

Best way to close browser window using flash

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rob Stemm
Best way to close browser window using flash
on Dec 2, 2005 at 7:12:16 pm

I've run into a problem trying to close a browser window using the close() method. This doesn't seem to work on Firefox or Netscape. Does anyone know of a way to close the following four browsers on both mac and pc? Firefox, IE, Netscape, Safari

Here is the code I have on my button

close_btn.onRelease = function() {
getURL('javascript:close()');
};

Thanks for your help!


Return to posts index

LeeBrimelow
Re: Best way to close browser window using flash
on Dec 2, 2005 at 7:13:58 pm

try using "window.close()" instead. That should work everywhere.


Return to posts index

Rob Stemm
Re: Best way to close browser window using flash
on Dec 2, 2005 at 7:52:30 pm

For some reason this still isn't working. What player version should I be publishing in. I've been publishing in 7. I've tried on both an pc and mac and the page still won't close on Firefox on MAC and PC as well as Netscape.

Have any more advice?

Thanks for you help


Return to posts index


Steve Brame
Re: Best way to close browser window using flash
on May 27, 2006 at 2:07:56 am

I'm having the same problem. This script is attached to a button...

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

Yet it will not close the window in any browser.

Steve Brame
DoYouStream.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]