Dynamic function help

I’m trying to fade out objects with the ‘fadeObject’ listener when the mouse is over then, then fade back in.

This isn’t fading back in… :confused: Any ideas how to do this correctly? Flash CS3 - AS3.


function fadeObject(mc:MouseEvent) {
    trace(mc.target.name);
    mc.target.alpha = .70;
    mc.target.count = 30;
    mc.target.onEnterFrame = function (){
    this.count --;
    if (this.count > 10 && this.count <= 20){
    this.alpha = .80;
    } else if (this.count <= 10 && this.count >= 0){
    this.alpha = .90;
    } else {
    this.alpha = 1;
    }
    };
}