When dragging an item from a tree, I'd like to change the
format of the dragSource from 'treeItems' to a custom format. There
are plenty of examples that show how to do it for a non-drag
enabled component like a label using DragManager.doDrag (ie
creating from scratch), but on the tree component that initiates
the drag, how do I change the format of the drag initiator during
the initiating phase?
I don't want to use the isDragging method from the
dragManager, because I don't want a bunch of event listeners
hanging around if there is an drag initialization event handle,
which would be easier. I'd just be better off filtering the data at
the drop target.
I'm not sure this will work, but create a new class which
extends Tree. In that class override the protected function,
dragStartHandler( event:DragEvent ). You should probably call
super.dragStartHandler(event) and then replace the data in the