Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I make all buttons on stage unclickable, while a certain movie clip is visible?

New Here ,
Feb 27, 2013 Feb 27, 2013

Hi,

I have a button on stage which opens a popup (movie clip is popup + several other buttons). The movie clip and the buttons on it take up most of the stage.

The problem is that the buttons which are on the stage, and are behind the movie clip, remain clickable (you can click through the movie clip!). How may I disable this?

Basically, I need to make it that you cannot click through the movie clip.

Thanks in advance!

PS I am using CS5 and AS2.

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 27, 2013 Feb 27, 2013

One way would be to make the movieclip clickable.  That would make it block the other objects behind it...

     mc.onRelease = function(){ }

     mc.useHandCursor = false; // to hide the hand cursor

Another way would be to disable the buttons while the movieclip is present...

     btn.enabled = false;

Another way would be to build conditional code into the button clicking code to not work if the movieclip is visible.

     btn.onRelease = function(){

          if(!mc._visible){

                // okay to

...
Translate
LEGEND ,
Feb 27, 2013 Feb 27, 2013

One way would be to make the movieclip clickable.  That would make it block the other objects behind it...

     mc.onRelease = function(){ }

     mc.useHandCursor = false; // to hide the hand cursor

Another way would be to disable the buttons while the movieclip is present...

     btn.enabled = false;

Another way would be to build conditional code into the button clicking code to not work if the movieclip is visible.

     btn.onRelease = function(){

          if(!mc._visible){

                // okay to do stuff

          }

     }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 27, 2013 Feb 27, 2013

ty! resolved!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 27, 2013 Feb 27, 2013
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines