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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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");





Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.