CircleLayout

January 7, 2011

CircleLayout is a custom layout that arranges visual components in a circle so that they fit entirely inside their parent container. For example, CircleLayout could be used to arrange the numbers in a clock.

Usage

<s:Group>
    ...
    <s:layout>
        <s:CircleLayout rotation="-90" rotateElements="true" />
    </s:layout>
</s:Group>

Params

rotation
The extra angular offset (in degrees) from zero.
rotateElements
If true, then all elements in the layout will be rotated to point outwards. If false (the default), then the elements are un-rotated (aka they all point upwards).

Sample

Flash is required. Get it here!

full screen | view source | download

More Samples

Author

Layout & sample by Justin.

Comments

1

Nemi

2.16.2012

Great job. Thanks!

2

Erik

3.1.2012

Thanks so much!

Leave a Comment

  (required)

  (required)



Spam Protection by WP-SpamFree