Peter, you can set an instance variable in an action. When you create the action, select your button object, then the Set value action. In the Value field, enter your global variable name.
You can also choose the global variable from the Object with expressions window, under the System object.
Edit: ninja'dWastrel2012-08-14 19:55:01
Don't see the fnords and they won't eat you!