Skip to main content
Participant
January 4, 2021
Answered

Changing color of buttons when pressed

  • January 4, 2021
  • 1 reply
  • 377 views

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

This topic has been closed for replies.
Correct answer kglad

use a movieclip button so you can control its states with code.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 4, 2021

use a movieclip button so you can control its states with code.

Participant
January 6, 2021

How do I change a normal button into a movieclip button?

kglad
Community Expert
Community Expert
January 6, 2021

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.