# No alpha tween if mouseOut too quickly

**URL:** https://forum.kirupa.com/t/no-alpha-tween-if-mouseout-too-quickly/58162
**Category:** Uncategorized
**Created:** [July 20, 2004, 8:55am UTC](https://forum.kirupa.com/t/no-alpha-tween-if-mouseout-too-quickly/58162 "2004-07-20T08:55:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mmcg\_33](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mmcg\_33](https://forum.kirupa.com/u/mmcg_33)
#### Post date: [July 20, 2004, 8:55am UTC](https://forum.kirupa.com/t/no-alpha-tween-if-mouseout-too-quickly/58162/1 "2004-07-20T08:55:32Z")

</div>

I want to create a button (although I’ve done it by making a Movieclip) that fades in a graphic on rollOver, and out on rollOut.

I’ve created a movieclip that fades from 0% to 100% alpha, and then back to zero.

I’ve then put the following script on the clip…

on (rollOver)  
{  
this.gotoAndPlay(2);  
}

on (rollOut)  
{  
this.gotoAndPlay(11);  
}

It functions ok, but if I roll over and out of the MC too quickly, the graphic stays at 100% alpha, rather than fading back to 0%.

Anyone know how I can overcome this? Would I be better creating a button rather than a Movieclip?

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: [July 20, 2004, 12:07pm UTC](https://forum.kirupa.com/t/no-alpha-tween-if-mouseout-too-quickly/58162/2 "2004-07-20T12:07:59Z")

</div>

Ok, figured it out myself.

turning the Movieclip into a button has solved the problem…

m :drool:
