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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor change on rollover

Status
Not open for further replies.

8126932

MIS
Mar 16, 2003
5
NL
Hello,

I'd like to change the default cursor for my own imported sprite as soon as I rollover something. Can anyone please hand me the script ?
 
This will change the cursor to a hand.
on mouseWithin
cursor 280
end

This will change it back to the arrow when you rollout of the sprite.
on mouseLeave
cursor -1
end

280 is a number designated for the hand. There are other numbers for the other built-in cursors. You need to look those up. Or for a custom cursor, replace the number with the cursor name.
 
Yea well the thing is I want to use an own made cursor. Which is imported in the cast.
 
To make a custom cursor. You go to Insert<Media Element<Cursor. This will bring up the dialog to create a cursor. I believe it takes only .gif files for this.

Once you have done this make write this in a behavoir script
for your sprite on rollover to change the cursor.

on mouseWithin
cursor member &quot;x&quot;
end

x being the name of your custom cursor

then of course to bring it back to the arrow cursor on rollout put:

on mouseLeave
cursor -1
end

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top