Alguien em puede ayudar?
Os pongo el código actual que crea un tree por si alguien se anima a editarlo.
Código :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init();">
<mx:Script>
<![CDATA[
private function init():void {
httpTree.send();
}
private function treeLoaded():void {
xmlTree = XML(httpTree.lastResult.node);
treeTree.dataProvider = xmlTree;
}
]]>
</mx:Script>
<mx:XML id="xmlTree"/>
<mx:HTTPService id="httpTree" url="Arbol.xml" resultFormat="e4x" result="treeLoaded()"/>
<mx:Panel id="treePanel" title="Carpetas" width="252" height="405" x="26" y="86">
<mx:Tree id="treeTree" dataProvider="{httpTree}" showRoot="false" labelField="@label" width="100%" height="100%"/>
</mx:Panel>
</mx:Application>
