carly31
2/2/2016 - 6:01 AM

BusyIndicator

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark">
	<!-- VGroup is a container the uses the VerticalLayout to organize UI -->
	<s:VGroup verticalCenter="0" horizontalCenter="0" horizontalAlign="center">
		<!-- this button will function as a toggle for the BusyIndicator. You
		will notice tha upon "click" the visibility of the BusyIndicator will
		be negated. The rotationInterval determines the speed of indicator -->
		<s:Button id="btn1" label="Busy" click="busy1.visible=!busy1.visible;" />
		<s:BusyIndicator id="busy1" visible="false" rotationInterval="50" />
	</s:VGroup>
</s:Application>