0% found this document useful (0 votes)
71 views2 pages

Creating A Custom Cursor in Flash 8

This tutorial shows how to create a custom cursor in 3 steps: 1) Draw a shape for the cursor, such as a magic wand. 2) Convert the drawing to a symbol called "wand". 3) Add actionscript to the symbol to hide the default cursor and make the wand follow the mouse position on each frame.

Uploaded by

TECHNO PASSPORT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views2 pages

Creating A Custom Cursor in Flash 8

This tutorial shows how to create a custom cursor in 3 steps: 1) Draw a shape for the cursor, such as a magic wand. 2) Convert the drawing to a symbol called "wand". 3) Add actionscript to the symbol to hide the default cursor and make the wand follow the mouse position on each frame.

Uploaded by

TECHNO PASSPORT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Creating a custom cursor in Flash 8

(beginner )

This tutorial will walk you through one of the simpler ways to create a custom cursor for your flash animations.

Step 1: Draw a shape for the cursor

Start by drawing the small object you wish to use as your custom cursor. This tutorial uses a very simple drawing of a
magic wand - feel free to draw something else if you prefer.

Create the line - use the line tool to create a short vertical line set the
stroke colour to dark blue and the line width to 4 px. Tip: if you depress
the Shift key while drawing you will constrain your line to a perfectly
vertical, horizontal or 45 degree angle.

Create the star - use the polystar tool - click on the options button to choose a star click
and drag to draw out the star. I chose to select and delete the blue outline of the star and
leave just the fill.

Group and rotate - drag the star into position at the top of the
want and then with the selection tool (black arrow) draw a
marquee around the whole drawing to select both want and star
and choose Modify > Group. Then with the group still selected
choose the free transform tool, set the options to rotate and then
rotate the grouped object slightly by placing your cursor slightly
above the one of the corner handles and dragging down and slightly to the right.

Step 2: Covert to symbol

Select all and choose Modify > Convert to


Symbol or F8 to change the wand from a
drawing object to a symbol. Choose
movieclip and name the symbol wand.

Step 3: Add the actionscript

Select the symbol and in the Property Inspector give it an instance name of myWand.

With the myWand symbol still selected choose Window > Actions or F9 to open the actions
panel.

Then enter the following in the code window.


The first line of code says when the movie enters this frame do
onClipEvent (enterFrame) {
whatever is between the opening { and closing } brackets.
Mouse.hide(); This line of code hides the regular cursor
setProperty ("_root.myWand", _x,
_root._xmouse); These two lines of code attach the symbol so it will follow the user's
setProperty ("_root.myWand", _y, mouse
_root._ymouse);
} This bracket closes the onClipEvent() function

Choose Ctrl + Enter (win) or Cmd + Return (mac) to test your movie

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy