"scratched-film" buttons

Hey i was just wondering how to make buttons so that when you mosue over them they have the kind of “scratched-film” effect shown in here…

flashkit.com/movies/Interfaces/Sites/e-catalo-ashish-7735/index.php

I’ve attached a little footer I made that has a scratchy type effect on it.

The way you get this effect is to create a couple of single frame movie symbols - I used a line and a splodge - and place them on the Stage, but outside of your movie boundary. Then attach the following code to each:
<i>
onClipEvent(load) {
chanceOfAppearing = 10;
chance = 0;
}

onClipEvent(enterFrame) {
chance++;
if (Random(chanceOfAppearing) < chance) {
this._x = Math.Random()*300;
this._y = Math.Random()*60;
chance = 0;
} else {
this._x = -100;
}
}
</i>
You can change some of the variables like chanceOfAppearing, so that it becomes less or more scratchy.

*Originally posted by Kitiara *
**I’ve attached a little footer I made that has a scratchy type effect on it.

The way you get this effect is to create a couple of single frame movie symbols - I used a line and a splodge - and place them on the Stage, but outside of your movie boundary. Then attach the following code to each:
<i>
onClipEvent(load) {
chanceOfAppearing = 10;
chance = 0;
}

onClipEvent(enterFrame) {
chance++;
if (Random(chanceOfAppearing) < chance) {
this._x = Math.Random()*300;
this._y = Math.Random()*60;
chance = 0;
} else {
this._x = -100;
}
}
</i>
You can change some of the variables like chanceOfAppearing, so that it becomes less or more scratchy. **

ok…cool thanks