<?xml version="1.0" encoding="utf-8"?>
<Application name="TextBox_trackingLeft_test"
xmlns="http://ns.adobe.com/mxml/2009"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<Script>
<![CDATA[
import mx.events.SliderEvent;
private function slider1_change(evt:SliderEvent):void {
textBox.setStyle("trackingLeft", evt.value);
}
private function slider2_change(evt:SliderEvent):void {
textBox.setStyle("trackingRight", evt.value);
}
]]>
</Script>
<ApplicationControlBar dock="true">
<Form styleName="plain">
<FormItem label="trackingLeft:">
<HSlider id="slider1"
minimum="0"
maximum="20"
value="0"
snapInterval="1"
tickInterval="1"
liveDragging="true"
change="slider1_change(event);" />
</FormItem>
<FormItem label="trackingRight:">
<HSlider id="slider2"
minimum="0"
maximum="20"
value="0"
snapInterval="1"
tickInterval="1"
liveDragging="true"
change="slider2_change(event);" />
</FormItem>
</Form>
</ApplicationControlBar>
<Box backgroundColor="haloSilver" backgroundAlpha="0.4">
<Graphic>
<TextBox id="textBox"
text="The quick brown fox jumps over the lazy dog."
textAlign="justify"
textJustify="interWord"
fontSize="16"
width="400" />
</Graphic>
</Box>
</Application>