Hi
I think I can see where your headed for.I would use hidden objects to add these variables,Then use on mouse up messages to call whatever variable I wanted to use.
(Button 1) wants to hide (group a) and show (group b)and other objects also wish to also.
So create (hidden object 1)It's set to hide (group a)as an object controller and
create (hidden object 2)It's set to hide (group b)as an object controller then send a
(Mouse up) message from (Buttun 1) to the hidden object or use any other object to
send from.
This way one object can do many things yet each called object does it's own thing.