There should be a rollOut if the object dispatched a rollOver. Maybe the
rollOut happens sooner or maybe the rollOver never happens because something
else is the mouse target. You can monitor events on a parent container and
see what children are getting events.
I am not sure a rollOver event is ever dispatched. How can I detect what events are being dispatched to children from the parent? Do you have a snippet for that?
In general the question I have is. If I do a dragEnter, and then I do NOT perform an acceptDragDrop on that action, what event should fire when the mouse leaves that object? dragExit does not seem to fire in that situation it only seems to fire if I do an acceptDragDrop.
I think you are correct that dragExit only fires if you accept DragDrop,
otherwise there would be a lot of event traffic during dragging.
Add a capture phase mouse event handler and examine the event.target
First off. Thanks for all you hard work answering forum questions Flex harUI. It is much appreciated.
The problem I have is that I don't want to take this action on "rollOver". I want to take this action when a dragDrop is attempted onto an object that doesn't accept the drag. And then I want to undo this action when they move the mouse out of the object that doesn't accept the drag drop?
I feel like this has to be a very common scenario. Someone attempts a drag drop onto a target, you turn that target a color to indicate the operation will not be accepted and then when the mouse leaves you turn it back to the orginal color...
I looked at the code. It seems like for your case you are supposed to
respond with DragManager.NONE
Thanks again for responding.
Do you mean in the case where I don't want to accept a drag and drop that I set showCurser to DragManager.NONE? That will modify the cursor (it is also the default I think), but it doens't seem to generate a dragExit event when I move out of that component.
Call acceptDragDrop and set showCursor to DragManager.NONE.
Flex HarUI -
Thanks! That did it.