4 Replies Latest reply on Apr 17, 2007 12:31 PM by Greg Dove

    Scale/Fit to Window code

    jencarnac
      1. I have a viewable area of 400 x 400.
      2. A movie clip's width and height dynamically change.
      3. I need an equation that gives me the scale percentage (up or down, and proportionally) to fit the movieclip within the viewable area.

      Pretty simple, but I'm terrible at math. Can someone please help?

      Thanks in advance!