<iframe src="http://blog.minidx.com/ext05/pausing-the-animation-in-an-indeterminate-progressbar-control/main.html" width="550" height="380"></iframe>
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
- layout="vertical"
- verticalAlign="middle"
- backgroundColor="white">
- <mx:ApplicationControlBardock="true">
- <mx:Form>
- <mx:FormItemlabel="mode:">
- <mx:ComboBoxid="comboBox">
- <mx:dataProvider>
- <mx:Array>
- <mx:Objectlabel="event" />
- <mx:Objectlabel="polled" />
- <mx:Objectlabel="manual" />
- </mx:Array>
- </mx:dataProvider>
- </mx:ComboBox>
- </mx:FormItem>
- <mx:FormItemlabel="indeterminate:">
- <mx:CheckBoxid="checkBox" selected="true" />
- </mx:FormItem>
- </mx:Form>
- </mx:ApplicationControlBar>
- <mx:ProgressBarid="progressBar"
- indeterminate="{checkBox.selected}"
- mode="{comboBox.selectedItem.label}"/>
- </mx:Application>