First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Ryan Scott | Website: http://xnux.deviantart.com
Okay, we are going to learn how to make simple cursors. For example, crosshairs in shooting games, hands in grabbing games, etc. First, draw your cursor and convert it into a movieclip. Then double click it, and move the picture (if neccessary) around so that the little cross is at the area of the cursor where you want it to click. Now go back, and give the cursor the following actionscript: onClipEvent(enterFrame) { this._x = _root._xmouse; this._y = _root._ymouse; } This script tells Flash that on the Frame it is in to follow the mouse. Now on the frame(s) that the cursor is in, type in the following actionscript: Mouse.hide(); This tells Flash on those frames to hide the mouse. It'll still work, but you just won't see it. If you want to make the mouse reappear on a frame, give the frame this actionscript: Mouse.show(); Obviously, this script makes the mouse reappear. That's all there is to it! (note: you probably want to put the cursor on the very top layer so that it shows on top of everything.)
» Level Basic

Added: 2005-03-17
Rating: 6.05 Votes: 21
(10 being the highest)
» Author
I am not the best Flash creator in the world, but I know quite a bit of useful information.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.