# \_parent.onRollOver overwriting onRelease

**URL:** <https://forum.kirupa.com/t/-parent-onrollover-overwriting-onrelease/226540>\
**Category:** flash\
**Created:** [May 22, 2007, 7:13am UTC](https://forum.kirupa.com/t/-parent-onrollover-overwriting-onrelease/226540 "2007-05-22T07:13:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [May 22, 2007, 7:13am UTC](https://forum.kirupa.com/t/-parent-onrollover-overwriting-onrelease/226540/1 "2007-05-22T07:13:45Z")

</div>

Hey everyone,

I have some code similar to this:

```auto

mc1.button.onRelease = function() {
    //do stuff
}
mc1.onRollOver = function() {
     //do stuff
}
mc1.onRollOut= function() {
     //do stuff
}

```

What’s happening is my onRollOver and onRollOut are overwriting my onRelease - the onRelease doesn’t work with the onRollover and onRollOut.

How can I fix this problem?

Any help here would be much appreciated. Thanks. 🙂
