<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/11/02/setting-the-text-rotation-on-a-textgraphic-control-in-flex-gumbo/ -->
<FxApplication name="TextGraphic_textRotation_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        viewSourceURL="srcview/index.html">
    <layout>
        <BasicLayout />
    </layout>

    <Declarations>
        <Array id="arr">
            <Object label="auto" />
            <Object label="rotate0" />
            <Object label="rotate90" />
            <Object label="rotate180" />
            <Object label="rotate270" />
        </Array>
    </Declarations>

    <Form>
        <FormItem label="textRotation:">
            <ComboBox id="comboBox"
                    dataProvider="{arr}" />
        </FormItem>
    </Form>

    <TextGraphic id="textGraphic"
            text="{Capabilities.version}"
            textRotation="{comboBox.selectedItem.label}"
            horizontalCenter="0"
            verticalCenter="0" />

</FxApplication>