Skip to main content
Participating Frequently
October 30, 2015
Answered

Grouping movie clips

  • October 30, 2015
  • 1 reply
  • 402 views

Can movie clips be grouped together yet maintain their individual properties?

Here's what I'm looking to do. Let's say I want movie clip A and movie clip B. On the stage I draw some shape, convert it to a symbol > Movie clip and give it an instance name of clipA. I then create a second graphic and convert it to a symbol > Movie Clip and give it an instance name of clipB. I then move clipB to where it's centered over clipA. I then select both clips and group them together.

The problem I'm running into is when I attempt to create a MouseDrag event for clipB, only clipB gets dragged. clipA does not get dragged with clipB even though I grouped them together. I need the clips to act as one entity yet maintain their individuality so if I hover the mouse over clipB it responds with some action, but when I hover over clipA, nothing happens.

Hope this makes sense. Let me know if you need further detail and I'll be happy to provide.

This topic has been closed for replies.
Correct answer nezarov

group won't work in runtime.. what you need is to select A & B and convert them to a movieClip, then give it an instance name let's say "my_mc" and use my_mc.startDrag()..

and you can use my_mc.clipName.property if you want to change any property of the my_mc's children (clipA & clipB).

1 reply

nezarovCorrect answer
Inspiring
October 30, 2015

group won't work in runtime.. what you need is to select A & B and convert them to a movieClip, then give it an instance name let's say "my_mc" and use my_mc.startDrag()..

and you can use my_mc.clipName.property if you want to change any property of the my_mc's children (clipA & clipB).

Participating Frequently
October 30, 2015

Thank you very much!

Inspiring
October 30, 2015

You're welcome my friend.