Help With Special Effect

Hey Folks,

It’s me again with another Flash MX question! I am trying to create and effect somewhat similar to the one at the following website:

http://www.samjons.com

I was wondering if anyone out there would know how to create such an effect. If so, please write me to let me know how this can be done.

Happy Flashing!

Kelly

You mean the effect in the intro?

Yup, the effect in the intro. The fading in and out of the squares and such. If you can help I would appreciate it.

Thanks,

Kelly

I know the images and the text could be done with tweens and fades, but as for the squares, my actionscripting skills have not reached that level, maybe pom can help you kelly. sorry. :-\

Ok, thanks electron. I appreciate your help!:slight_smile:

[SIZE=1]working on it…[/SIZE]

Well, this is a setInterval based version:

cols=3;
rows=3;
squareWidth=50;
freqAv=300;
depth=0;

MovieClip.prototype.fadeIn = function (){
	clearInterval(this.theInterval);
	this.onEnterFrame=function(){
		if (this._alpha < 100 ){
			this._alpha+=20;
		}
		else {
			this._alpha=100;
			delete this.onEnterFrame;
			this.theInterval=setInterval(this,"fadeOut",Math.random()*freqAv);
		}
	}
}
MovieClip.prototype.fadeOut = function (){
	clearInterval(this.theInterval);
	this.onEnterFrame=function(){
		if (this._alpha > 0 ){
			this._alpha-=10;
		}
		else {
			this._alpha=0;
			delete this.onEnterFrame;
			this.theInterval=setInterval(this,"fadeIn",Math.random()*freqAv);
		}
	}
}
for (var i=0;i < cols;i++){
	for (var j=0;j < rows;j++){
		mc=this.attachMovie("square","s"+i+"_"+j,depth++);
		mc._alpha=0;
		mc._x=i*squareWidth;
		mc._y=j*squareWidth;
		mc.theInterval=setInterval(mc,"fadeIn",Math.random()*freqAv);
	}
}

You need a square movie clip (50*50 ) with the linkage identifier square in the library.

pom <:}