Centered pop-ups with image?

Just a question… I’m currently trying to launch a centered pop up window from withing flash… and I’ve been using this tutorial… http://www.kirupa.com/developer/mx/centered_popup.htm

The problem is I’m just opening an image file in the pop up and I want the window borders of the pop up to wrap around the image as opposed to having margins around the image… how do I do this?

If you are linking directly to the image, you can’t get rid of that margin, it is put there by default by the browser because the image is contained in no html file.

You would have to put it in its own HTML file with no margins and load that.