Hi All,
I am facing one Small issue with Tree component, tried couple of stuff but
didn't worked. the label of all the nodes are not appearing, Any thought or
suggestion.
----------------------------
<?xml version="1.0"?>
<!-- dpcontrols/TreeOpenNode.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import flash.events.*;
import mx.events.*;
import mx.controls.*;
private function initTree():void {
XMLTree1.expandItem(MailBox.getItemAt(0), true);
XMLTree1.selectedIndex = 1;
}
[Bindable]
public var test1:String= "test1";
[Bindable]
public var test2:String= "test2";
[Bindable]
public var test3:String= "test3";
]]>
</mx:Script>
<mx:Tree id="XMLTree1" width="300" height="170"
labelField="@label" creationComplete="initTree();">
<mx:XMLListCollection id="MailBox">
<mx:XMLList>
<node label="Mail" data="100">
<node label="Personal Folder" data="10">
<node label="Business" data="2"/>
<node label="{test1}" data="3"/>
<node label="{test2}" data="5" />
</node>
<node label="Personal Folder" data="10">
<node label="Business" data="2"/>
<node label="{test3}" data="3"/>
<node label="{test2}" data="5" />
</node>
</node>
</mx:XMLList>
</mx:XMLListCollection>
</mx:Tree>
</mx:Application>
----------------------------
Thanks,
Deepak
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders