# Fading in buttons

**URL:** <https://forum.kirupa.com/t/fading-in-buttons/9963>\
**Category:** flash\
**Created:** [December 21, 2002, 9:15pm UTC](https://forum.kirupa.com/t/fading-in-buttons/9963 "2002-12-21T21:15:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ\_LIQUID](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DJ\_LIQUID](https://forum.kirupa.com/u/DJ_LIQUID)\
**Post date:** [December 21, 2002, 9:15pm UTC](https://forum.kirupa.com/t/fading-in-buttons/9963/1 "2002-12-21T21:15:40Z")

</div>

Ok I’ve been trying to figure out how this was done :-\

the buttons at the bottom of the window

[http://www.mixinmarc.com/flash.html](http://www.mixinmarc.com/flash.html)

notice how they fade in and stay on as you highlight them…how is this done?

Ive been trying to make a movie for it and have it fade in when you hover your mouse over it…its not really workin yet :-\

Might anyone know where I can find a tuturial on this? :q:

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:** [December 21, 2002, 10:29pm UTC](https://forum.kirupa.com/t/fading-in-buttons/9963/2 "2002-12-21T22:29:34Z")

</div>

Give me your msn or AIM  
And ill help you and if you dont have one il help you anyWay right here.

Ill have an example at the end of this tut.

(1) Make the button you want but dont convert it to a Button convert it to a MovieClip

(2)Now make a tween of the button fadding in and out.

(3)Now in the first frame of the main timeLine  
put this code

```auto
button.onRollOver = function() {
    _root.button.gotoAndPlay(2);
    button.onRollOut = function() {
        _root.button.gotoAndPlay(21);
    };
};

```

(4)In the buttons Timline put a stop action on first frame and stop action at the last frame.  
Now were the fading in ends put a stop action there to.

If you see the FLA you’ll underStand alot better.

---

<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 22, 2002, 2:37am UTC](https://forum.kirupa.com/t/fading-in-buttons/9963/3 "2002-12-22T02:37:02Z")

</div>

ahhhh ive tried but im stuck ☹

my AIM s/n is DJ LIQUID

---

<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 22, 2002, 2:42am UTC](https://forum.kirupa.com/t/fading-in-buttons/9963/4 "2002-12-22T02:42:45Z")

</div>

```auto
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 5;
if (this._alpha >= 100){
this._alpha = 100;
}

```

heres the code to make a Movie Clip fade in  
(lostinbeta)
