Flexible Flash
Posted on 05. Feb, 2009 by Prlwytzkofsky in Robot
While searching for a Flash display manager I came upon the NpFlexLayout class on Blog.noPonies.com. It seemed just what I was looking for – except for an option to constrain the proportions of resizeable objects. Fortunately it proved easy to add a “keepRatio” option to the well documented NoPonies code.
Adapted NoPonies 2.0 beta NpFlexLayout class with added “keepRatio” option available below for your coding pleasure.
Example
Link to an example: http://prlwytzkofsky.com/div/rescale/
Source Files
Source Code (AS3)



noponies
28. Feb, 2009
Looks good.
I’ll add your methods to the final release and put in a credit to you.
Prlwytzkofsky
16. Mar, 2009
Thanks! That would be great