pancreasboy
January 22nd, 2008, 07:24 PM
Hi guys,
first time poster, but longtime Flash user (although not too long on the actionscripting side).
It seems my old html popup and Flash 7 close popup window actionscript won't work anymore in Flash 9 (the popup window will be for a kids game site).
Can anyone point me in the right direction on a good tutorial for popping up from a html file, but that the popped up window can be close by a flash button?
I've have this in my index.html file
<script language="JavaScript">
window.open('test.html','1','fullscreen=yes,scroll bar=no');
</script>
and then this code on a button in my flash file to close test.html
on (release) {
getURL("java script:self.opener=self;self.close();");
}
i've also tried:
"java script:window.open('','_parent','');window.close() ;");
and
"java script:window.close();"
and
"java script:window.opener=self; window.close()"
and
"java script:self.close();"
but nothing works http://www.webwasp.co.uk/forum/style_emoticons/default/sad.gif
Any help would be most appreciated.
first time poster, but longtime Flash user (although not too long on the actionscripting side).
It seems my old html popup and Flash 7 close popup window actionscript won't work anymore in Flash 9 (the popup window will be for a kids game site).
Can anyone point me in the right direction on a good tutorial for popping up from a html file, but that the popped up window can be close by a flash button?
I've have this in my index.html file
<script language="JavaScript">
window.open('test.html','1','fullscreen=yes,scroll bar=no');
</script>
and then this code on a button in my flash file to close test.html
on (release) {
getURL("java script:self.opener=self;self.close();");
}
i've also tried:
"java script:window.open('','_parent','');window.close() ;");
and
"java script:window.close();"
and
"java script:window.opener=self; window.close()"
and
"java script:self.close();"
but nothing works http://www.webwasp.co.uk/forum/style_emoticons/default/sad.gif
Any help would be most appreciated.