# E.currentTarget.alpha...?

**URL:** <https://forum.kirupa.com/t/e-currenttarget-alpha/329997>\
**Category:** Uncategorized\
**Created:** [November 15, 2012, 9:50pm UTC](https://forum.kirupa.com/t/e-currenttarget-alpha/329997 "2012-11-15T21:50:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![na\_il](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@na\_il](https://forum.kirupa.com/u/na_il)\
**Post date:** [November 15, 2012, 9:50pm UTC](https://forum.kirupa.com/t/e-currenttarget-alpha/329997/1 "2012-11-15T21:50:14Z")

</div>

For some reason the tween never happens… when I try it this way. I want a simple fade I realy didn’t want to have to use a timer… It works fine with numeric values… but I want it to start fading from the current alpha… Can someone point me in the right direction?

```auto

fadeArray*.addEventListener(MouseEvent.MOUSE_OVER, fadeIn);
    
fadeArray*.addEventListener(MouseEvent.MOUSE_OUT, fadeOut);
    

    
    function fadeIn(e:MouseEvent){
                        
            new Tween(e.currentTarget, "alpha", Strong.easeIn, e.currentTarget.alpha, 0, .5, true);
    
    }
        
    function fadeOut(e:MouseEvent){
            
            new Tween(e.currentTarget, "alpha", Regular.easeOut, e.currentTarget.alpha, 0, 3, true);
                
    }
    
}

```

this also doesn’t work??? It traces the alpha value but it doesn’r change it??? Am I missing something here, can you not change the alpha value in this fashion?

```auto

function fadeIn(e:MouseEvent){
                    
    trace("in" + e.target.alpha);
    e.target.alpha = 1;
}
    
function fadeOut(e:MouseEvent){
        
    trace("out");
    e.target.alpha = 0;
}

```

Thanks
