# How 2 make it fade?

**URL:** <https://forum.kirupa.com/t/how-2-make-it-fade/33710>\
**Category:** flash\
**Created:** [October 22, 2003, 6:30pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710 "2003-10-22T18:30:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tha\_Ripper](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tha\_Ripper](https://forum.kirupa.com/u/Tha_Ripper)\
**Post date:** [October 22, 2003, 6:30pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/1 "2003-10-22T18:30:36Z")

</div>

Hellow masters!  
I want the black shadow to fade out on mouse over & go back to normal on mouse out! It seems pretty easy but I cant work with the actionscripts so plz help me!  
Thx

on (rollOver) {  
\_alpha =“0”;  
}  
on (rollOut) {  
\_alpha =“100”;  
}

plz adapt 🙂

---

<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:** [October 22, 2003, 6:31pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/2 "2003-10-22T18:31:38Z")

</div>

Hey landgenoot 😉

Are you using it for a button or a movieclip ?

---

<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:** [October 22, 2003, 6:35pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/3 "2003-10-22T18:35:41Z")

</div>

Haai

for MC, its a cover for a background  
the background will apear when you roll over with the mouse

---

<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:** [October 22, 2003, 6:38pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/4 "2003-10-22T18:38:44Z")

</div>

Ok, use this on the timeline your movieclip is in:

```auto

mc.onRollOver = function(){
this.onEnterFrame = function(){
this._alpha > 0 ? this._alpha -= 10 : delete this.onEnterFrame
}
}
mc.onRollOut = function(){
this.onEnterFrame = function(){
this._alpha < 100 ? this._alpha += 10 : delete this.onEnterFrame
}
}

```

---

<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:** [October 22, 2003, 6:47pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/5 "2003-10-22T18:47:17Z")

</div>

hmmm… It doesn’t seem 2 work

---

<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:** [October 22, 2003, 7:29pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/6 "2003-10-22T19:29:42Z")

</div>

I’m sure it works … are you sure you gave your movieclip the correct instance name ?

---

<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:** [October 22, 2003, 7:35pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/7 "2003-10-22T19:35:14Z")

</div>

can I send you the .fla by mail, so you have a better idea of what I mean? I tried to put it on the forum but it was too big

---

<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:** [October 22, 2003, 7:41pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/8 "2003-10-22T19:41:09Z")

</div>

Sure, voetsjoeba[at][hotmail.com](http://hotmail.com) 🙂

---

<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:** [October 22, 2003, 7:54pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/9 "2003-10-22T19:54:12Z")

</div>

Hey Voets! I was just helping another dude out with the same problem! 😛

I referred him to the same script you helped me out with not too long ago and then this one after I found it. You say it so much better than I can!

---

<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:** [October 23, 2003, 9:09am UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/10 "2003-10-23T09:09:08Z")

</div>

Voetsjoeba has found a way & it works real fine!

---

<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:** [October 23, 2003, 3:31pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/11 "2003-10-23T15:31:58Z")

</div>

i used the method by voets and it worked for an object, but when i put text in the mc, it wouldn’t work, anyone know why?

---

<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:** [October 23, 2003, 4:04pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/12 "2003-10-23T16:04:40Z")

</div>

& what if you make an MC of the text :-\ ?

---

<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:** [October 23, 2003, 4:05pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/13 "2003-10-23T16:05:17Z")

</div>

thats what i did, i made a mc of the text ☹

---

<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:** [October 23, 2003, 4:42pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/14 "2003-10-23T16:42:09Z")

</div>

try breaking the text apart inside of the movie clip. that usually does the trick

---

<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:** [October 23, 2003, 5:41pm UTC](https://forum.kirupa.com/t/how-2-make-it-fade/33710/15 "2003-10-23T17:41:57Z")

</div>

You can not animate dynamic texts without embedding the font outlines. If you don’t really require the text to be dynamic, you can either break it apart, or make the text static 🙂
