the target
Jacques Hausser
jacques.hausser at unil.ch
Sun Sep 16 02:48:10 EDT 2012
Le 16 sept. 2012 à 02:57, Mark Smith <Mark_Smith at cpe.umanitoba.ca> a écrit :
> Ok, thanks Mike and Pete. I understand what is going on now. So I guess the
> best (and only?) way to keep track of this is:
>
> on mouseup
> stuff the name of the button in a global variable
> go stack test
>
> then in "test" retrieve the button name from the global variable.
> Doesn't sound too complicated but I was trying to see if there was a cleaner
> way than using a global.
>
> Cheers,
>
> -- Mark
or you can use a custom property
button:
on mouseUp
set the triggerButton of stack "mySubstack" to the short name of me
go to stack "mySubstack"
end mouseUp
and in mySubstack's script
on preOpenStack
put the triggerButton of me into tButton
switch tButton
case… etc, etc
Jacques
******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel: ++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.hausser at unil.ch
*******************************************
More information about the use-livecode
mailing list