Changing color of buttons when pressed

New Here ,
Jan 04, 2021

Copy link to clipboard

Copied

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

TOPICS
How to

Views

65

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

1 Correct Answer

Adobe Community Professional , Jan 04, 2021
kglad Adobe Community Professional , Jan 04, 2021
use a movieclip button so you can control its states with code.

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Jan 04, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Jan 06, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
kglad LATEST
Adobe Community Professional ,
Jan 06, 2021

Copy link to clipboard

Copied

among the ways, you can select the on-stage button and in the properties panel, change from button to movieclip

 

include.png

 

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.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more