PDA

View Full Version : Moving mc's inside another mc?



iselsewhere
February 11th, 2005, 12:33 PM
I'm working on a thing where I use drag n drop. So far so good, but when the mc's is dropped on the drop target (which is also a mc) I want them to get inside that mc in some way. This is because I need to be able to move the droptarget_mc and the dropped mc's together with it! If I can get them all in the same mc the problem is solved...

Any ideas?

iselsewhere
February 11th, 2005, 12:34 PM
Or maybe you have a suggestion to acheive this without putting mc's inside another mc.

valpez1
February 11th, 2005, 12:35 PM
I'm a little confused...but why don't you make one mc that contains both the draggable mc, as well as the drop target which is converted to a seperate mc.

iselsewhere
February 11th, 2005, 02:01 PM
I'm a little confused...but why don't you make one mc that contains both the draggable mc, as well as the drop target which is converted to a seperate mc.
The thing is that i'm only dragging instances of the dragable mc's. I use duplicateMovieClip everytime before startDrag() so one mc is left in the original place. This is because I need to be able to drag several copies of a dragable mc.

I want to move only the mc's that has been dropped on the target and not the "original" draggable mc's that is supposed to remain in their places. Does it make sense? It's hard to explain...