Javascript in standalone flash?

I have a stand-alone flash file and want to get the javascript pop-up window going so I can open a window without all the stuff and make it the size I want.

I’m gathering it is impossible to do and wondering if any body has a solution to my problem.

Something I did try was open a _blank window and put an onLoad pop-up and then window.close() also - but it comes up with the alert about the browser is trying to close. So… yeah.

Help please anyone?