How to use Action Script to close popup html window?

Hi there,

I am having trouble and really need your help.

- I developed an application in flash and I published it as html page as well so that I have a file named "Main.html".
- I made a normal html page that gives users the chance to call a popup window to play Main.html with no toolbar.
- In Main.html I also have a close button, which allows to close flash application, with Action Script. The problem is that I cannot use it to close the popup html window when I want to quit. I tried to put some Javascript code inside the close button but it didn't work...

Please look at the code and suggest me how to solve it.

Thank you.
In close button in Flash:
In html page that allows popup window:
<CENTER><a href=javascript:Launch('Test.html')><img src="thumb.jpg" weight=300 height=300 border=0></a> <p>
Click on the picture to run the Economical Circle.
function Launch(page) { 
OpenWin =, "Economical Circle", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=920,height=670"); 
// End --> 

Open in new window

Who is Participating?
ZefferConnect With a Mentor Commented:
I think if you are going to use close()..  you need to open the window with

OpenWin =, "Economical Circle", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=920,height=670");




Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.