Sounds like you want calculateDropIndex

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Thibaud Van Vreckem
Sent: Thursday, March 13, 2008 10:59 AM
To: [email protected]
Subject: [flexcoders] drag and drop between list - changing default
behavior to allow dropping "into" list item.

 

Here we go again... sorry message was sent unfinished by mistake..

I Have 2 List:

"list1" contains folders.
"list2" contains files

they are both drag and drop enabled:
dragEnabled="true" 
dragMoveEnabled="true" 
dropEnabled="true"
dragEnter="dragEnterHandler(event)"


I'm keeping the default dnd behavior for reordering only within each
list.

private function dragEnterHandler(event:DragEvent):void {
   if (event.dragInitiator != event.currentTarget) {
    event.preventDefault();
  }
}

Now How should I go about enabling my files items from list2 to be
dropped over the folder items in list1 (instead of being inserted in the
list rows). 
is there an easy way to detect which item in the list I am rolling over
without resorting to some fancy coordinate position detection ?

Thanks.

 

Reply via email to