# Making a movieclip fade out! Please help

**URL:** https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463
**Category:** flash
**Created:** [April 13, 2006, 2:59pm UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463 "2006-04-13T14:59:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Pixeladdict](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Pixeladdict](https://forum.kirupa.com/u/Pixeladdict)
#### Post date: [April 13, 2006, 2:59pm UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463/1 "2006-04-13T14:59:19Z")

</div>

I have on my stage different sub menues which Id like to have fade out when I press a certain button.

Thought I could do with \_alpha, but I only fades a certain procentage. Not all the way.

ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000ff]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]\</p\>  
\<p\>\_root.[COLOR=#000080]contact[/COLOR].[COLOR=#0000ff]\_alpha[/COLOR] -= [COLOR=#000080]5[/COLOR];\</p\>  
\<p\> [COLOR=#0000ff]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]\</p\>  
\<p\> [COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]contact[/COLOR].[COLOR=#0000ff]\_alpha[/COLOR] = [COLOR=#000080]0[/COLOR];\</p\>  
\<p\> [COLOR=#000000]}[/COLOR][COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

which I thought would work, but it only fades it 5% add a time.  
how do I make it fade completely?

---

<div class="post-metadata">

### Author: ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)
#### Post date: [April 13, 2006, 3:09pm UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463/2 "2006-04-13T15:09:50Z")

</div>

At last after many months as a newbie and asking for help I can offer something back.

//this will go straight to 0  
[COLOR=royalblue]\_root[/COLOR].contact.[COLOR=royalblue]\_alpha[/COLOR] = 0

//this will fade it with an ease. forgive me as I can’t remember exactly what the numbers represent. The first (0) is the alpha, the second (1) if I recall, is the delay.  
[COLOR=royalblue]\_root[/COLOR].contact.[COLOR=royalblue]alphaTo/COLOR;

For the ease to work you have to download the source.  
[http://laco.wz.cz/tween/?page=download](http://laco.wz.cz/tween/?page=download)

---

<div class="post-metadata">

### Author: ![Pixeladdict](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Pixeladdict](https://forum.kirupa.com/u/Pixeladdict)
#### Post date: [April 13, 2006, 4:15pm UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463/3 "2006-04-13T16:15:30Z")

</div>

okay…

so I have downloaded this.

easing\_equations.as  
lmc\_tween\_as1.as

how do I use them ???

---

<div class="post-metadata">

### Author: ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)
#### Post date: [April 13, 2006, 4:20pm UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463/4 "2006-04-13T16:20:39Z")

</div>

Once the file is in your Flash download manager, which should be automatic once downloaded. Paste this code at the top of you AS where you intend to use the ease.

#include “lmc\_tween.as”

---

<div class="post-metadata">

### Author: ![Pixeladdict](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Pixeladdict](https://forum.kirupa.com/u/Pixeladdict)
#### Post date: [April 13, 2006, 5:22pm UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463/5 "2006-04-13T17:22:12Z")

</div>

> [@Claire\_murphy](#):
>
> Once the file is in your Flash download manager, which should be automatic once downloaded. Paste this code at the top of you AS where you intend to use the ease.
> 
> #include “lmc\_tween.as”

okay - this works. thats great. Thanks so much!

---

<div class="post-metadata">

### Author: ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)
#### Post date: [April 14, 2006, 8:20am UTC](https://forum.kirupa.com/t/making-a-movieclip-fade-out-please-help/185463/6 "2006-04-14T08:20:31Z")

</div>

No probs. Glad I could be of some help. It’s only thanks to all the guys on here that have helped me.
