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
system
December 11, 2002, 9:10pm
2
You mean the effect in the intro?
system
December 11, 2002, 9:49pm
3
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
system
December 11, 2002, 10:02pm
4
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. :-\
system
December 11, 2002, 10:06pm
5
Ok, thanks electron. I appreciate your help!
system
December 12, 2002, 12:02pm
6
[SIZE=1]working on it…[/SIZE]
system
December 12, 2002, 1:42pm
7
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 <:}