Beautiful!!!!!!!!!!!!!!!

thats great! 

--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This is much easier than you suspect.  You need to use an
> iconFunction().  I don't have an example to point to, but I'm sure there
> is one in the docs.
> 
>  
> 
> Tracy
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of jensen.axel
> Sent: Thursday, January 25, 2007 4:41 PM
> To: [email protected]
> Subject: [flexcoders] using mx:Tree to get custom icons
> 
>  
> 
> I'm working with a real estate company, and making an administrative
> utility, to manage properties... some of these properties are not
> active, or they are in a certain price range (100,000 - 200,000) or
> (200,000 - 300,000) and for ease of use, I would love to be able to
> replace the icon on my leaf nodes with custom ones, depending on
> data... for example (is the property active... if not... put a red X
> there, and if it is in a 100,000 - 200,000 price range, put a blue
> icon there...) there are many different status states that these
> properties could be in... 
> 
> We integrated flex with google maps with using the FA-bridge, and I'm
> using custom icons on the map... google maps needs a Latitude,
> Longitude for plotting pointers(markers) on the map... 
> 
> Say a property doesn't have a latitude and longitude assigned yet, i
> would like a custom icon in the tree for that... as well as if the
> property isActive, and the different price ranges as well... so i
> think you are probably getting the point of what i want...
> 
> I have a tree, and i want the leaf nodes to be those custom icons... 
> 
> The icons will depend on data in the dataProvider, but I haven't got
> the slightest clue as to how to even put a custom icon into the tree,
> let alone, differentiating the icon depending on data... if anyone out
> there has used custom icons in the mx:Tree that would be awesome....
> 
> I could probably figure it out from there... I've looked at extending
> the tree on livedocs
> 
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww
> help.htm?context=LiveDocs_Parts&file=00000856.html
> <http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/w
> whelp.htm?context=LiveDocs_Parts&file=00000856.html> 
> 
> but it changes the display of the data, but I'm trying to chase down
> where the actual icon gets set, and I cant seem to figure it out... 
> 
> I will used the hasChildren() function to find out if the node is a
> leaf node or not, and if so then use the custom icon... 
> 
> anyway... Thanks for your time
> 
> Axel Jensen
>


Reply via email to