1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Flash Cursor Spotlight

By

All that remains is to tell Flash to stop dragging when the mouse leaves or stops dragging over the defined area.

on (rollOut, dragOut) {
stopDrag( ) ;
}

This lets the user “escape” by just moving the mouse away from the spotlight area. It also keeps the edges of the rectangle from showing, as long as you’ve made it large enough, because the spotlight will be forced to stop at the stage’s edges when the user’s cursor leaves the Flash movie—it can’t drag it any further beyond.

Try it out here.

©2014 About.com. All rights reserved.