# Help With Special Effect

**URL:** https://forum.kirupa.com/t/help-with-special-effect/9436
**Category:** flash
**Created:** [December 11, 2002, 8:27pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436 "2002-12-11T20:27:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Kelly\_Nunes](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Kelly\_Nunes](https://forum.kirupa.com/u/Kelly_Nunes)
#### Post date: [December 11, 2002, 8:27pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/1 "2002-12-11T20:27:49Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 11, 2002, 9:10pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/2 "2002-12-11T21:10:23Z")

</div>

You mean the effect in the intro?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 11, 2002, 9:49pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/3 "2002-12-11T21:49:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 11, 2002, 10:02pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/4 "2002-12-11T22:02:32Z")

</div>

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. :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 11, 2002, 10:06pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/5 "2002-12-11T22:06:24Z")

</div>

Ok, thanks electron. I appreciate your help!🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 12, 2002, 12:02pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/6 "2002-12-12T12:02:12Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 12, 2002, 1:42pm UTC](https://forum.kirupa.com/t/help-with-special-effect/9436/7 "2002-12-12T13:42:53Z")

</div>

Well, this is a setInterval based version:

```auto
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 \<:}
