PDA

View Full Version : Having trouble with this simple blur effect!!!!


doublethink
03-23-2005, 02:22 AM
I found this tutorial on how to blur using easing, but I dont understand the actionscript involved, and therefore cannot reverse it or customize it enough to suit my needs.

heres the link:

http://www.frunder.com/tutorials/flash/blur-effect/flash-blur-effect-tutorial.aspx

and the script:


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



Is there a way to make this automatic without a rollover, with a fade IN from nothing? He seems to be using rollovers as triggers, I'd rather use the timeline itself I guess. And whats that last line about :confused:

Thanks.
-Mike

hognav2t
03-23-2005, 09:38 AM
try this:

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