# MC Button Actions

**URL:** <https://forum.kirupa.com/t/mc-button-actions/212790>\
**Category:** flash\
**Created:** [January 14, 2007, 10:49am UTC](https://forum.kirupa.com/t/mc-button-actions/212790 "2007-01-14T10:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wahiche](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wahiche](https://forum.kirupa.com/u/wahiche)\
**Post date:** [January 14, 2007, 10:49am UTC](https://forum.kirupa.com/t/mc-button-actions/212790/1 "2007-01-14T10:49:04Z")

</div>

```auto
events.onRollOver = function() {
    events.events_txt.textColor = 0xFFFFFF;
};
events.onRollOut = function() {
    events.events_txt.textColor = 0x000000;
};
events.onRelease = function() {
    events.events_txt.textColor = 0xFFFFFF;
}

```

I have these three actions associated with my MC. The problem is that when click then roll off the colour will change so I added this "

```auto
delete events.onRollOut;

```

" to the onRelease function so that it would not invoke the onRollOut and change the colour.

But what happens then is that if I change sections or try to rollover again the RollOut is now deleted and I cannot change it back.

So my question is how do I make this work? How can I reactivate the onRollOut action?

Thank you.
