AS:MAIN, ITS GOOD ENOUGH TO WRITE IN ALL CAPS!
Hi, Sam Goldfield here. Today I'm going to be teaching custom cursors, in a different way that I think is better than Ian00's
Before you do this tutorial, you should know X and Y
Anyway, Step One:
Example of Cursor Draw a cursor in a flash document. Select the whole cursor and press "F8". You may name it anything, preferably cursor so it is easier to find. This is IMPORTANT! Make sure that the registration point, that grey box at the bottom right, has the top left box selected. Otherwise the cursor will feel akward. Now that the basics is done, time to move on.
Continuing Step One, Step Two:
Select your cursor and click "F9". This opens up it's actions. First, we want it to happen when it enters the frame, so there is no delay, so we put:
onClipEvent(enterFrame){
It happens to a movieclip when it enters the frame, immediately. This begins most actions that are put on movieclips or graphics. It begins the form, It being the beginning and the material next the body. Now that we have that, we need to think of what we want it to do. We want it to copy the movieclip's exact X and exact Y. To do this, we should probably use:
_x=_root._xmouse
_y=_root._ymouse
Now that that is ready, we should think what is needed. The mouse has to be hidden of course! So, how we do this seems very simple if you look at it:
Mouse.hide();
There, now we are done. WRONG! We have not finished with the closing of this action. So at the end of all of this, add a:
}
I hope this tutorial has helped, and for all you script wh0res:
onClipEvent(enterFrame){
_x=_root._xmouse
_y=_root._ymouse
Mouse.hide();
}
But seriously, don't be a script wh0re. It's just showing us that you don't care for all of our work and won't give the effort to learn. I spent a while on this and I don't want to see it wasted.
Enjoy your day! :D