Hello, I am currently working on a project where I want buttons colors to be changed to the background color, so that it creates an effect where the button vanishes once pressed. I have had success with the over state of the button, but when pressed the button will not change color and then stay on that color
use a movieclip button so you can control its states with code.
How do I change a normal button into a movieclip button?
among the ways, you can select the on-stage button and in the properties panel, change from button to movieclip
but i think it's less confusing to just create a new empty movieclip and then copy the button frames to the movieclip frames, label the movieclip frames, write your code and then replace the button with the movieclip button. be sure to aded a stop() to the movieclip's first frame.