hi there,
Imagine a set of MCs that have to be moved as a group.
Normally, I would create these movie clips inside a contiainer movieclip (becoming their _parent movie clip)… I would then be able to rotate, fade, move [and so on] all nested movie clips as they inherit their parent’s coordinate system and some properties.
Now, here’s the problem:
There are some scenarios where I need an MC (a thumbnail for instance) to be part of a collection and also able to become “dettached” of the container (when clicked…) and into the global coordinate space for a special animation or manipulation.
The best solution would be to be able to move nested movieclips from one parent to another… however, I don’t think Flash supports this.
And doing it by hand is not trivial… deleting and re-creating a new MC and mapping properties is possible, but sometimes in the process you would have to re-instantiate the symbol (or class), and that is not always possible to do without loosing state.
I have built a couple of helper classes (MovieClipGroup and MovieClipMonitor and other attempts) that Bind properties and allow for a collection of movieclips to be scaled, moved, and faded as one unit… not so hard to achieve with a little math and onEnterFrames. However, when it comes to rotation things stop being that straightforward.
(defining a registration point and doing some nasty math )
Does anyone have any ideas?