the two buttons are calling the "pig" command in the button "targetControl".. standard rev way is using send (I guess I could have used dispatch, but the idea is the same).. my way, well, you can see the code [if you can't, the code is posted here as well]
targetControl
Code: Select all
on pig
answer "squeal"
end pig
Code: Select all
send "pig" to control "targetControl"
Code: Select all
targetControl "pig"