Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Cursors

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have seen flash games where the mouse icon has been hiden and a symbol has been places instead of it. Just wandering how to do that. Been looking for days now and cant find ne thing. PLEASE HELP
 
Its easy, just put this on the movie clip you want to be the mouse icon :

onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
} Regards

Big Bad Dave

davidbyng@hotmail.com
 
From the MacroMedia Action Script reference guide (page 80)

Create a movie clip to use as a custom cursor

Select it on the stage

Choose Window Actions

In the Toolbox list, select Objects, then Mouse, and drag "hide" to the script window.

onClipEvent(load){
Mouse.hide();
}

In the Toolbox List, select Actions, then drag "startDrag"
to the script window.

Select the "Lock Mouse to Center" box

Script should look like
OnClipEvent(load){
Mouse.hide();
startDrag("this", true);
}

Test your movie.
Note: its a good idea to put your custom cursor on the top layer so it passed over other objects.

 
if you want to make sure that it's on top of absolutely everything then just add

Code:
    swapDepths(14999);

to the above load script

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top