Skip to main content
Known Participant
January 31, 2013
Question

Custom Cursors with rollovers.

  • January 31, 2013
  • 1 reply
  • 2292 views

So I know how to make a custom Cursor in flash Pro CS5 but if I want that custom cursor to change to something else of my own design when it's over specific objects how would I go about doing that?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
January 31, 2013

Your cutomer cursor could be a movieclip with multiple frames wherein interaction with the different objects command the custom cursor to change frames.

You would need to have some code in place to detect the "over" status (either a rollover listener or a continuously monitored hit test approach could work).

Known Participant
January 31, 2013

I actually figured out a way to do it using a combination of commands from the snippets and it worked quite well...more or less the same set up as you described here I think.  But I did run into one odd glitch though.  I've got two buttons that prompt two different cursor icons when rolled over.  They are both still functional and the rollover cursors still turn on and off as they're supposed to...but if I click on one of the buttons(litterally just the one, the other one is fine) it leaves behind and imprint of the rollover cursor.  If I click that button 3 times, then 3 copies of the rollover image will be left behind on the screen and will stay there until I rerender and start again.  The navigation of the whole site still works as it's supposed to and the cursor switches back and forth as it should, it's just this odd glitch.  Both buttons and cursor rollovers are set up exactly the same way but only one of them prompts the glitch.  Any thoughts what might be causing that.

Ned Murphy
Legend
January 31, 2013

No idea.  What code are you using for the button that is giving you the problem?