3 Replies Latest reply on Jan 22, 2008 8:23 PM by twistedpancreas

    close browser code updated into Flash 9

    twistedpancreas Level 1
      Hi there,

      I'm trying to get some old close browser code updated into Flash 9 and am having troubles.

      I have this in my index.html file

      <script language="JavaScript">
      window.open('test.html','1','fullscreen=yes,scrollbar=no');
      </script>

      and then this code on a button in my flash file to close test.html

      on (release) {
      getURL("javascript:self.opener=self;self.close();");

      }

      i've also tried:

      "javascript:window.open('','_parent','');window.close();");

      and

      "javascript:window.close();"

      and

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

      and

      "JavaScript:self.close();"

      but none of these seem to work in Firefox. Can anyone help?

      Thanks in advance.