Can you share a code sample? Without taking a look at what you are doing. we
could be just shooting blindly at what the problem is. First thing is first
- are you removing the child from its present container and then re-adding
it to the new target? The drag manager doesn't by default handle those kinds
of things.

 

Rick Winscot

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel
Sent: Saturday, May 17, 2008 12:30 PM
To: [email protected]
Subject: [flexcoders] Changing parents throught Drag & Drop

 

Hey guys,

Here's the scenario... I have a list of things displayed in a Tree.
You can drag one of them, and drop it in a Container. The Container is
in charge of creating what the dragged object specifies, generally an
UIComponent. If the object is dropped inside a Container, it
succesfully sets the right parent for the object. Once the component
is created, it can still be dragged around. The problem is, once i've
created the object and the parent has been set, if the object is
dropped on other Container the parent property doesn't change, it's
always dropped on the Container it was initially dropped.

Every Container object has dragEnter and dragDrop handlers. The drag &
drop is done using the DragManager.

Why can't I change parents on drag & drop?

 

Reply via email to