Re: Parent group

2010-06-17 Thread Devin Asay

On Jun 17, 2010, at 7:22 AM, Simon Lord wrote:

 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.
 
 Ex:
 
 on mouseDown
  put the short name of parent
 end mouseDown

Hi Simon,

We have a tool to do that; it's just a difference in terminology:

put the owner of object

This will return the name of the group if it's a grouped control, or the name 
of the card if it's not a grouped control.

HTH


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parent group

2010-06-17 Thread Klaus on-rev
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
kl...@major.on-rev.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parent group

2010-06-17 Thread Thierry

Le 17 juin 2010 à 15:22, Simon Lord a écrit :

 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.

Hi Simon, 

What about :

the owner of me
the owner of this button



HTH
Thierry

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution