Hi guys,
So I’m having difficulty with this one, basically I am working on an XML image gallery.
Load XML - with Image and Thumb paths in it
Load thumbs
When you click a thumb it loads corresponding image etc.
When I load in the image I need it to load proportionally into a MC.
This is the basics of how I have it at the moment
box_mc.addchild(Image) // so it's loading into the box_MC which is H:300px W:500
if (Image.height > 300){
Image.height = 300;
Image.scaleX = Image.scaleY;
}
Which loads it in and makes sure it is no bigger than the 300 height and proportionally changes the width.
all is good so far.
However if I then click load a image that normally is smaller than the 300px high it still shrinks it down thus making it smaller then usual.
ALSO if I have an image that is H:350 x W:1000 how can i make it resize the height but then check to resize the width.
As you can see I’ve been running this around far too much and probably have confused you guys as well as myself.
So BASICALLY I would like to be able load in any size image and always make sure it resizes to fit H:300 W:500 but keeps its proportions.
Hope that makes sense cause I could really use some help on this one.
Thank you very much