I was able to figure it out myself. Use the following code:
private function dragDropAccount(evt:DragEvent):void {
var itemsArray:Array =
evt.dragSource.dataForFormat("items") as Array;
TextInput.text = itemsArray[0].account;
}
private function dragOverAccount(evt:DragEvent):void {
DragManager.showFeedback(DragManager.NONE);
}
private function dragEnterAccount(evt:DragEvent):void
{
if (evt.dragSource.hasFormat("items")) {
DragManager.acceptDragDrop(TextInput
(evt.currentTarget));
}
}
--- In [email protected], "David C. Moody" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> Is is possible to drag from a datagrid to a textinput? I just want
one
> column of the data grid dumped inot the textinput?
>
> I'm not having much luck finding examples anywhere, the Adobe
examples
> are mostly for list-based to list-based. And I can't find any that
are
> for list-based to non-list-based.
>
> Thanks,
> -David
>