Skip to main content
Inspiring
January 22, 2008
Answered

close browser code updated into Flash 9

  • January 22, 2008
  • 3 replies
  • 332 views
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.
This topic has been closed for replies.
Correct answer twistedpancreas
well i worked it out.

apparently it won't work until it's upload >:(

3 replies

twistedpancreasAuthorCorrect answer
Inspiring
January 23, 2008
well i worked it out.

apparently it won't work until it's upload >:(
Inspiring
January 23, 2008
sorry did my question not make sense?
Inspiring
January 22, 2008
or maybe should i be using the

PopUpManager.deletePopUp()

class?