Maybe I figured this out.

 

The code example I am using sets the selectedIndex of the tree in the
dragOver handler to the node being dragged over.  This apparently is
corrupting the dragSource.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, May 28, 2007 7:29 PM
To: [email protected]
Subject: [flexcoders] dragSource in dragOver Handler changes during
drag?

 

In a dragOver handler function I want to access the data being dragged:

    var ds:DragSource = event.dragSource;

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

    var xmlItemSource:XML = XML(items[0]);

    trace(xmlItemSource.toXMLString());

The trace displays different nodes depending on what I am dragging over.
I expected the dragSource data to always be the data currrently being
dragged.

Am I misunderstanding dragSource, or do I maybe have some other problem
that is messing things up?

Tracy

 

Reply via email to