Parent group

Klaus on-rev klaus at major.on-rev.com
Thu Jun 17 08:44:07 CDT 2010


Hi Simon,

> In flash there was the notion of asking for the name of _parent to get
> the ID or name of the container movieClip.  I have a scenario where I
> would like to poll a button within a group to tell me which group it's
> in.
> 
> The long way would be to get the long name of target, filter it for a
> string, get the first name in quotes to the right of it etc etc.
> 
> But I'm hoping there is something quicker.

try "the owner" of that button!

on mouseDown
   put the owner of the target
end mouseDown


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com




More information about the use-livecode mailing list