How do I set the dataProvider for an component to be an XML file?

后端 未结 5 1103
孤城傲影
孤城傲影 2021-01-16 13:51

I\'ve got the latest Beta of Adobe Flash Builder 4.

I want to use a component, and specify the dataProvider as being an XML

5条回答
  •  温柔的废话
    2021-01-16 14:21

    if you want to display images in a list, you should load the xml with a URLLoader , store it in a bindable variable and assign that as data provider to your list. the list should use a mx:itemrenderer where you can customize your view as you wish.

    Actual code goes someting like this

    
        
    
    
    
        
            
                
            
        
    
    

提交回复
热议问题