To Those who might be interested in a possible bug. Has anyone successfully been able to drag from a Tree to a Datagrid?
I tried various approaches.. also writing DND methods. The trace is showing that the dragSource is indeed 'treeItems' and the dropedTarget is the datagrid, however, I still get the Red X. Is this a bug or am I missing something. Help is super greatly appreciated. -- Tim ----------- Code Sample: ---------------------------------------- private var dropedTarget:UIComponent; private function doGridDragEnter(event:DragEvent):void { // Get the drop target component from the event object. //var dropTarget:Canvas=Canvas(event.currentTarget); dropedTarget = UIComponent(event.currentTarget); trace("doTreeDragEnter= " + event.currentTarget); // Accept the drag only if the user is dragging data if (event.dragSource.hasFormat('treeItems')) { trace("hasFormat= " + event.dragSource.formats); trace("dropedTarget= " + dropedTarget); DragManager.acceptDragDrop(dropedTarget); } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/