Solved

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

Posted on 2003-11-03
6
216 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now