[flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-13 Thread Amy
--- In flexcoders@yahoogroups.com, Richard Rodseth 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

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
And of course I had to add to my renderers dragExit: MyTreeSubclass(this.listData. > > owner).highlightItem(this,false ); On Wed, May 12, 2010 at 11:10 AM, Richard Rodseth wrote: > Though I strive to avoid subclassing the standard components, the code I > inherited already has a Tr

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
Though I strive to avoid subclassing the standard components, the code I inherited already has a Tree subclass, so I added the following: public function highlightItem(item:IListItemRenderer, highlighted:Boolean):void { this.drawItem(item, false, highlighted); } And call it from t

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
No, this is dragging items from a datagrid to a tree. On Wed, May 12, 2010 at 10:43 AM, Baz wrote: > > > Doesn't the node already highlight because you are rolling over it? > >

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Baz
Doesn't the node already highlight because you are rolling over it?

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
Could you elaborate a bit, please? The component is already used with a custom renderer. Are you suggesting that the dragEnter method should just do the highlighting directly? Makes sense, I suppose. On Wed, May 12, 2010 at 10:24 AM, Alex Harui wrote: > > > I would use a custom renderer. > > > >

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Alex Harui
I would use a custom renderer. On 5/12/10 9:50 AM, "Richard Rodseth" 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

[flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
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