Line block effect over images

Hi all, I am interested in applying a simple effect to images on my site. On many sites, they have an effect that is placed over the top of an image, where long rectangles a randomly moving from left to right.

They have varied opacity which is simple enough but I would very much like to know the method for doing something similar to this, can anyone help me out with the action script side of things or provide me with a link to a tutorial

Cheers

Put a clip on your scene, name it cl and then put this is the frame action panel:

// boundaries
left = 0 ;
right = 300 ;

cl.onEnterFrame = function () {
var dx = this.tx - this._x ;
this._x += dx / 5 ;
if (Math.abs(dx) < 5) {
this.tx = random (right - left) + left ;
}
}

That’s just an example, you could have any kind of motion.

pom :slight_smile:

Thanks for that Pom, I will give it a try, I guess this can be applied to multiple rectangle objects? and is this an effect just from left to right? I am guessing yes as the effect is on the x axis. How would I apply this to multiples?. I am sure you have seen this effect on many sites, just adds interest over the image I guess, and thanks for your reply Pom