# Grouping MovieClips with Dinamically with Actioncsript! ( or one \_parent to another)

**URL:** <https://forum.kirupa.com/t/grouping-movieclips-with-dinamically-with-actioncsript-or-one--parent-to-another/128342>\
**Category:** Uncategorized\
**Created:** [November 11, 2004, 4:06pm UTC](https://forum.kirupa.com/t/grouping-movieclips-with-dinamically-with-actioncsript-or-one--parent-to-another/128342 "2004-11-11T16:06:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aldob](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/aldob/32/830_2.png) [@aldob](https://forum.kirupa.com/u/aldob)\
**Post date:** [November 11, 2004, 4:06pm UTC](https://forum.kirupa.com/t/grouping-movieclips-with-dinamically-with-actioncsript-or-one--parent-to-another/128342/1 "2004-11-11T16:06:00Z")

</div>

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?
