# Telling Different Buttons To Do The Same Then Different Things

**URL:** <https://forum.kirupa.com/t/telling-different-buttons-to-do-the-same-then-different-things/107316>\
**Category:** Uncategorized\
**Created:** [April 14, 2004, 10:45am UTC](https://forum.kirupa.com/t/telling-different-buttons-to-do-the-same-then-different-things/107316 "2004-04-14T10:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jezthomp](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jezthomp](https://forum.kirupa.com/u/Jezthomp)\
**Post date:** [April 14, 2004, 10:45am UTC](https://forum.kirupa.com/t/telling-different-buttons-to-do-the-same-then-different-things/107316/1 "2004-04-14T10:45:31Z")

</div>

[A/S]  
on (rollOver) {  
if (!pressed) {  
gotoAndPlay(“wedding\_camstart”);  
} else {  
gotoAndPlay(“camera\_away”);  
}  
}  
on (rollOut) {  
if (!pressed) {  
gotoAndPlay(“wedding\_camfinish”);  
} else {  
gotoAndPlay(“camera\_away1”);  
}  
}  
on (release) {  
pressed = true;  
gotoAndPlay(“camera\_away1”);  
wedding\_bt.enabled = false;  
}  
[A/S]

Which is a button which has a roll over and roll out and then played goes to a frame label animation called camera away. I want this for six different buttons but when it has palyed the camera away animation i need to it go to different frame labels for each of the six buttons.

Any ideas? I have none ☹
