jtvalles Posted March 18, 2012 Share Posted March 18, 2012 Without exception the following code: queue.append(new ImageLoader("images/whale.png", {width:640, height:450, scaleMode:"proportionalOutside", crop:true, container:this})); Displays the image at half the size entered. My project will be loading images of different sizes and orientations and I want to scale and crop them to fit a movieClip of a specified size. Any advice? Link to comment Share on other sites More sharing options...
Carl Posted March 19, 2012 Share Posted March 19, 2012 that seems odd. are you sure the scaling isn't be caused by some other code? can you post a full example of 1 image loading and being scaled improperly? from the code you have shown its difficult to assess properly. thanks Carl Link to comment Share on other sites More sharing options...
jtvalles Posted March 19, 2012 Author Share Posted March 19, 2012 You're right Carl. I overlooked the code: var loadedImage:ContentDisplay = event.target.content; loadedImage.scaleX = loadedImage.scaleY = .5 From the demo file I edited. Thanks. JV Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now