The aim of the tutorial is to learn how to change the standard arrow cursor to one of your own.
Place your cursor in the Movie. Your arrow disappears and the spiral becomes your cursor.
Grab the flowers... Oh no you can't!
Roll over flowers and hand closes, click and flowers move.
Step One: Create the cursor
First you need a picture that will replace the cursor.
- Go to Insert > New Symbol
- In the dialogue box give your symbol a name
- Select Movie Clip as the behavior.
- Click OK.
- You must now create some sort of image that will replace the cursor. There are many ways of doing this in flash, the simplest being to draw one with the paint brush. But you could insert a Jpeg/Gif. Alternatively you could copy and paste a drawing from another program such as Illustrator or Freehand or copy and paste some clip art from Word. However you do it, you must create a picture inside your new symbol.
Important Note: The picture or drawing that you create must be in the centre of the Symbol. If it is not in the centre it will not align correctly. The 'click' point of your new cursor will be the cross hair in the centre of the symbol.
Note that the cross hair is at the point you would want to click with.
- When this is done return to the main stage by clicking on the Scene 1 Tab
. You will return to the main stage, which should be empty. - Click on Window > Library. Your symbol should be in the library.
- Drag your symbol onto the main stage. The position of the symbol does not matter.
Step Two: Assigning an action to the symbol
- Right click (Mac - control click) on the instance of the symbol on stage and select Actions.
- Select Normal Mode from the View Options button
. - Click on the Plus button
. - Select: Actions > Movie Clip Control > onClipEvent.
- In the options above select Enter Frame.
- Click on the Plus button
. - Select: Actions > Movie Clip Control > Start Drag.
- In the options go to target and type: this
- In the options select the target as an Expression.
- In the options select Lock mouse to centre.
Your script and options should look like this.
Step three: Hiding the cursor
- Right click on frame 1 and select Actions (ie: if the Actions box is closed - if the Actions box is open just click on frame 1 to select it).
- Click on the Plus button
. - Select: Objects > Movie > Mouse> Methods > hide.
Your script should look like this:
Mouse.hide();
It's that simple, you are now done so save and test your movie.

10 Random Flash Tutorials :
10 Random FlashPerfection.com Tutorials:


