It sounds like you are trying to create a toggle effect on your button, where you turn something on and the button stays hilited. You can then turn it off and the button hilite returns to false. I use this a lot. uncheck auto hilite in your button properties. then put this code in the button.
Code: Select all
on mouseUp
if the hilite of me is true
then
set the hilite of me to false
else
set the hilite of me to true
end if
end mouseUp
This effect works well with square buttons, but not with push buttons as their hilite state is less obvious.