I have a Tree, and a dream it seems.  The Tree's dataProvider is XML based.
The Tree looks lovely and bares leaves.  I set dragEnabled = true.  On
another object in my app I am capturing the dragEnter event with this mehtod

private    function doDragEnter(event : DragEvent) : void {

            var ds:Array = event.dragSource.dataForFormat("treeItems") as
Array;

            Alert.show(ObjectUtil.toString(ds));return;

        }

Now, if I drag a leaf over this object, the Alert above displays
(Array)#0
[0]

as in it does NOT display the XML frag represented by the leaf.

If I drag a branch, item with the folder icon, the Alert above displays
(Array)#0
[0]<node label=.......</node>

it displays the XML frag for the branch and all its children?

WT?

--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?

Reply via email to