Buttonstatechanged problem with flashbuttonstate call

Help. I have a custom button extended from drawablebutton. I am making the changes to the face of my button based on buttonstatechanged. it works fine except for the additional state changed caused by calling flashbuttonstate in mouseup. causes buttonstatechange with buttonDown. How can I avoid this. or is there a better way to manage the button state in my button?

Thanks