Thnks again.

I undertands what you say, but here

DragManager.doDrag(dragInitiator, ds, event);

I have to put dragInitiator. 
dragInitiator in my case should be the node not the full Tree. 
I could create new component, such that canvas

var dragInitiator:Canvas=new Canvas();
DragManager.doDrag(dragInitiator, ds, event);

But I wanted the drag to display a copy of the node (the folder and the
text), just the standard way it works.

So the question is that, how to call the doDrag event to drag a copy of
the Tree Node.

Hey, Tom, thanks any way for your help.


-----Mensaje original-----
De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En
nombre de Tom Chiverton
Enviado el: jueves, 20 de julio de 2006 13:20
Para: flexcoders@yahoogroups.com
Asunto: Re: [flexcoders] Not acept drag on Tree nodes


On Thursday 20 July 2006 11:52, Jesús Iglesias wrote:
> What I need is something likd:
> var dragInitiator:Object=Tree(event.currentTarget).selectedItem;
>
> But it has to bee a UIComponent, not just an object.

I haven't had to play with trees myself yet, but in dragIt():
ds.addData( Tree(event.currentTarget).selectedItem,'treeitem')
and then in doDragDrop()
itemToAdd=event.dragSource.dataForFormat('treeitem');
and you've now got a copy of the drag'ed item (which must be the
selected one, 
yeah ?) which you can add.

-- 
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.




--
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



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 


Reply via email to