_ymouse and _alpha?

Hi

I have a Mc named globalNav_mc and what I’m trying to do is get the _alpha of that clip to increase and decrease in relation to the _y position of the mouse but in in increments

So for example as the _ymouse gets closer to 0 the clips _alpha will get closer to 100 and the further away the clips _alpha will get closer to 0, its getting the _alpha to go up in increments that I’m having trouble with, any pointers would be a great help, this is what I have so far

 var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
trace(_ymouse);
    if (_ymouse > Stage.height/2) {
        globalNav_mc._alpha = 50;
    } else if (_ymouse< Stage.height/2) {
        globalNav_mc._alpha = 100;
    }
    
};
Mouse.addListener(mouseListener); 

Cheers

manny