How to drag and drop multiple movieclips at the same time
Hi everyone,
I’m a new actonscript 3 and adobe flash CC user and I’m building an application but I've been stuck for several days now. I've looked everywhere and tried everything I could think of but I still can’t find a solution to my problem which I thought was pretty basic.
Basically, let’s say I have one rectangle and one circle on the stage. Once I’ve turned them into movieclips and assigned an instance name to each one of them, I’d like to be able to perform a drag and drop on the rectangle so that both the rectangle and the circle become draggable at the same time.
For now, I have a mouse-down event listener attached to the rectangle instance, a startDrag method assigned to the rectangle instance and another one assigned to the circle. But in this configuration, when I click and drag the rectangle, only the circle is moveable (only the last line in the code is taken into account).
I don’t know if what I’m trying to achieve is feasible but any help will be greatly appreciated, thanks!
