Menu:

Sponsor

Discover Master of Alchemy, our first iPad/iPhone and iPod touch game!

Follow Me

 

Forum's topics

Latest Files

Archives

Top Rated

Categories

Photo Gallery


Alessandro Crugnola on July 29, 2010 in actionscript

FlexLayout for AsWing

As you may have noticed I'm working with AsWing right now 
Today I proposed a modification of the layout system. That's because I couldn't find any layout which satisfied my needs: a container which grows its components in order to fill the entire container size BUT which also keep in mind the component minimum and maximum sizes.
So it will try to grow all the components to the same size, but if a component has defined a specific minimum or maximum size, take that size under consideration.

Here's a screenshot of the FlexLayout class in action ( click over the image to see the live demo ):

 screen=

And here's the code to use the FlexLayout:

f.getContentPane().setLayout(new FlexLayout(FlexLayout.VERTICAL, 2));

Here below I'm attaching the current aswing package with all the modifications I did recently, in case someone find it useful.
aswing_mod.zip


 

Bookmark and Share

 

Tags: aswing , flexlayout , opensource 

 



Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Type the characters you see in the picture above.





 

TrackBacks

TrackBack URL for this entry: http://www.sephiroth.it/cgi-bin/mt/mt-tb.cgi/303