Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
you can use the visible property or removeChild() method for that.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
if a button reappears after removeChild has been used, the button is re-added to the display either in the ide or with code.
Copy link to clipboard
Copied
Thank you dear for helping me
It works removeChild it removes one button
What I need is to remove the buttons used
I will enclose a file if it is possible to modify it and type the code
Link to file
http://www.mediafire.com/file/sdqccxw65q1rhym/RECOVER_Untitled-1_2017416163634.fla
Copy link to clipboard
Copied
i don't download and correct files unless i'm hired.
free help i offer via the adobe forums, only.
in your button's listener function(s), apply removeChild(e.currentTarget), where e is the mouse event.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now