The button is not being deleted, but being moved from your source
component's display list to the destination components display list.

 

The DragManager has a reference to the DragSource, not a COPY of it.   In
order to do what you are implying you would need to create a NEW button at
the destination with the same properties of the source button and the x,y
position of the DragDrop operation.

 

Alternatively you would need to create your own
serialization/deserialization routines to "copy" the source button
dynamically.

 

- Tom

 

 

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pereanend
Sent: Thursday, November 30, 2006 10:31 AM
To: [email protected]
Subject: [flexcoders] Drag and drop

 

I am dragging components like buttons from one canvas to the other and 
it works fine, the problem is that after dropping the component on the 
other canvas, the one from the source canvas is deleted. Does anyone 
knows a solution to it. I think i need to implement the dragComplete 
event but i don't know how to implement this function if this is the 
solution.

Regards,
Desigaine.

 

Reply via email to