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

后端 未结 5 1121
孤城傲影
孤城傲影 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 13:56

    Well, I found one solution.

    The MXML will look like this:

    
    
        
    
        
    
    
    
    
    
        
            
        
    
    
    

    And images.xml like this:

    
    
        
            path/to/image1.jpg
        
        
            path/to/image2.jpg
        
        
            path/to/image3.jpg
        
    
    

    Many thanks for all your responses!

    Matt

提交回复
热议问题