Dynamically resize swf based on XML images

Hi all,

This may of been posted somewhere and sometime before but I couldn’t find anything in my brief search.

I’m looking to load images/files from XML into basically what would be a photo gallery. And have the dimensions of the swf or the loader change depending on the size of the graphic that’s being loaded. Of course I’m looking for it to be resized in an animated fashion instead of just showing up as a different size.

If anyone would be able to point/guide/direct me it would be much appreciated. Let me know if there’s any other information that could help out on this subject and i’ll see what I can do to find it for you.

thanks.
dave.