# Help Needed to edit buttons

**URL:** <https://forum.kirupa.com/t/help-needed-to-edit-buttons/214585>\
**Category:** Uncategorized\
**Created:** [January 30, 2007, 11:48am UTC](https://forum.kirupa.com/t/help-needed-to-edit-buttons/214585 "2007-01-30T11:48:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman1985](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@aman1985](https://forum.kirupa.com/u/aman1985)\
**Post date:** [January 30, 2007, 11:48am UTC](https://forum.kirupa.com/t/help-needed-to-edit-buttons/214585/1 "2007-01-30T11:48:19Z")

</div>

Friends,  
I have downloaded an attachment, it has a button menu created with flash. Its having 4 buttons, but I need six, so I have duplicated the buttons and edited the text. But the problem is, it has a rollover animation. Which when clicked stops, from the buttons I copied the two also stops the animation when clicked on the duplicated buttons. Please help me, I am writing down the scripts, may that help you…

> switch (\_root.button) {  
> case “1”:  
> item1.gotoAndPlay(“s1”);  
> \_root.link\<\>1;  
> break;  
> case “2”:  
> item2.gotoAndPlay(“s1”);  
> \_root.link\<\>2;  
> break;  
> case “3”:  
> item3.gotoAndPlay(“s1”);  
> \_root.link\<\>3;  
> break;  
> case “0”:  
> \_root.link\<\>0;  
> break;  
> }

The scripts are same on both buttons, will editing them help to differentiate the button animation control?
