finding the name of the target's stack in a script

Ben Rubinstein benr_mc at cogapp.com
Tue Jul 24 12:22:53 EDT 2012


On 24.07.2012, at 17:33, Dr. Hawkins wrote:
 > I have a handler that needs to handle an event differently depending
 > upon which substack the button calling it is on.

You could use "the owner" to walk up the heirarchy from the target - eg create 
a function "owningStack" which successively gets the owner of its parameter 
(originally the target) until it gets a stack?





More information about the use-livecode mailing list