# Fades

**URL:** https://forum.kirupa.com/t/fades/113372
**Category:** Uncategorized
**Created:** [June 17, 2004, 9:11am UTC](https://forum.kirupa.com/t/fades/113372 "2004-06-17T09:11:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![plastik](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@plastik](https://forum.kirupa.com/u/plastik)
#### Post date: [June 17, 2004, 9:11am UTC](https://forum.kirupa.com/t/fades/113372/1 "2004-06-17T09:11:57Z")

</div>

Hello all, n00b here with a question. I’m having trouble with fading a image in, then have it fade out. All I can accomplish is the fade in with out the fade out, or vice versa. Any help would be nice. Thanks!

---

<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: [June 17, 2004, 9:33am UTC](https://forum.kirupa.com/t/fades/113372/2 "2004-06-17T09:33:12Z")

</div>

Hello, n00b 😛

Hehe, sorry…couldn’t resist 😃

Well… here’s a Kirupa tutorial about fading in and out. It’s for text, though, but ought to work the same way!

[http://www.kirupa.com/developer/mx/fadingtext.htm](http://www.kirupa.com/developer/mx/fadingtext.htm)

If you can’t get it work…then attach your .fla here and I guess someone is kind enough to take a look at it. [size=1](I would, but I’m not using mx2004)

:rock:  
[/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: [June 17, 2004, 9:39am UTC](https://forum.kirupa.com/t/fades/113372/3 "2004-06-17T09:39:03Z")

</div>

Hehehe thanks Zak. While you were post this, I had already found the tutorial, created my fade, and was about to post here. lol Thanks though!

---

<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: [June 17, 2004, 9:41am UTC](https://forum.kirupa.com/t/fades/113372/4 "2004-06-17T09:41:42Z")

</div>

Haha, good that you got it worked out! :thumb:

---

<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: [June 17, 2004, 4:28pm UTC](https://forum.kirupa.com/t/fades/113372/5 "2004-06-17T16:28:33Z")

</div>

there is a totally easy way to make fading, create a mc with what you want to fade in and out, on it select Actions and write (or copy/paste ;))

> 

onClipEvent(load){  
fadespeed=10;  
}  
onClipEvent(enterFrame){  
this.\_alpha+=fadespeed;  
if(this.\_alpha\>=100||this.\_alpha\<=0)fadespeed\*=-1;  
}

note: play with the fadespeed variable…
