I would like to replace the little handcursor that appears when hovering over movieclips with buttonMode=true by a custom graphic.
Is there any way to do this globally for my whole application or do I have to go to every single button, add MOUSE_OVER, MOUSE_OUT and MOUSE_MOVE handlers which will hide and show the mouse cursor as well place the handgraphics over it and position it correctly?
seems tedious…
You could write a single set of MOUSE_OVER, MOUSE_MOVE and MOUSE_OUT handlers that do the replacement and positioning as you described but then add listeners to all your buttons that point to these handlers. Remember, the same handlers can be used for multiple objects.
Or alternatively, assuming your ‘buttons’ are MovieClips, you could write a custom ActionScript class that extends MovieClip, defines this default functionality and then have all your button instances use this class as a base. See below:
The key then is to ensure all your buttons are created from this class (either by code or from within the Flash IDE).