• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Is "MC.useHandCursor = false;" Compatible with Flash Player 5?

I've hidden my hand cursor over a movieclip with:

MC.useHandCursor = false;

It's hidden in Flash 6 & 7, but not in Flash 5.  Is this not compatible with Flash 5?  Is there a way to hide my cursor in Flash 5?

Thanks,
Brandon
0
brandonlee
Asked:
brandonlee
  • 3
  • 3
1 Solution
 
negatyveCommented:
>Is this not compatible with Flash 5?

yes, it is not. it works from flash mx up...


>Is there a way to hide my cursor in Flash 5?

yes, simulate a button with a movieclip: http://www.actionscripts.org/showMovie.php?id=354
0
 
brandonleeAuthor Commented:
Excellent!  It's actually an invisible button inside a movie clip.  How would I modify to ignore rollover state of button and such?
Thanks!

//*** negatyve.com ***//

onClipEvent (load) {
      this.stop();
}
onClipEvent (mouseMove) {
      if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
            if (!sopra) {
                  sopra = true;
                  if (!premutoFuori && !premutoDentro) {
                        // on(rollOver)
                        this.gotoAndStop(2);
                        _parent.testo = "ROLL OVER";
                        //-------------
                  } else if (premutoDentro) {
                        // on(dragOver)
                        this.gotoAndStop(3);
                        _parent.testo = "DRAG OVER";
                        //-------------
                  }
            }
      } else {
            if (sopra) {
                  sopra = false;
                  if (!premutoFuori && !premutoDentro) {
                        // on(rollOut)
                        this.gotoAndStop(1);
                        _parent.testo = "ROLL OUT";
                        //------------
                  } else if (premutoDentro) {
                        // on(dragOut)
                        this.gotoAndStop(2);
                        _parent.testo = "DRAG OUT";
                        //------------
                  }
            }
      }
      updateAfterEvent();
}
onClipEvent (mouseDown) {
      if (sopra) {
            // on(press)
            this.gotoAndStop(3);
            _parent.testo = "PRESS";
            /*** DOUBLE CLICK ROUTINE ***

            if (getTimer()-click<300) {
                  // double click
                  _parent.testo = "PRESS DOUBLE CLICK";
            } else {
                  click = getTimer();
                  // single click
                  _parent.testo = "PRESS SINGLE CLICK";

            }***************************/
            premutoDentro = true;
      } else {
            premutoFuori = true;
      }
      updateAfterEvent();
}
onClipEvent (mouseUp) {
      if (premutoDentro && sopra) {
            // on(release)
            this.gotoAndStop(2);
            _parent.testo = "RELEASE";
            //------------
      } else if (premutoDentro && !sopra) {
            // on(releaseOutside)
            this.gotoAndStop(1);
            _parent.testo = "RELEASE OUTSIDE";
            //-------------------
      } else if (premutoFuori && sopra) {
            // on(rollOver)
            this.gotoAndStop(2);
            _parent.testo = "ROLL OVER";
            //-------------
      }
      premutoDentro = premutoFuori = false;
      updateAfterEvent();
}
0
 
negatyveCommented:
>It's actually an invisible button inside a movie clip.  How would I modify to ignore rollover state of button and such?

there's no invisible button, it's just a movieclip. what do you want to ignore, besides rollover?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
brandonleeAuthor Commented:
Sorry.  What I meant was, I currently have an invisible button inside a movie clip with the HandCursor hidden.  In your script, you have different images which represent different states of the "button".  I don't need the different states, cause I want it to be invisible.

So, this works fine.

onClipEvent (load) {
     this.stop();
}
onClipEvent (mouseDown) {
         // on(release)
          MY ACTION;  
}

The only question is, how to make it invisible.
0
 
brandonleeAuthor Commented:
Nevermind.  I just create the movieclip, then set the alpha to 0%.

Make sense?

Thanks for your help!
0
 
negatyveCommented:
>Nevermind.  I just create the movieclip, then set the alpha to 0%.
>Make sense?

yes, absolutely..
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now