# What did i just do? fade effect

**URL:** https://forum.kirupa.com/t/what-did-i-just-do-fade-effect/35297
**Category:** Uncategorized
**Created:** [November 12, 2003, 2:17pm UTC](https://forum.kirupa.com/t/what-did-i-just-do-fade-effect/35297 "2003-11-12T14:17:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ikane\_marshal](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@ikane\_marshal](https://forum.kirupa.com/u/ikane_marshal)
#### Post date: [November 12, 2003, 2:17pm UTC](https://forum.kirupa.com/t/what-did-i-just-do-fade-effect/35297/1 "2003-11-12T14:17:50Z")

</div>

i nwas just playing around with the fading grid effect when i somehow made the thing have a memory.  
First thing i did was of course create a grid covering the whole stage but instead of running the fade function from the timeline i placed a rollover function on the original square  
(oh by the way the grid occurs within a movie clip called mbox)  
within mbox that would decrease its alpha by 50 per frame  
however after a while the boxes that faded start reappearing in the same order as they originally appeared  
maybe my Flash is messed or my computer (i doubt) or i did a cool effect by mistake  
anyway i am attaching the .fla for u to see whats wrong(or rather whats right) with it its called memory.fla  
any help is appreciated coz i would like to repeat this again

---

<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: [November 12, 2003, 2:22pm UTC](https://forum.kirupa.com/t/what-did-i-just-do-fade-effect/35297/2 "2003-11-12T14:22:32Z")

</div>

the commenting on the script isnt too good, 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: [November 12, 2003, 2:34pm UTC](https://forum.kirupa.com/t/what-did-i-just-do-fade-effect/35297/3 "2003-11-12T14:34:19Z")

</div>

Well, this is whats happening, you are assigning an onEnterFrame event to the box like this

```auto

_root.mbox["box"+mcnr].onEnterFrame = function() {
		_root.mbox.box._alpha -= speed*2
		_root.mbox["box"+mcnr]._alpha -= speed;
		if (_root.mbox["box"+mcnr]._alpha<=smoothness) {
			_root.mbox["box"+mcnr].onEnterFrame = null;
			continueFade(_root.mbox["box"+mcnr], speed);
			mcnr += 1;
			fadeOut(mcnr, speed);
		}

```

and it just keeps subtracting the alpha until you go over the minimum alpha, and then the box pops back into visablity. I would check your code for removing the onEnterFrame event or something.

---

<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: [November 12, 2003, 2:49pm UTC](https://forum.kirupa.com/t/what-did-i-just-do-fade-effect/35297/4 "2003-11-12T14:49:26Z")

</div>

that worked though i think i am not going to change it

thnx alot
