Answered
Scale/Fit to Window code
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!
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!