<?xml version="1.0" encoding="utf-8"?>
<FxApplication name="FxTextArea_verticalAlign_test"
xmlns="http://ns.adobe.com/mxml/2009">
<layout>
<BasicLayout />
</layout>
<Script>
<![CDATA[
import flashx.textLayout.formats.VerticalAlign;
import mx.events.ListEvent;
private function comboBox_change(evt:ListEvent):void {
var value:String = comboBox.selectedItem.toString();
textArea.setStyle("verticalAlign", value);
trace(describeType(VerticalAlign).toXMLString());
}
]]>
</Script>
<Declarations>
<String id="lorem" source="data/lorem.txt" />
<Array id="arr">
<String>{VerticalAlign.TOP}</String>
<String>{VerticalAlign.MIDDLE}</String>
<String>{VerticalAlign.BOTTOM}</String>
<String>{VerticalAlign.JUSTIFY}</String>
</Array>
</Declarations>
<Form>
<FormItem label="verticalAlign:">
<ComboBox id="comboBox"
dataProvider="{arr}"
change="comboBox_change(event);" />
</FormItem>
</Form>
<Group horizontalCenter="0" verticalCenter="0">
<FxTextArea id="textArea"
text="{lorem}"
widthInChars="80"
heightInLines="25" />
</Group>
</FxApplication>