Array

Busy Indicator

Must Read

Deadly Motorcycle Crashes

If you take a good look at some of the traffic accident statistics, the first thing you will notice...

Poor Credit Mortgage Refinance – Refinancing Your Home After Your Credit Score Has Dropped

You can still refinance with bad credit, but you will need to shop around. Each refinance application is looked...

Get a Home Equity Loan With Poor Credit

Obtaining a home equity loan with poor credit is not as hard as most might think. A home equity...

How Does Car Loan Debt Consolidation Work?

If you are trying to lower your monthly expenses, figuring out how car loan debt consolidation works can be...

Obtaining Unsecured Debt Consolidation Loan With Poor Credit – Is it Possible?

Unsecured debt consolidation loan can be considered one of the perfect financial solutions for people who have no fixed...

Refinance Home Loan after Bankruptcy: How to Qualify for a Better Mortgage with a Bankruptcy

If you are a homeowner with recent bankruptcy on your record you might think refinancing your home loan is...
Admin
test

A new component has been added to provide feedback to the users within your mobile application. While there is no cursor to show busy status as there is in desktop development, the BusyIndicator component was added specifically for this reason. Using this component is extremely simple.

Let’s review the code below. There is a CheckBox with the label “Show Busy Indicator”, which when checked, calls the checkbox1_clickHandler method. There is a Busy Indicator component with an id of indicator, set to visible (or false). Within the checkbox1_clickHandler method, the indicator’s visible property is set to the value of the CheckBox. This simply shows or hides the BusyIndicator. Within the BusyIndica tor, you can set the height, width, and symbolColor to suit the needs and style of your application. The results can be seen in Figure 4-15:

<?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”>
<fx:Script>
<![CDATA[
protectedfunction checkbox1_clickHandler(event:MouseEvent):void
{
indicator.visible = event.target.selected;
}
]]>
</fx:Script>
<fx:Declarations>
<!– Place non-visual elements (e.g., services, value objects) here –>
</fx:Declarations>
<s:CheckBox label=”Show Busy Indicator”
horizontalCenter=”0″
click=”checkbox1_clickHandler(event)” top=”10″/>
<s:BusyIndicator id=”indicator” height=”300″ width=”300″
verticalCenter=”0″
horizontalCenter=”0″
visible=”false”
symbolColor=”black”/>
</s:Application>

The BusyIndicator component

Latest News

Digital Marketing for Beginners

Digital marketing for starter, Let to basic learning about connecting with your audience in the right place at the...

More Articles Like This