Beenden
  • Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

How to make a button stay active in the down state.

Entdecker ,
Dec 11, 2016 Dec 11, 2016

Can someone please tell me how to make a button remain active in the down state in Animate CC.

Link to file below

https://www.dropbox.com/s/ivjuismb3vi1rxf/dan_test_CC11.fla?dl=0

Thanks in advance.

1.5K
Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines

correct answers 1 richtige Antwort

LEGENDE , Dec 11, 2016 Dec 11, 2016

Okay, in Animate, you don't click on a state, you click on a button... which may happen to be displaying a particular state at the time. So apparently what you actually want is a visual toggle of what's in the Down frame of your button clip.

What you need to do is create a movie clip with two frames. The first frame blank and a stop() statement, the second frame whatever you want to display when the button is clicked. Then in the event handler for your button, put some code that checks the curren

...
Übersetzen
LEGENDE ,
Dec 11, 2016 Dec 11, 2016

What do you mean, remain active? Buttons in the down state ARE active.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Dec 11, 2016 Dec 11, 2016

When I click on the down state I want that color of the state to remain when I click away.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
LEGENDE ,
Dec 11, 2016 Dec 11, 2016

Okay, in Animate, you don't click on a state, you click on a button... which may happen to be displaying a particular state at the time. So apparently what you actually want is a visual toggle of what's in the Down frame of your button clip.

What you need to do is create a movie clip with two frames. The first frame blank and a stop() statement, the second frame whatever you want to display when the button is clicked. Then in the event handler for your button, put some code that checks the current frame of the movie clip. If it's in the first frame, go to the second frame. If it's in the second frame, go to the first frame.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Dec 11, 2016 Dec 11, 2016
AKTUELL

Thanks. Is there somewhere I might find a visual example of what needs to occur?

Sent from my iPhone

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines