Re: [flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-10-31 Thread Jim Laing
I just encountered this problem in our app this morning, and I thought my solution might be helpful for someone out there. Building on Peter's example (1), I also needed to allow a user to drag a new root node onto the tree. That is, if they drag onto an existing node, add it as a child. Otherwise,

[flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-10-30 Thread kim_boulton
If you skim over to the Adobe Flex 2 General discussion forum. Peter Ent just showed me how to get this working. Easy too. hth kimb --- In flexcoders@yahoogroups.com, "kim_boulton" <[EMAIL PROTECTED]> wrote: > > Hello, > > Me too! > > kimb > > --- In flexcoders@yahoogroups.com, "Niklas Ric

[flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-10-30 Thread kim_boulton
Hello, Me too! kimb --- In flexcoders@yahoogroups.com, "Niklas Richardson" <[EMAIL PROTECTED]> wrote: > > Hi there, > > Could you post your example code as I'm just trying to sort this out myself > and running into the same problem. > > Thanks. > > Regards > > Niklas > > > > > On 8/21/06

Re: [flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-10-27 Thread Niklas Richardson
Hi there,Could you post your example code as I'm just trying to sort this out myself and running into the same problem.Thanks.RegardsNiklas On 8/21/06, Jason Y. Kwong <[EMAIL PROTECTED]> wrote: I had posted a request to Adobe's wish form, asking that the drop d

Re: [flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-08-21 Thread Jason Y. Kwong
I had posted a request to Adobe's wish form, asking that the drop data be made available.  I got a very quick response (within 10 minutes!):"Yes, we discovered this very soon after shipping that this data should have been exposed. We have a bug for this already logged internally, sowe will work

[flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-08-21 Thread thunderstumpgesatwork
I'm glad it's not just me! So, were you able to get something working for your scenario? Anyone from the Adobe team want to confirm this and/or offer alternative solutions? thanks, Thunder --- In flexcoders@yahoogroups.com, "Jason Y. Kwong" <[EMAIL PROTECTED]> wrote: > > I've running into this

Re: [flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-08-18 Thread Jason Y. Kwong
I've running into this myself right now as well.  If you look at the Tree code, you can see that the "drop parent" is being tracked in the variable _dropData.parent.  It gets calculated in the method updateDropData().  Unfortunately, both the variable and the method are private, so they're usele

[flexcoders] Re: Tree drag & drop: how to get node where item is dropped

2006-08-18 Thread thunderstumpgesatwork
Bump... I'm trying to do similar. Though I need to do it in the DragOver event, and determine under which node it is going to be dropped. I need to do this because certain places in the tree are acceptable places to drop certain items... I know I can get the "dropIndex" by using the tree function