I have a small question on the Drag and Drop using the Tree component.
private function dragEnterHandlerTree(event:DragEvent):void {
var dropTarget:UIComponent = UIComponent(event.currentTarget);
if (event.dragSource.hasFormat('treeItems'))
{
// Signal that this data can be dropped onto the target
DragManager.acceptDragDrop(dropTarget);
trace("drag accepted.");
DragManager.showFeedback(DragManager.COPY);
trace(DragManager.getFeedback());
var dragItems:Array = event.dragSource.dataForFormat("treeItems");
}
}
now dragItems is an Array, it has the length of 1; but when I look at
the information through a trace, it's empty.
Any ideas on how to get the node's information? I've tried a couple
different ways, one way had an issue and it read the tree node to be:
<label="name" id="data" anotherID="id">
any ideas?
thanks!
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/