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

Possible to name movieclip that's at a set of coordinates?

Guest
May 13, 2013 May 13, 2013

Gidday

Given a set of coordinates, and the name of a parent movieclip within another movieclip of the same same, is it possible to

a) test to see which (if any) parent's child clips is on those coordinates?

and

b) if so, get the name of that child clip?

Or is it a matter of iterating through ALL the display elements of the parent and doing hitTestPoint checks?

I ask as I'm trying to figure out a way to allow buttons within a movieclip within a Greensock blitmask to be clicked, based on how far the finger drag was ie less than 20px, count this as a click, not drag, so get name of child of parent in Blitmask that is on those mouse coordinates.

Cheers guys

TOPICS
ActionScript
500
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
Community Expert ,
May 13, 2013 May 13, 2013

i don't know about gs' blitmask but, i'd loop through the children of the parent and do hitTestPoint checks.

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
Guest
May 15, 2013 May 15, 2013

Thanks Keith - turns out you can set the bitmap mode to false to access buttons in the blitmask, which is working, so I'll run with that. Cheers mate.

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
Community Expert ,
May 15, 2013 May 15, 2013
LATEST

you're welcome.

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