Custom Cursors
November 13th, 2006 by awesty
In this tutorial you will learn how to make a custom cursor in flash using actionscript.
I am using Flash 8, but Flash MX 2004 will work as well. Any other versions won’t.
Thanks for taking the time to view the tutorial. If you have any questions just post them below.
You can find more tutorials here.
Filed under Flash Tutorials















theres no tutorial?! o_O or am i being an idiot? the arrow doesnt work lol
Yah the next buttons didn’t work for me, I ended up right-clicking and hitting ‘forward’.
Well it is working fine for me. Try clicking with the middle of the cursor, instead of the point.
Oh. That’s what was wrong. It’s just that the arrow is a little big.
No it is not big you guys are stupid it is that his arrow isnt center the tip you can click the buttons i did u just have to click from the center
like a made a finger poniting a place how can i change the animation when i click it?
Handy tutorial.
To the fellow who called everyone stupid, a little punctuation and grammar go a long way when you want to call OTHERS stupid.
Make a button and change the down state.
thanks
How come the instructions wont show up??
Make actionscript to hide the cursor.
@Ally: Do you have the latest flash player?
@HMMM: It is already in the tutorial.
about the whole cursor poin deal… its really pretty easy to fix
when you get it together double click on the cursor and you’ll see 4 really tiny arrows pointing to the center of the image (thats the cursor point)
so select the image and drag it until the point is where you want it
hope it helps!
Yeah, lol. I knew that. I should have put it in the tutorial though. Thanks for sharing that with us.
no problem glad to help
gd tut
how do you animate the cursor?
Just make the MC have an animation inside it.
will this action script work?
onClipEvent (enterFrame) {
this._y = _root._ymouse;
this._x = _root._xmouse;
Mouse.hide();
}
Well… yeah, thats why it is in the tutorial.
hey guys, to make it click in the upper left hand corner, when making it a movie clip for the currsor, put the registration to the upper left corner
i agree with Jake
Hey, the buttons don’t work! Is this a joke or something??? But thanks for the other tutorials… anyway
It does work, you just have to click with the upper middle of the cursor, not the tip.
Works for me!
Well Awesty i know how to make it so you can click on the tip of the cursor.
Well you know when you use the black mouse icon then double click on it you know that thing that looks link + move the cursors point right at the tip of the + example : you put it right in the middle of the + i hope this helps your tutorial.
The black mouse icon is used for flash pro 8 well you know that tutorial you made for battling with that punch bag the cursor is like then guy if you go like inside of the movie clip their are more frames in stuff but the cursor is just one well a simple way to say it is
If you want to make a button with the hit and over and stuff like that it’s like going on to a button like that but a cursor. 1 thing it annoys me when you play a game with a cursor you made because as soon as you take of your cursor from your game it flashes or disappears if you know a way to stop that put it in the tutorial.
sorry if you knew what i meant
Hey i figured out it only disappears and flashes on the internet but if you go to your desk top it is fine , weird eh?
@Kurt: Yea, thanks but I already knew that. And Im pretty sure a few people have already posted it here aswell.
There is a way around that, but if it was hidden completely how would anyone get out of the game?
Simple and very helpful! Thanks awesty xD
0 lol didn’t see jakes comment lol.
hey, how do you make it so that you can click with the cursor…to make the movieclip do something…
for example my mc is an aimer, and inside it i have a gunshot noise. i want to make it so when the mouse clicks, it plays my movieclip, and you hear the noise…
as always a mad tute….
@Sam:
on(release){
//Do Something
}
cool thanks man…..and by the way, you r like the best….how do u say “tutorialist” I’ve seen… and you answer questions right away…i saw this other dude that hasn’t looked at his comments for ages and ages…so keep the good stuff coming! :p
sam.
wait wait…..so for my movie clip…what would the full script be?
Thanks.
Well there are two ways you could do it. The most simple way is to have the gunshot sound start on the second frame of the MC, and on the first have a stop(); action.
Then on the MC you could put:
on(release){
this.gotoAndPlay(2);
}
And then it would play the gunshot.
Make sure you have enough frames in the MC for the sound to finish though. Otherwise you might only here half the gunshot.
hmmm…..there was no errors…the mouse hid and the cursor worked fine but when i clicked there wasn’t any sound… so like the whole entire code on my movie clip…would it be
onClipEvent (enterFrame) {
Mouse.hide();
startDrag(this, true);
}
on (release) {
this.gotoAndPlay(2);
}
??
please tell me the whole code…:)
and also..when i put my sound in it comes up as 3 or 4 frames of just no sound…like just a straight line so my sound is a bit delayed…even though i edited it
sam….:P
:D:P:)
@Sam: I will try and do a tutorial on sound later today.
This may be too late for some of you, but to make the cursor respond how it should (I mean clicking with the up-left “corner” of it) you might try entering the cursor MC itself(with a double-click at the “stadium” or whatever you call the workplace) and selecting it entirely, and then moving it down and right until the “corner” is at the center(the white mark shows you the center). Test it. Another possibility is to select the upper-left registration point when you are in the middle of the tutorial, but if you already finished it, then I suggest the first way.
Hope it helps.
Lol I was going to try this tut again but I forgot I was on my linux half of my computer lol. Oh ya I got WINE forgot.
hey cool I just noticed when I say lol I tag my sentance with it
nvm i have cross over but there is not much of a differnce