Skip navigation
timaging
Currently Being Moderated

useHandCursor not working once I add to html?

Feb 29, 2012 2:48 PM

Hi,

 

I have this bit of code for a simple button:

 

import flash.events.MouseEvent;

import flash.ui.Mouse;

 

 

movieClip_1.buttonMode = true;

movieClip_1.useHandCursor = true;

 

 

I can see the cursor in flashPlayer, but once I put this in an html doc, I don't see the hand cursor any more.

 

Do I need to be adding something to the html as well, or is more code needed? For some reason, I thought this used to work... maybe that's just the old school AS2 buttons?

 

thanks,

Dave

 
Replies
  • kglad
    62,004 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 29, 2012 3:36 PM   in reply to timaging

    if movieClip_1 is a simple button you should be seeing error messages.  if it's a movieclip and IF the mouse is over movieClip_1, assigning it's buttonMode to true is sufficent for the cursor to respond as if it's over a button

     
    |
    Mark as:
  • kglad
    62,004 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 1, 2012 6:58 AM   in reply to timaging

    if you click on movieClip_1 and in the properties panel you see "Button" in the object type combobox, you should see a compiler error message when trying to apply a buttonMode property.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 7:17 AM   in reply to timaging

    I'm running into this issue as well. All browsers on my Mac don't seem to show the hand cursor, but all my Windows browsers do. The standalone Flash Player on the Mac works correctly as well.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points