Welcome to Dream.In.Code
Getting Help is Easy!

Join 98,765 Programmers for FREE!. Ask your question and get quick answers from Dream.In.Code experts. There are 1,034 online right now! We're the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert

Register to Make This Box Go Away!


Changing mouse/cursor appearance

 
Reply to this topicStart new topic

> Changing mouse/cursor appearance, Flash MX - basic ActionScript

capty99
Group Icon



post 19 Jan, 2005 - 10:43 PM
Post #1


This tutorial will change the look of the
mouse in the flash movie to anything that
your heart can desire.
(sorry for not including a picture, its kinda hard to show... just imagine the regular white mouse changed to something else.)
-------------------------------------------
- Open a new flash movie

Step . 1
Draw any random shape that you would want
to ... in my movie i just drew a green
normal mouse shaped thing but your object
could be shaped however you want it.


Step . 2
convert this image to a symbol by double
clicking on the image itself and going to
insert > convert to symbol
Name : mouse
Behavior : movie clip
make sure you type in the name as "mouse"
and that the movie clip behavior is
selected, and then press okay.

IPB Image

Step . 3
set the instance name for this symbol to
match the movie clip name as "mouse".
(in flash 5 and before you right click and go to instance to change the instance name)


IPB Image

Step . 4
the actions...
in the first frame of this movie
right click > actions.
this brings up the actions palette which
makes everything in this movie works.
on the left handbar select
Actions > Movie Clip Control > startDrag
this code will tell the movie that when
it opens it should start the drag of
an object... you want to define which
object that is so after selecting the
start drag action you have the option
to input a target and the target is
"mouse". the name of your instance, and
movie clip. you also want to select
"lock to center" as an option for the
drag.

IPB Image

Step . 5
if you were to play the movie right now
your image would be there locked to the
mouse but your mouse would also show on
the screen. to hide the mouse from your
view you need to add one more action
select
objects > movie > mouse > methods > hide
this should hide the mouse from your view
YOUR DONE! check your work by going to
control > test movie.

This post has been edited by capty99: 21 Jan, 2005 - 12:10 AM


Register to Make This Ad Go Away!


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 7/20/08 02:42PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month
-->