Friday, 6 July 2012

Flex Numeric Stepper Example


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top"
    horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" viewSourceURL="srcview/index.html">
    
    <mx:Panel title="NumericStepper Control" layout="horizontal" color="0xffffff" borderAlpha="0.15" width="500"
         paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center">
         
         <mx:VBox color="0x323232" horizontalAlign="center" borderColor="0xACACAC" borderStyle="solid" width="50%" height="100%">
         
             <mx:Text width="100%" textAlign="center"
                 text="Default NumericStepper control with a minimum=0, maximum=10, and stepSize=1."/>
            <mx:NumericStepper/>
            
         </mx:VBox>
         <mx:VBox color="0x323232" horizontalAlign="center" borderColor="0xACACAC" borderStyle="solid" width="50%" height="100%">
             
             <mx:Text width="100%" textAlign="center"
            text="NumericStepper control with a minimum=10, maximum=40, stepSize=0.01, and starting value of 20."/>

            <mx:NumericStepper id="ns" minimum="10.00" maximum="40.00" stepSize="0.01" value="20.00" width="65"/>
            
         </mx:VBox>
         
    </mx:Panel>
</mx:Application>


No comments:

Post a Comment