# Fading a movieclip using ENTER\_FRAME

**URL:** <https://forum.kirupa.com/t/fading-a-movieclip-using-enter-frame/258370>\
**Category:** Uncategorized\
**Created:** [April 23, 2008, 2:03pm UTC](https://forum.kirupa.com/t/fading-a-movieclip-using-enter-frame/258370 "2008-04-23T14:03:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcooper](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@bobcooper](https://forum.kirupa.com/u/bobcooper)\
**Post date:** [April 23, 2008, 2:03pm UTC](https://forum.kirupa.com/t/fading-a-movieclip-using-enter-frame/258370/1 "2008-04-23T14:03:31Z")

</div>

Hi there,

I’m sure this is really obvious but I am trying to fade out a mc using ENTER\_FRAME but not getting anywhere, here is the code I have so far:

```auto
teaPotMC.alpha = 0;

teaPotMC.addEventListener(Event.ENTER_FRAME, beginPour);

function beginPour(evt:Event):void {
    if(teaPotMC.alpha > 100){
        teaPotMC.alpha += 10;
    } else {
        teaPotMC.removeEventListener(Event.ENTER_FRAME, beginPour);
        
    }
}

```

the trouble is that when i set a trace going it seems to be increasing the alpha, but the actual mc does not set itself to 0 it stays at 100%

What am i doing wrong?

Cheers,

Bob
