FMX - PLEASE HELP ME - Loading an image to fit a specific size using XML

Ive been searching high and low to find out how i can dynamically load an image into a container [i.e. im using the xml_photogallery tut. template] and setting it so that it scales to fit specific dimensions.

At the moment Im having to resize images in photoshop so that it fits with in the container/webcontents dimensions. Otherwise different images with different sizes will bleed on main body of the site.

Any help would be much appreciated and im sure the answer is out there somewhere…

:sigh:

You can set the dimensions after the image is fully loaded, but you have to realize that this way, if the images have different proportions, they might distort.

scotty(-:

Hi !!!

Read this thread: Best Of Kirupa

http://www.kirupaforum.com/forums/showthread.php?t=51430

Thanks for the help guys. thats helped me out loads!! …

but…

Scotty, i was wondering, what sort of AS would i need to get the image to resize, not the empty movie clip. I think thats the vital little piece of information that i need to understand really.

Can you post what you’ve got this far?

scotty(-: