# Another blur question - please help me with this script

**URL:** <https://forum.kirupa.com/t/another-blur-question-please-help-me-with-this-script/123812>\
**Category:** Uncategorized\
**Created:** [September 27, 2004, 6:21pm UTC](https://forum.kirupa.com/t/another-blur-question-please-help-me-with-this-script/123812 "2004-09-27T18:21:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectreman](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@spectreman](https://forum.kirupa.com/u/spectreman)\
**Post date:** [September 27, 2004, 6:21pm UTC](https://forum.kirupa.com/t/another-blur-question-please-help-me-with-this-script/123812/1 "2004-09-27T18:21:14Z")

</div>

hello,

how can i modify the following script so the effect works upon image load instead of rollover?? (found the tut [here](http://www.actionscript.org/tutorials/beginner/Blur_transition_effect/index.shtml)

onClipEvent(load)  
{  
dir = 0;  
speed = 6;  
original.\_alpha = 0  
this.onRollOver = function()  
{  
dir = 1;  
}

```
    this.onRollOut = function()
    {
            dir = -1;
    }
    useHandCursor = false;

```

}  
onClipEvent(enterFrame)  
{  
temp = original.\_alpha + speed\*dir;  
original.\_alpha = Math.min(100,Math.max(temp,0));

}

it should obvious, but i’ve tried everything i can think of and it won’t work…

thanks for any help,  
s.
