# Automating buttons

**URL:** <https://forum.kirupa.com/t/automating-buttons/194569>\
**Category:** Uncategorized\
**Created:** [July 24, 2006, 5:38pm UTC](https://forum.kirupa.com/t/automating-buttons/194569 "2006-07-24T17:38:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [July 24, 2006, 5:38pm UTC](https://forum.kirupa.com/t/automating-buttons/194569/1 "2006-07-24T17:38:02Z")

</div>

I am using a animated MC as a button instance to use a effect of sliding in and out on RollOver and RollOut, however I am trying to add buttons within this MC and when I add them they are not triggering. Any ideas?  
Here is my AS: which animates the button tab however the buttons within the MC dont work.

```auto

[LEFT]soundtab.onRollOver = over;
soundtab.onRollOut = out;

function over() {
 this.gotoAndPlay(2);
}
function out() {
 this.gotoAndPlay(15);
}[/LEFT]

```

Any help is greatly appreciated.  
Thanks,  
MT
