So. are you _not_ using the dragSource, dragInitiator or draggedItem
provided by your drag/drop events? I would recommend that first before you
try to get list items to dispatch events. 

 

As for the second question, the mouse must participate in a drag/drop
operation - but the actual functionality of dragging and dropping is a lower
level operation that isn't directly tied to a components condition. If you
wanted to turn drag/drop off based on mouse enabled or something similar.
then all you had to do is check for myComponent.mouseEnabled with your drag
start event. and if this fails. event.preventDefault().

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thirtyfivemph
Sent: Monday, April 14, 2008 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Letting parents handle drag events

 

I have a custom container full of items (basically a list). I need to
determine when the user drags and drops something onto one of those
items. I was hoping I could just add a listener to the list container
and that the drag events it received would contain the child object as
the event.target (just like mouse events). Instead, the list container
is both the target and current target.

Is there a way to get the result I want? The list items are getting
the drag events, I just need them to also be dispatched from the
parent, and I don't want to have to create a custom event to handle this.

And in general, why is it that the DragEvents inherit from MouseEvents
but don't *behave* like mouse events? For example, they don't respect
mouseEnabled/mouseChildren (I had to change DragProxy to do this).

Thanks for the help,

Troy.

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to