I would use a custom renderer.

On 5/12/10 9:50 AM, "Richard Rodseth" <[email protected]> wrote:






I'm now aware of dropIndicatorSkin and found an example that
customized the skin to do this:

g.beginFill(0xa1bde2, 0.5);
        g.drawRect(-5, -1, w, 23);

which is obviously a bit, er, hard-coded.

The location and height for the skin appear to be set for drawing a
line between nodes. Recall that I just want to highlight the node
itself, as though it were being selected.

Tree.showDropFeedback and ListBase.showDropFeedback are quite large
methods (with side-effects) to be overriding. Is that my best option,
or can I have my skin access the tree node?

Recommendations or examples appreciated.I feel sure someone must have
used a tree to represent a folder hierarchy.
Thanks.

On Tue, May 11, 2010 at 3:40 PM, Richard Rodseth <[email protected] 
<mailto:rrodseth%40gmail.com> > wrote:
> I'm maintaining some code which has a dragEnter handler which sets
> selectedIndex in order to highlight the destination tree node
>
> Can anyone point me at some sample code to do this, or a public method
> to highlight the item without selecting it? The showDropFeedback
> method draws a line between items, which is not the desired effect.
>
> Thanks.
>





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to