Hi Ted,
Thanks for your thoughts on this . Looks like the first method you've
suggested is the better option.
Question: I am a bit unclear about using the Drawing API embedded into
SWF Icons. Are you suggesting to have code inside of the SWF that
would render the lines according to it's position in the tree? Am I
understanding this correctly.
Tim
--- In flexcoders@yahoogroups.com, "Theodore E Patrick" <[EMAIL PROTECTED]>
wrote:
>
> Tim,
>
>
>
> I think this would best be done via the Drawing API embedded into
SWF Icons
> in Flex 1.5 and Flex 2.
>
>
>
> Node Icons would need to draw this:
>
>
>
> -ICON
>
>
>
> Container Icons would need to draw this:
>
>
>
> -ICON
>
> |
>
> |
>
> |
>
>
>
> Since each Icon knows its position, it can readily draw the lines
> consistently.
>
>
>
> The trick here is that icons are refreshed in the Tree whenever the view
> changes. As they are attached anew, they would simply render out the
state
> of the tree.
>
>
>
> The other route would be to use the drawing API and render the lines
in a MC
> behind the tree based on the state of the DataProvider. I think this
route
> would be more difficult as you would need to draw the nested state
of all
> nodes at one time.
>
>
>
> With the prior method only the changes portion of the drawing changes as
> needed. I believe that depths get higher as you move south on the
tree. If a
> parent draws a line all sibling and child nodes will naturally be
above the
> drawn lines.
>
>
>
> My 2 cents,
>
>
>
> Ted Patrick
>
> Cynergy Systems
>
>
>
>
>
>
>
>
>
>_
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sufibaba
> Sent: Monday, January 02, 2006 12:39 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ANY FLEX TREE GURUS?
>
>
>
> Happy New years to All,
>
> Does anyone know how to Modify the Flex2 Tree component to display
connector
> lines -- Like the one shown under "Rich Graphics" at the following Link:
>
> HYPERLINK
>
"http://javascript.cooldev.com/scripts/cooltree/demos/superdemo/"http://java
> script.cooldev.com/scripts/cooltree/demos/superdemo/
>
> I know that flash is much more capable than javascript and the menu
system
> can be even more robust than javascript or Java. Is it possible to
do this
> in Flex2.
>
> Cheers,
>
> Tim
>
>
>
> --
> Flexcoders Mailing List
> FAQ: HYPERLINK
>
"http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt"http://gro
> ups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: HYPERLINK
>
"http://www.mail-archive.com/flexcoders%40yahoogroups.com"http://www.mail-ar
> chive.com/flexcoders%40yahoogroups.com
>
>
>
>
>_
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your group "HYPERLINK
> "http://groups.yahoo.com/group/flexcoders"flexcoders"; on the web.
>
> * To unsubscribe from this group, send an email to:
> HYPERLINK
>
"mailto:[EMAIL PROTECTED]"flexcoder
> [EMAIL PROTECTED]
>
> * Your use of Yahoo! Groups is subject to the HYPERLINK
> "http://docs.yahoo.com/info/terms/"Yahoo! Terms of Service.
>
>
>
>_
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date:
1/2/2006
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date:
1/2/2006
>
--
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/