Thanks, friends.
I think that I'm going to do it in the following way.
(To review, myCustomFunction() resides in the script of button "B". I want to call this function from the script of button "A".)
In my particular application, program control need not return to button "A" after myCustomFunction() is called. Therefore, I'm going to write a mini-handler in the script of button "B" which does nothing but call myCustomFunction()
Code: Select all
on CallMyCustomFunction
put myCustomFunction() into AAA
end CallMyCustomFunction
Then, from the script of button "A", I'm going to call this mini-handler in button "B":
Code: Select all
send CallMyCustomFunction to button "B" of this card
In subsequent projects, however, I think that I will move the functions to the card on which the buttons reside, rather than doing it as I just described.
Thanks again!
---Tom Nally, New Orleans