populating dataProvider by using the : dataProvider « Data Model « Flex






populating dataProvider by using the

populating dataProvider by using the <mx:dataProvider/>
          


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:List width="150">
        <mx:dataProvider>
            <mx:Array>
                <mx:String>Red</mx:String>
                <mx:String>Orange</mx:String>
                <mx:String>Yellow</mx:String>
                <mx:String>Green</mx:String>
            </mx:Array>
        </mx:dataProvider>
    </mx:List>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Script section and dataProvider sectionScript section and dataProvider section
2.Set data for TabBar using and Set data for TabBar using <mx:dataProvider> and <mx:TabBar>
3.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
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