DragManager doesn't care whether you have a dropEnabled property, that's
just so List can turn on and off its handlers.

 

DragManager cares whether your component has graphics or children that
cover the area under the mouse (and are mouseEnabled=true) and whether
any other component or child higher up in the "z-order" has called
acceptDragDrop.

 

You can set a break point on the DragProxy.as mouseMoveHandler and see
what the list of objectsUnderPoint are.  If your component or its child
isn't in there, then it is probably a mouseEnabled issue, if it is in
there, it is likely that someone else higher up called acceptDragDrop

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Weyert de Boer
Sent: Saturday, August 16, 2008 4:47 PM
To: [email protected]
Subject: [flexcoders] Custom Container component and drag 'n drop
support

 

I have been working on a custom component which descends from the 
Container class. Now I am trying to implement drag 'n drop support.
I have enabled "dragEnabled"-property on my other List-component in the 
MXML file. I also have add the following listeners in my custom
component:

this.addEventListener( DragEvent.DRAG_ENTER , onDragEnter 
); 
this.addEventListener( DragEvent.DRAG_DROP , onDragDrop 
); 
this.addEventListener( DragEvent.DRAG_OVER, onDragOver );

Only the events never are getting triggered when I am hovering my list 
item over my component. How can I enable the dropping of items for my 
custom component?
Container doesn't seem to have a dropEnabled-property!

Thanks in avance!

Weyert

 

Reply via email to