Sure. 'depthColors' takes an array of colors that determines which colors to
use in a descending pattern through the node hierarchy. Below is some code
that works for me. 

<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
backgroundColor="#FFFFFF">

<mx:XML id="dp">
<node label="New">
<node label="HTML Document" />
<node label="Text Document" />
</node>
<node label="Close"/>
</mx:XML>

<mx:Tree depthColors="[0xEFEFEF, 0xFF0000]" dataProvider="{dp}"
rollOverColor="0xFFFFFF"/>

<mx:Script> <![CDATA[

]]></mx:Script>

</mx:Application>

-----Original Message-----
From: joshbronson630 [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 10:40 AM
To: [email protected]
Subject: [flexcoders] Assigning depthColors attribute of a Tree

Can someone give me an example of how to assign the depthColors 
attribute of a Tree? I know it takes an Array of Colors, but I'm 
having trouble with syntax.

Thanks,
Josh





Yahoo! Groups Links






Reply via email to