Making an image popup in a HTML window from flash

Hi all, I was wondering, how do you make an image pop up in a window javascript style, from flash?

i have a variable in flash, equal to something like “images/image.jpg”, and I want to make a button so when you click it it opens up a popup window thats a certain size, without menubars/scrollbars etc, to display that image, like a javascript on your standard HTML.

I read that flash has a javascript API, so there must be a way to do it huh? Is it getURL stuff, maybe with a POST of my variable?