Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Grouping movie clips

Explorer ,
Oct 30, 2015 Oct 30, 2015

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.

TOPICS
ActionScript
370
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Oct 30, 2015 Oct 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).

Translate
Enthusiast ,
Oct 30, 2015 Oct 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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 30, 2015 Oct 30, 2015

Thank you very much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 30, 2015 Oct 30, 2015
LATEST

You're welcome my friend.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines