[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2003-11-03
6
Medium Priority
?
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 

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 400 total points
ID: 9683530
>Nevermind.  I just create the movieclip, then set the alpha to 0%.
>Make sense?

yes, absolutely..
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

656 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