5 Replies Latest reply on Jun 29, 2007 12:22 PM by kglad

    Mathematic question

    luciewong Level 1
      Hi,
      I have a slide show with an emptyMovieClip as a pic holder (Frame).
      The images are loaded with a movie clip loader, so I know the original size of target_mc onLoadInit.

      The pic holder has the size of
      width 382 and height 246.

      Now, each image should be loaded into my Frame, centred, but scaled, so they keep their original Format.
      All images have different sizes, for ex. 850x450 or 240x900 and so on.

      I want each image loaded into the frame, but scaled, so they fill the frame as much as possible.
      For ex. the width of an image with 799x355 should be reduced to 382 and the height should be scaled accordingly, while an image with height of 815 and width of 250 will fill full the height of the frame of 246, but the width must be scaled correctly.

      More difficult, as I thought in first place.
      Thanks for your help.