I am currently building a Flash AS 3.0 application that allows a user to load images into a container, move and scale them and the outputs to a DB. Once the user has uploaded and scaled the images, they are directed to an album viewer which gets the photos out of the DB and puts them into heads. The issue i am having is that once the images go into the viewer, the scaling and positining is not working correctly. The images will scale larger but i cannot shrink them from thrie original size.
I am using the following code to scale the images in the viewer:
headToLoad.width = headWidth;
headToLoad.scaleY > headToLoad.scaleX ? headToLoad.scaleX = headToLoad.scaleY : headToLoad.scaleY = headToLoad.scaleX;
headToLoad.x = xPosition;
headToLoad.y = yPosition;
Any assistance would be great.
Thanks Justin