Use DateField to let user choose date : DateField « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » DateFieldScreenshots 
Use DateField to let user choose date
Use DateField to let user choose date
   

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Script>
        
        public function showMsg(msg:String):void{
            mx.controls.Alert.show(msg);
        }
      
    </mx:Script>
    <mx:Panel title="Profile" verticalCenter="0" horizontalCenter="0">

        <mx:DateField text="12/05/2010" id="thisDateField"
            change="showMsg(thisDateField.selectedDate.toString())" />

    </mx:Panel>
</mx:Application>

   
    
    
  
Related examples in the same category
1.DateField form itemDateField form item
2.Use ActionScript to set initial selected date for a DateField controlUse ActionScript to set initial selected date for a DateField control
3.DateField Item EditorDateField Item Editor
4.DateField renderer for ListDateField renderer for List
5.Date Entry with DateFieldDate Entry with DateField
6.Use an array to set the disabledDays property for DateField.Use an array to set the disabledDays property for DateField.
7.Using DateField as List EditorUsing DateField as List Editor
8.Set the disabledDays property in two different ways: using tags and using tag attributesSet the disabledDays property in two different ways: using tags and using tag attributes
9.Set the formatString property to "MM/DD/YY" to display a two-digit yearSet the formatString property to
10.Use Date from a Calendar ControlUse Date from a Calendar Control
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.