# onRollOver Blur Actionscript Help Plz!

**URL:** https://forum.kirupa.com/t/onrollover-blur-actionscript-help-plz/212693
**Category:** Uncategorized
**Created:** [January 13, 2007, 5:06am UTC](https://forum.kirupa.com/t/onrollover-blur-actionscript-help-plz/212693 "2007-01-13T05:06:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michael1](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@michael1](https://forum.kirupa.com/u/michael1)
#### Post date: [January 13, 2007, 5:06am UTC](https://forum.kirupa.com/t/onrollover-blur-actionscript-help-plz/212693/1 "2007-01-13T05:06:29Z")

</div>

Sup All //

Alright, my **background** currently has the following code.

```auto

onClipEvent (load) {
    dir = 0;
    speed = 4;
    original._alpha = 0;
    }

this.onRollOver = function() {
        dir = 1;
    };
    this.onRollOut = function() {
        dir = -1;
    };
onClipEvent (enterFrame) {
     useHandCursor = false;
    temp = original._alpha+speed*dir;
    original._alpha = Math.min(100, Math.max(temp, 0));
}

```

When I rollover buttons, or the menu it blurs into the background. Well this is all nice and jim-dandy, however too much is “too much”. What I would NOW like it to do, to “tone” it down, is only have it do the rollOver fade when I access my menu which has an instance name of menu\_mc

So I than tried the following code.

```auto

onClipEvent (load) {
    dir = 0;
    speed = 4;
    original._alpha = 0;
    }
onClipEvent (enterFrame) {
    _root.menu_btn.onRollOver = function() {
        dir = 1;
    };
    _root.menu_btn.onRollOut = function() {
        dir = -1;
    };
    useHandCursor = false;
    temp = original._alpha+speed*dir;
    original._alpha = Math.min(100, Math.max(temp, 0));
}

```

I also placed it in it’s own onClipEvent (enterFrame) before the alpha statement etc… but that didn’t work either. So I’m stuck. ☹ Please help me.

Also, this is where I got the code from.  
[http://www.actionscript.org/resources/articles/38/1/Blur-transition-effect/Page1.html](http://www.actionscript.org/resources/articles/38/1/Blur-transition-effect/Page1.html)

They also have an added section, showing that if you want to have this effect triggered by a certain button, mc on stage, to add the appropriate code. However it’s not working 😕
