# Cursor Distance and Alpha

**URL:** https://forum.kirupa.com/t/cursor-distance-and-alpha/195156
**Category:** flash
**Created:** [July 28, 2006, 8:22pm UTC](https://forum.kirupa.com/t/cursor-distance-and-alpha/195156 "2006-07-28T20:22:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ANEWIDEACo](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@ANEWIDEACo](https://forum.kirupa.com/u/ANEWIDEACo)
#### Post date: [July 28, 2006, 8:22pm UTC](https://forum.kirupa.com/t/cursor-distance-and-alpha/195156/1 "2006-07-28T20:22:20Z")

</div>

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! 😃
