Page 1 of 1
Custom Global Functions/Handlers
Posted: Thu Jun 04, 2020 2:31 am
by wmiriye
I have a function that I don't want to write for every single card. How do I make that functions/handler global and then call it on each card.
Re: Custom Global Functions/Handlers
Posted: Thu Jun 04, 2020 2:36 am
by anmldr
You can put the script in the stack's script rather than having it as a card script. (I think. I am a newbie too.)
Linda
Re: Custom Global Functions/Handlers
Posted: Thu Jun 04, 2020 2:41 am
by wmiriye
ok, will try that. Thanks.
Re: Custom Global Functions/Handlers
Posted: Thu Jun 04, 2020 9:12 am
by Klaus
Linda is correct!

Re: Custom Global Functions/Handlers
Posted: Thu Jun 04, 2020 1:48 pm
by dunbarx
Try this, Make a new stack with several cards. In the stack script:
Code: Select all
on openCard
put the number of this card
end openCard
Press cmd-2 several times (on a Mac) and watch the message box.
Craig