Skip to main content
May 13, 2013
Question

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

  • May 13, 2013
  • 1 reply
  • 522 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 13, 2013

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

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.

kglad
Community Expert
Community Expert
May 15, 2013

you're welcome.