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

disable button

Explorer ,
Jul 10, 2008 Jul 10, 2008
as my previous post Loading external movie on top of all layers

i am facing a problem now that all the buttons are still working when the external movie loads on top.
I want all the menu buttons to be disabled when the external movie loads and there is a CLOSE Button in the external movie. i tried to search for how to disable the buttons. i found some, but couldnt understand what to do.

So any help will be appreciated here plz.

Thnx in advance.

Regards
TOPICS
ActionScript
1.7K
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
Explorer ,
Jul 13, 2008 Jul 13, 2008
here i ve uploaded the file. Plz download it:

http://www.adhabi.com/docs/menu.zip

Thank you
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
Community Expert ,
Jul 13, 2008 Jul 13, 2008
if you want to hire me to solve your problem send me an email via my website.
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
Explorer ,
Jul 15, 2008 Jul 15, 2008
Thnx kGlad

well, i have got the solution
i was putting the code in the main menu file.
but had to add in an external file. and here is the code

my_invisible_btn.useHandCursor = false;

thats all

Thnx everyone

Regards
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
Engaged ,
Jul 16, 2008 Jul 16, 2008
LATEST
Better view the fla file. That idea is that from the code you showed us i understand that you put the actions on a button not on a frame.
You say you used:

on (release) {
} - this is used only when you click on the button in the stage and press F9 to add code directly to it. It isn't a good practice. Here for example you probably don't target right the movieclips if you set the actions in the button
you target a that second button as if it were inside the button that contains te code.

You should select a frame, from any layer (best the top layer), from inside the movieclip that contains all the buttons and press F9 to right the code there. Exemple:

security.onRelease = function {
// this.swapDepths(1);
_root.createEmptyMovieClip("target_mc1",_root.getNextHighestDepth());
_root.target_mc1._x = -600;
_root.target_mc1._y = -150;
_root.target_mc1.loadMovie("1.swf");
security.enabled=false;
development.enabled=false;
}
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