I have a flex project that is made of up several custom components that are mostly based on VBox
with Lists of some form or fashion ranging from Tree to AdvancedDataGrid. My main view
consists of two custom components which one contains a Tree and other an AdvancedDataGrid.
Using the standard built-in d-n-d in those components, I’m not able to perform d-n-d. So I implemented
d-n-d using DragManager and the necessary events (mouseDown, dragEnter, and dragDrop) on those
components and that works. However, this approach seems to complicate the other events such as
double click and right click actions.
Is there a solution to have native d-n-d with this type of approach?
LeftSide.mxml:
<VBOX>
<Tree/>
</VBOX>
RightSide.mxml:
<VBOX>
<AdvancedDataGrid/>
</VBOX>
main.mxml:
<Application>
<HBOX>
<LeftSide/>
<RightSide/>
</HBOX>
</Application>
I don’t think so….
But what I did a long time ago was only start the drag if the user is holding down the mouse and has held it down for a period of time or moved it a certian distance. I can’t remember the specifics, but I’ll try to dig out how I did it soon.