Davis,

What I usually do is to set a function that accept those variables as arguments 
and then build the treeNodes with the information, when any of them changes, 
the tree is automaticly updated.

Something like this:

<mx:tree dataProvider ="{myfunction(amf1Result,amf2Result,amf3Result)}"/>

<mx:Script>
function myfunction(arg1,arg2,arg3) : mx.controls.treeclasses.TreeNode { 
var rootNode = new mx.controls.treeclasses.TreeNode('my root 
node',{dataOfNode});
// Buid the treeNodes where
...
Return rootNode;
}
<mx:Script/>

João Fernandes
Secção de Desenvolvimento
Departamento de Informática


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Devis
Sent: segunda-feira, 1 de Agosto de 2005 11:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree with 3 different AMF is it possibile?

hi to all, i have this question,

i have 3 AMF that return an array of ActionScript class

1°  COLOR[]
2°  SIZE[]
3°  WEIGHT[]

this is my goal:

tree
   COLOR
        RED
        GREEN
        YELLOW
   SIZE 
        10
         20   
         20
  WEIGHT
       40
       78
      90
/tree

but  i haven't  an xml file, i  have 3 amf function that returns array 
of ActionScript class, pls can you help me, if you can post some code 
will be appreciate.
Thank's in advance

For you it's better to use 3 TREE component?
Devis




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hen4nuj/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122900601/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to