Archive for October, 2008
Oct
13
2008
Resizing width and height proportionatelyPosted by: Keith H in ActionScript 3, tags: Constrain Proportion, Porportional, ResizeIf you use Photoshop you probably appreciate the "Constrain Proportions" checkbox found in some of the application's dialogs and menus. I like to have this same ability when I'm writing ActionScript to resize objects proportionately too. *Note: I set the inputs to limit the width and height to 500. Here are two functions for performing proportional resizing by both width and height... |
Thanks for visiting www.keith-hair.net
Entries (RSS)