Solved

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

Posted on 2003-11-03
6
220 Views
Last Modified: 2010-05-18
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
Comment
Question by:brandonlee
  • 3
  • 3
6 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 9680675
>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
 

Author Comment

by:brandonlee
ID: 9681599
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
 
LVL 27

Expert Comment

by:negatyve
ID: 9683011
>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
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.

 

Author Comment

by:brandonlee
ID: 9683504
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
 

Author Comment

by:brandonlee
ID: 9683512
Nevermind.  I just create the movieclip, then set the alpha to 0%.

Make sense?

Thanks for your help!
0
 
LVL 27

Accepted Solution

by:
negatyve earned 100 total points
ID: 9683530
>Nevermind.  I just create the movieclip, then set the alpha to 0%.
>Make sense?

yes, absolutely..
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
To view Flash technology content error 4 6,662
free photo watermark software 5 93
flash professional 3 21
can not get an online video to playback in Google Chrome 4 16
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question