Well, with a cell renderer you can add 10 icons if you wanted. A cell
renderer lets you attach movieclips, controls, images, etc through code
to the space in the row movieclip directly to the right the node icon.
It lets you draw the row rather than the Tree.
Santhakumar K wrote:
Judah,
I saw it is good. But I need know is it possible to add two Icon
fields in
one tree node.
Thanks,
santhakumar
On 5/26/06, judah <[EMAIL PROTECTED]> wrote:
If you want to use another icon from the library you can use the
Tree.iconFunction or the Tree.iconField property.
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part6_Component_Reference.html
If you want to load in an external image say from a URL then you would
need to create a custom cellrenderer like this one
http://www.drumbeatinsight.com/examples/dndTree/dynamicimages/dndTreeDynamicImages.html
This was a bit tricky because the icon is not part of the cell in the
Tree component.
Best,
Judah
Santhakumar K wrote:
> Flashcoders,
> Is it possible to add two icons in the Tree components. In the
> component
> reference library it is mentioned that we can able to modify icon
in the
> existing icon field.
>
> Thanks,
> santhakumar
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
--
"Always bear in mind that your own resolution to succeed is more
important
than any one thing."
"You can have anything you want - if you want it badly enough. You
can be
anything you want to be, do anything you set out to accomplish if you
hold
to that desire with singleness of purpose."
- Abraham Lincoln
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
"Always bear in mind that your own resolution to succeed is more important than any
one thing."
"You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose."
- Abraham Lincoln
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com