Rough sketch maybe… you would want to add a reference to the canvas itself as part of your drag source data.  So instead of just relying on the format that had “Blue” or “Red” you would have another format called sourceCanvas or something like that, then in your drop handler you’d grab dataForFormat(“sourceCanvas”) and you would now have a reference to it.  You could then have its parent remove it.

 

HTH,

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of k631go2
Sent: Thursday, September 01, 2005 4:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag-and-drop: Delete Canvas after Move

 

Based on the example in the livedocs:

http://livedocs.macromedia.com/flex/15/flex_docs_en/00000619.htm

I would like to be able to remove the colored boxes (canvas) as they
are moved to the list box.  I know how to do this through a datagrid,
but I can't figure out how to locate the canvas and remove it after
it has been moved.  Any ideas?

Thanks,

Kevin





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Software design and development Macromedia flex
Software development best practice


YAHOO! GROUPS LINKS




Reply via email to