Define objects using properties directly in the Object tags : Object « Development « Flex






Define objects using properties directly in the Object tags

Define objects using properties directly in the Object tags
           
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:DataGrid>
        <mx:ArrayCollection>
            <mx:Object Artist="A" Album="AA" Price="11.99" />
            <mx:Object Artist="B" Album="CC" Price="11.99" />
        </mx:ArrayCollection>
    </mx:DataGrid>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Create an Object, adds properties, and inspect its propertiesCreate an Object, adds properties, and inspect its properties
2.Create a generic Object, adds properties to that objectCreate a generic Object, adds properties to that object
3.Bind to a Generic ObjectBind to a Generic Object
4.Using source and property properties to specify an objectUsing source and property properties to specify an object