I'm doing a popup flash image viewer and was wondering what the easiest way to do this would be. (using mx04)

I'm passing the image width and height to the swf as well as the html that renders it, so... can I somehow resize the stage to fit the entire image, or set the stage width/height when the movie loads?

Is there a publish setting trick that will resize to a dynamic clip once it's loaded?

My solution right now is to limit the image size to 1024x768 (which is the current static stage dimensions,) loading the image to a holder clip at 0,0 and then resizing the browser window to the image's dimensions. I haven't gotten that far yet, but I'd like to be able to support any size image, large or small.

I could just do a boring html image viewer, but I want to layer other swf's on top of the user image swf, as well as have a preloader for the image, since most images will probably be around 100k for this project.

Thanks for any ideas &/or help!