Time format : XMLList « Data Model « Flex






Time format

Time format
         
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="initApp()">
    <mx:Script>
        public function initApp():void {
            myTree.setStyle("selectionDuration", 100);
        }
  </mx:Script>
    <mx:XMLList id="treeData">
        <node label="File">
            <node label="Save">
                <node label="Doc" />
                <node label="Pdf" />
                <node label="Rdf" />
            </node>
            <node label="Edit">
                <node label="Cut" />
                <node label="Copy" />
                <node label="Paste" />                
            </node>
            <node label="Window" />
            <node label="Help" />
        </node>
    </mx:XMLList>
    <mx:Panel title="Tree Example" width="100%">
        <mx:Tree id="myTree" width="100%" labelField="@label" dataProvider="{treeData}" />
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Using an XMLList component to configure menu data
2.XMLListCollection component wrapped around an XMLList
3.Creating an XMLList component to drive a List componentCreating an XMLList component to drive a List component
4.Using XMLListUsing XMLList
5.Wrapping an XMLListCollection around an XMLList
6.Use an XMLListCollection objectUse an XMLListCollection object
7.Add an XMLList to an XML Object
8.Bind to an XMLList or an E4X QueryBind to an XMLList or an E4X Query
9.Filter and Sort an XMLListCollectionFilter and Sort an XMLListCollection
10.XMLListCollection With ListXMLListCollection With List