Cursor Distance and Alpha

Help or a tutorial… Okay, so I have a button (4 of em) and I want it to react to the cursor as it gets closer to the button. How do I make it go from 0% alpha to 100% over a 50 pixel distance?

Thanks in advance! :smiley: