1. Home
  2. Computing & Technology
  3. Animation

Flash Cursor Spotlight Revisited

By , About.com Guide

8 of 9

Now, of course, the last thing to do is assign the actions that will move the spotlight with the mouse. We’re going to use the exact same ActionScripts as the first type of spotlight, but referencing a different instance name:

on (rollOver, dragOver) {
startDrag(“_root.light”) ;
}

This, just like last time, tells Flash that it should start dragging the symbol on the root level named “light” whenever the mouse rolls over the symbol, or drags over it (rolls over it with the left mouse button depressed). If you want the mouse cursor to automatically snap to the center of the symbol (this can make things a bit more intuitive for the end user), check off “Lock mouse to center” on the options displayed in Normal Mode.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Cursor Spotlight Revisited

©2009 About.com, a part of The New York Times Company.

All rights reserved.