RE: [flexcoders] Re: Trees are killing me

2009-10-09 Thread Alex Harui
Should be mouseEventToItemRenderer(dragEvent).data

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Friday, October 09, 2009 7:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees are killing me



OK, I am now hanging my hat in hand. I need help with a method to get the 
object of the folder that I am over, I have no idea how to do this. PLEASE 
HELP!

Thanks, maybe I can get my dignity back.

timgerr

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 You should be getting DRAG_OVER events. The dragSource contains the object 
 being dragged. You can use mouseEventToItemRenderer to get the renderer you 
 are currently over.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Tuesday, October 06, 2009 8:54 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me



 Thanks for the response, I have a question for ya. I am dragging with in a 
 tree, how can I get the object that I am dragging and when I drag over 
 something how can I get that object. I am using an arraycollection.

 Thanks again for the help.
 timgerr

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  I see. You don't want to allow dropping at the top-level.
 
  I think you can get the DRAG_OVER event, look at where the mouse is, and 
  call event.preventDefault()
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of timgerr
  Sent: Monday, October 05, 2009 2:18 PM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Trees are killing me
 
 
 
  I am creating an app that folders are groups and leafs are users. I want 
  users in groups (folders) only.
 
  Tim
 
  --- In 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
   Alex Harui aharui@ wrote:
  
   You have folders mixed with non-folders and you only want to allow 
   dropping on the folder rows? Why not allow dropping on the leaf rows?
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com

   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of timgerr
   Sent: Monday, October 05, 2009 10:28 AM
   To: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Trees are killing me
  
  
  
   Hello all,
   I was wondering if someone could help me. I have a tree with 3 folders, 
   how can I make sure nodes get dropped into the folders?
  
   Thank for the look,
   timgerr
  
 




RE: [flexcoders] Re: Trees are killing me

2009-10-09 Thread Alex Harui
Yes.  You have to extend Tree.

There is an undocumented, mx_internal version called 
mouseEventToItemRendererOrEditor.  You can call that without extending Tree, 
but that API can go away in a future release without warning.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Friday, October 09, 2009 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees are killing me



I have no idea how to use this, I have been googleing it but can only find 
references when people extend classes. Anyone know how to use 
mouseEventToItemRenderer???

Really thanks for the help, this problem has been a thorn in my side for a long 
time.

timgerr

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Should be mouseEventToItemRenderer(dragEvent).data

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Friday, October 09, 2009 7:03 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me



 OK, I am now hanging my hat in hand. I need help with a method to get the 
 object of the folder that I am over, I have no idea how to do this. PLEASE 
 HELP!

 Thanks, maybe I can get my dignity back.

 timgerr



RE: [flexcoders] Re: Trees are killing me

2009-10-06 Thread Alex Harui
You should be getting DRAG_OVER events.  The dragSource contains the object 
being dragged.  You can use mouseEventToItemRenderer to get the renderer you 
are currently over.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Tuesday, October 06, 2009 8:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees are killing me



Thanks for the response, I have a question for ya. I am dragging with in a 
tree, how can I get the object that I am dragging and when I drag over 
something how can I get that object. I am using an arraycollection.

Thanks again for the help.
timgerr

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 I see. You don't want to allow dropping at the top-level.

 I think you can get the DRAG_OVER event, look at where the mouse is, and call 
 event.preventDefault()

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Monday, October 05, 2009 2:18 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me



 I am creating an app that folders are groups and leafs are users. I want 
 users in groups (folders) only.

 Tim

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  You have folders mixed with non-folders and you only want to allow dropping 
  on the folder rows? Why not allow dropping on the leaf rows?
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of timgerr
  Sent: Monday, October 05, 2009 10:28 AM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Trees are killing me
 
 
 
  Hello all,
  I was wondering if someone could help me. I have a tree with 3 folders, how 
  can I make sure nodes get dropped into the folders?
 
  Thank for the look,
  timgerr
 




RE: [flexcoders] Re: Trees are killing me

2009-10-05 Thread Alex Harui
I see.  You don't want to allow dropping at the top-level.

I think you can get the DRAG_OVER event, look at where the mouse is, and call 
event.preventDefault()

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Monday, October 05, 2009 2:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees are killing me



I am creating an app that folders are groups and leafs are users. I want users 
in groups (folders) only.

Tim

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 You have folders mixed with non-folders and you only want to allow dropping 
 on the folder rows? Why not allow dropping on the leaf rows?

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Monday, October 05, 2009 10:28 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Trees are killing me



 Hello all,
 I was wondering if someone could help me. I have a tree with 3 folders, how 
 can I make sure nodes get dropped into the folders?

 Thank for the look,
 timgerr