home   |   about   |   time   |   appearance   |   space   |   other   |   tips & tricks    

Blurry Background

This effect is so easy to create, you won't believe it. Make sure that you have two instances of the Movie Clip with the image in the same place on the stage (on different layers, of course). Click the symbol on top and add the following AS code:

onClipEvent( load ) {
	xx = this._x;
	yy = this._y;
}

onClipEvent( enterFrame ) {
	this._alpha = random(30);
	this._x = xx + 2 - random(5);
	this._y = yy + 2 - random(5);
}

So over a fully visible instance of the clip with the Image, we place another one that moves chaotic but with high transparency so it's almost unnoticeable (ranges from 0 to 29, maximum is 100).

Of course there are many more combinations between motion and transparency that can result to some great effects. These are what we call "light effects", because it's easy to create them, they increase the size of the file with less than one kilobyte and the results are amazing. If you have your own version and you want the world to find out about them, contact us and we will post them on our website.

In the next tutorial you will learn how to manipulate other parameters using randomly generated numbers. Enjoy!

Download .ZIP Download .FLA
< Cool BackgroundLight Worms (I) >