in Technology

Remove HandCursor for Button or MC

Here is a common reply to my students, forum users for the querry, “How do I remove the hand cursor from all instance of Buttons or MCs without specifying it individually?”. Modify the script below to suit your needs. Apply it using removeHand();

myRoot = this;
function removeHand() {
 for (i in myRoot) {
  if ((myRoot[i] instanceof Button) || (myRoot[i] instanceof MovieClip)) {
   myRoot[i].useHandCursor = false;
   }
 }
};
  1. This could be an easier solution?

    Button.prototype.useHandCursor = false;
    MovieClip.prototype.useHandCursor = false;

  2. This could be an easier solution?

    Button.prototype.useHandCursor = false;
    MovieClip.prototype.useHandCursor = false;

  3. the main difference between turning useHandCursor off bia prototype and brajeshwar's method is that it allows you to specify which clip you want to turn the hand cursor off in, which is better if you are using components, for example, where you just may want to turn the hand cursor off for the component and not the entire flash movie itself.

  4. the main difference between turning useHandCursor off bia prototype and brajeshwar's method is that it allows you to specify which clip you want to turn the hand cursor off in, which is better if you are using components, for example, where you just may want to turn the hand cursor off for the component and not the entire flash movie itself.

Comments are closed.

Webmentions

  • Team Macromedia Flash Oct 2, 2004

    Remove HandCursor for Button or MC

    Here is a common reply to forum users for the querry, "How do I remove the hand cursor from all instance of Buttons or MCs without specifying it individually?". Modify the script below to suit your needs. Apply it using...