# Removing onRollOver/onRollOut/onRelease

**URL:** <https://forum.kirupa.com/t/removing-onrollover-onrollout-onrelease/216497>\
**Category:** Uncategorized\
**Created:** [February 17, 2007, 2:20am UTC](https://forum.kirupa.com/t/removing-onrollover-onrollout-onrelease/216497 "2007-02-17T02:20:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dualaud](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@dualaud](https://forum.kirupa.com/u/dualaud)\
**Post date:** [February 17, 2007, 2:20am UTC](https://forum.kirupa.com/t/removing-onrollover-onrollout-onrelease/216497/1 "2007-02-17T02:20:33Z")

</div>

hi,

i have this code setup in a frame and after jumping to another frame i would like to remove it because its not needed there. actually its in my way. :puzzle:

the mymc is on one layer with only one keyframe at the beginning and then just frames till the end of my timeline. i attach the mcs dynamically to mymc and then setup my actions on another layer frame by frame, as needed.

in this specific frame i don’t want the mcx’s to react to mouse events.  
how do i do that?

```auto

this.mymc.mc1.onRollOver = function(){
    startDrag(_root.tooltip, true);
}

this.mymc.mc1.onRelease = function(){
    
}

this.mymc.mc1.onRollOut = function(){
    delete home.tooltip.onEnterFrame;
    home.tooltip._alpha = 0;
    stopDrag();
}

```

thank you for your help,:thumb:  
dual
