First, use MovieClipLoader to load the image. This will allow you to determine when it has initialized (onLoadInit). Then determine the ratio of the image width to the actual width you want it to be. Do the same for the height. Determine which ratio is larger, and use that to rescale both the height and width of the image.

- Marc Hoffman

At 05:10 AM 11/1/2006, you wrote:

Hi,



I am using loadMovie function to load the external jpeg files in the Movie
Clip.

The Movie Clip (in which I am loading the external jpeg files) varies in
size depending on the users screen resolution.

The problem I am facing while scaling the images in the Movie Clip. When I
scale the images to fit it properly in Movie Clip, it gets distorted, as the
image's height and width is greater than the Movie Clip's height and width.



Is there any solution to overcome this problem?



Thanks for any help!

Abhijit


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to