Hey everyone, i''m new here and wanted to contribute a perfect mouse cursor I came up with while making a point and click adventure. This cursor will remain the same speed as your OS cursor regardless of the framerate.
This cursor is alot better than the drag method as there is no lag and you can drag objects while using the custom cursor.
I've attached the cursor in a flash 8 file, you can simply just copy the cursor movie clip into your movie and it will work without any changes to the code, if you wish to change the graphic and i'm sure you will, just change the art in the first frame of the mc.
== How to make a Perfect Cursor by Alpha eX ==
1. Create a new file in flash or open and existing one.
2. Draw your cursor on the main stage.
3. Highlight the cursor and turn it into a movie clip, set the center point to the top left corner.
4. In the first frame of the movie clip, past the following code:
Mouse.hide();
onMouseMove = function(){
_x = _root._xmouse
_y = _root._ymouse
updateAfterEvent();
}
5. Now test your movie clip.
For the lazy just download my source file and copy the cursor into your movie, update the graphic if needed.
Source: Download
If you need the file in an older format contact me and i'll upload for you.
Enjoy!
Alpha eX