English | 中文
Simple layout library for native as3 display objects.
Features
-
For native as3 display objects. No Flex or any other dependency.
-
AtomLayout align DisplayObject using getBounds(). No worries about register point in FLA. (Set useBounds to true, it’s false by default)
-
Easily composite layout elements/groups. No more DisplayObjectContainer needed.
How to use
-
Create a layout group which implements ILayoutGroup and set layout properties.
-
Add some display objects or other ILayoutElement to the group.
-
Call the layout() method of the group.
Layout groups
-
HFillLineLayout - Horizontal single line fill layout. (*new)
-
VFillLineLayout - Vertical single line fill layout. (*new)
-
HLineLayout - Horizontal single line flow layout.
-
VLineLayout - Vertical single line flow layout.
-
HMultiLineLayout - Horizontal multi-line layout.
-
VMultiLineLayout - Vertical multi-line layout.
-
HBoxLayout - Horizontal box layout.
-
VBoxLayout - Vertical box layout.
-
AlignLayout - Align position group layout.
-
GridLayout - Grid layout.
*Note difference between MultiLineLayout and BoxLayout: Lines in MultiLineLayout has the same height as the lineHeight property, while height of lines in HBoxLayout according to the max height of elements in each line.
Authors
eidiot (eidiot@gmail.com)
Contact
eidiot (eidiot@gmail.com)
Download
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/eidiot/xrope