• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Changing color of buttons when pressed

New Here ,
Jan 04, 2021 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

185

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jan 04, 2021 Jan 04, 2021

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

Votes

Translate

Translate
Community Expert ,
Jan 04, 2021 Jan 04, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 06, 2021 Jan 06, 2021

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

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