Should be: event.dragInitiator.id
Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of Angelo Anolin
Sent: Thursday, August 20, 2009 5:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Determine Drag Source Control
Hi FlexCoders,
I have some inquiry with regards to Drag and Drop.
Supposedly I have 5 List controls with IDs:
lstControl_Source1
lstControl_Source2
lstControl_Source3
lstControl_Source4
lstControl_Source5
All these list controls are possible source of drag items.
I am dropping the dragged item to another list control which is
lstControl_Target.
I have defined the dragDrop event handler for the lstControl_Target as:
dragDrop = "lstControl_TargetDD(event)".
And the function:
private function lstControl_TargetDD(evt:DragEvent):void
{
// Which control was the source of the drag item???
}
Inputs appreciated. Thanks.
Regards,
Angelo