Skip to main content
Participant
April 16, 2017
Question

List of buttons in Animation cc

  • April 16, 2017
  • 1 reply
  • 642 views

Hi guys

I hope one helps me in Animation cc

I have a set of buttons when you click on one of them and move a certain frame when you return to the list of buttons. I want the button you press to disappear from the list and also when you press any button and the navigation disappears from the list.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 16, 2017

you can use the visible property or removeChild() method for that.

Participant
April 17, 2017

thank you my friend

When using removeChild it removes the button that is correct

But when you use another button in the menu, the button reappears.

For example

I have four buttons when pressing the number one button to go to a specific frame and I do not want it to appear and when I go back and choose the number three button and go back to the list of buttons to disappear the buttons that have already been pressed and when I choose the number button four and the buttons disappear and the button remains two.

I hope to help and thank you

kglad
Community Expert
Community Expert
April 17, 2017

if a button reappears after removeChild has been used, the button is re-added to the display either in the ide or with code.