Script section and dataProvider section : dataProvider « Data Model « 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 » Data Model » dataProviderScreenshots 
Script section and dataProvider section
Script section and dataProvider section
          
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:ComboBox>
        <mx:Script>
            
            [Bindable]
            public var defaultValue:String = "";
          
        </mx:Script>
        <mx:dataProvider>
            <mx:Object stateCode="AK" label="Alaska" />
            <mx:Object stateCode="AL" label="Alabama" />

        </mx:dataProvider>
    </mx:ComboBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Set data for TabBar using and Set data for TabBar using <mx:dataProvider> and <mx:TabBar>
2.Create a Legend control is to bind a chart to it by using the dataProvider propertyCreate a Legend control is to bind a chart to it by using the dataProvider property
3.populating dataProvider by using the populating dataProvider by using the <mx:dataProvider/>
4.uses event handlers to add and remove container children by calling addItem()/removeItemAt() on dataProvider propertyuses event handlers to add and remove container children by calling addItem()/removeItemAt() on dataProvider property
5.Creating a TabBar control, use and tags to specify the text for each tabCreating a TabBar control, use <mx:dataProvider> and <fx:String> tags to specify the text for each tab
6.MultipleDataProviders.mxmlMultipleDataProviders.mxml
7.Change Service DataProviderChange Service DataProvider
8.dataProvider and DataGrid
9.A custom function to convert new data items to the format required by the data providerA custom function to convert new data items to the format required by the data provider
ww___w__._j_a___v_a___2__s___._c___om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.