You should just reference the treemitems as an array of objects. This example from LiveDocs should get you most of the way there:
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=Flex_Documentation&file=00000624.htm There's a bit of code in the paragraph explanation at the bottom that says the code uses "items", but that's not right. It uses treeitems. Hope that Helps! Ted -----Original Message----- From: pilby1 [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 11:21 AM To: [email protected] Subject: [flexcoders] Re: Tree dragSource question Thanks for your response, Ted. I tried "treeitems" like this as you said: function myDropEvent(event) { var dragItems = event.dragSource.dataForFormat("treeitems"); alert(dragItems); alert(dragItems.length); alert(dragItems.node); alert(dragItems.selectedNode); } I admit here I'm not sure what attribute to use to access the dragged node, so I put a whole of slew of alert() statements (as seen above). All of them come up with alert boxes that display nothing. Could you tell me the exact attribute I should use to get the reference to the node that was dragged and dropped? Thanks. --- In [email protected], Ted Casey <[EMAIL PROTECTED]> wrote: > treeitems is the format. > > Thanks, > > Ted > > -----Original Message----- > From: pilby1 [mailto:[EMAIL PROTECTED] > Sent: Friday, March 04, 2005 9:52 AM > To: [email protected] > Subject: [flexcoders] Tree dragSource question > > > > When one drags items from a datagrid to a tree, we do: > > event.dragSource.dataForFormat("items"). > > This doesn't seem to be working when I drag a tree node and drop to > another tree node. > > What is the format string for a tree node that was dragged? > > Thanks. > > > > > > > Yahoo! Groups Links Yahoo! Groups Links

