I have a button with a mouseover, mousedown, and mouseup stage. When the mouseup has been set I want it to stay that way when the mouseLeave is performed. The only way it will change is if another button is clicked. For the other two states however, I want it to revert back to the original state. Does anyone know how to do this? I tried an if-else statement (among many other things) but to no avail. When using the if-else seen below I keep getting the output of the 'else' statement even if the 'if' part is true. Thanks for any help!
on mouseLeave
if the mouseMember = member "play_button_pressed1" then set the member of sprite 3 to "play_button_presssed1"
else set the member of sprite 3 to "play_button1"
end if
end
on mouseLeave
if the mouseMember = member "play_button_pressed1" then set the member of sprite 3 to "play_button_presssed1"
else set the member of sprite 3 to "play_button1"
end if
end