Code to Scale Vertical Images in PhotoGallery

Hello!

I’m working with this tutorial:

http://www.kirupa.com/developer/mx/photogallery.htm

I’m trying to figure out how I tell the clip to scale the dynamically loaded images to fit. For example, I have mostly horizontal images – no problem, the clip is set up right. Now, If I come across a vertical image-- the image doesn’t scale, but instead just slops out of the MC.

I’m just trying to figure out the actionscript to get it to dynamically scale, if thats even possible?

thanks so much!!!

-MD