MX Disable All Buttons?

Jun 9, 2009

Is there a way to use ActionScript to disable all buttons in a movie at the start of the movie (or at any given time in the movie), and then re-enable them at a certain time? I'm using Flash MX (only version I have access to), and I know how to get to the ActionScript panel and use it for basic things like stopping/playing a movie or jumping to a certain frame, but I haven't figured out much about ActionScript beyond that.

(btw, what version of ActionScript does Flash MX have?

View 10 Replies


Similar Posts:


ActionScript 1/2 :: Disable Buttons Under An FLV?

Nov 20, 2010

I have designed a website in Flash AS2 and it is nearly complete, but I have one big problem. On my main page, I have a line of scrolling buttons as well as a slide show which also doubles up as a button. All of these buttons link to FLV movies. When clicked, the movie page fades up to cover the entire stage.This is the effect I want and I like the way it looks, but the problem is, all the buttons remain active underneath the FLV as it plays.So if you accidentally click on the movie while its playing, it's still possible to trigger one of these buttons, causing all kinds of undesired chaos!Here is a link to the current swf, so you can see exactly what I'm talking about.

The row of scrolling buttons (the circles) and the arrow buttons at the bottom are contained within a single movie.I must point out that I am not well versed in action script. I have picked up bits and pieces as I've gone along but I don't speak the language

View 10 Replies

AS3 :: Disable The Tooltip On Certain Buttons?

Nov 13, 2009

I want to disable the tooltip on certain buttons.

The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

View 1 Replies

Actionscript 3 :: Disable All Buttons Except One?

Oct 5, 2011

During an upload I need to disable all buttons on stage except the one to cancel the upload process. I tried this but "mybutton" keeps on being disabled:

stage.mouseChildren = false;
mysection.mybutton.mouseChildren = true

View 1 Replies

ActionScript 3.0 :: Disable Other Buttons When You Are On That?

Oct 1, 2010

I am creating a spinning globe where I set up two movieclip buttons. One is called "europe1" and another is called "russia1". When you roll over "europe1" button, movieclip "europe_people" starts to play and button "closeEurope" appears. When you click on "closeEurope" button, the movie clip "europe_people" and the button "closeEurope" disappears and the globe begins to spin again. If you roll over "russia1" the same thing happens.

What I want to do at this point is if the user rolled over "europe1", I want to deactivate button "russia1" on the spinning globe until the user closes "europe1" by pressing the "closeEurope" button. When the user presses the "closeEurope" I want "russia1" button on the spinning globe to activate again. [code]...

View 1 Replies

ActionScript 2.0 :: How To Disable ESC & ALT Buttons

Nov 8, 2005

Movie should not RESTORE(MINIMISE) if ESC is pressedMovie should not Close if ALT + F4 is pressed How should i deactivate or Disable ESC and ALT buttons in flashi have used fscommand on frame enter i could deactivate all other buttonsbut

View 3 Replies

ActionScript 2.0 :: Disable All Buttons In B.swf?

May 19, 2002

After A.swf loaded on the top of B.swf,How can I disable all buttons in B.swf?

View 4 Replies

ActionScript 2.0 :: How To Disable Buttons

Dec 11, 2007

I have a website, and each section fades in and fades out. The problem is the hidden sections (alpha=0) still have their buttons active...you can click them and I don't use buttons, they are movieclips with actionscript in frame 1...How would you make sure these are disabled?What I tried was to create a variable sectionFlag:Number=1; this would have a different number 1,2,3,4 depending on the current section and then if (sectionFlag==4){ execute code }however, the sob just wouldn't work, it would execute the code anyway!

View 8 Replies

Professional :: Scrolling BG's Disable Buttons?

May 13, 2010

I have several layers of scrolling BGs via action script.  In between these layers are a set of simple buttons made via "button" symbols.  Within the stage, the buttons are recognized, however, when I test the movie, the buttons are not recognized/activated by the cursor.  My guess is that the scrolling BGs that are on top of everything else (NOT added via "addChild" in a blank movie clip below all other layers) are somehow "blocking" my cursor from reading the simple buttons "below" them. 
 
For the visual aspect of the project, the scrolling BGs are needed both "below" and "above" the buttons, so I need a work-around for simple button use in this multi-level scrolling BG environment.  (just to clarify, by "above" and "below" I dont mean vertically above and below, but rather "layered" above and below, so as to "cover" eachother). 

View 1 Replies

ActionScript 1/2 :: Way To Disable Multiple Buttons?

Jul 16, 2010

A way to disable multiple buttons on different timeline mostly resides movie clipLike when I click a single button, the other buttons will be disabled.As of now what I'm doing is like this...

function disableButtons(){
preview.btn1.enabled = false;
preview.btn2.enabled = false;

[code].....

View 5 Replies

ActionScript 2.0 :: Disable Buttons Outside For Loop?

Jan 27, 2011

i call my disable button function that is inside a for loop? it only ever disabled the last button but i want it to disable them all. Below is my code:

PHP Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code].......

View 1 Replies

ActionScript 3.0 :: Enable And Disable Buttons?

May 24, 2011

I'm looking to create a bit of code the allows you to click on a button and disable the rest and so forth reinable when the others have been used

View 2 Replies

ActionScript 3.0 :: Disable External Swf Buttons?

Jul 18, 2011

how to disable the button actions on an swf that I loaded so that they don't interfere with anything else. Is this possible? If so how do i do it?

ActionScript Code:
var swfLoader:Loader = new Loader();
holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("cambria_home.swf");

[code]....

View 2 Replies

ActionScript 2.0 :: Disable Buttons On Level 0

Nov 6, 2004

I have a couple of buttons on a movie in level 0, and those buttons load movies right on top of this one but to level 1... how can i disable buttons on level 0 as soon as level 1 loads, and vice versa, need to enable them when i press the button on level 1 that unloads this movie..

View 1 Replies

ActionScript 2.0 :: Disable All Buttons In _parent?

Nov 13, 2005

Is it possible to disable all buttons in _parent?I dont want to use the name of all the buttons

View 2 Replies

ActionScript 2.0 :: Enable And Disable Buttons?

Jan 19, 2006

I have a meny here with 5 buttons. They are called "undermeny1.btn1", "undermeny1.btn2" etc. What I need to add to this code is that when I click Button 1, this button gets disabled, and if I then click lets say Button 4, Button 1 gets enabled and Button 4 disabled. Maybe an easy one but I just cant think straight.

Here's the code for my buttons ("undermeny1" is the mc in which the buttons live);

for(var i=1;i<=8;i++){
var meny = undermeny1;
_root["meny"]["btn"+i].ivar=i;

[Code]....

View 2 Replies

ActionScript 2.0 :: Disable Buttons In External Swf

Oct 14, 2006

I had tried to disable some button in external.swf which I loaded into the movieclip (mc_content) in the main.swf. The instance name of button in external movie is btn_1.
_root.mc_content.loadMovie("external.swf"); this works perfectly - it's open that external.swf in main movie. I have also a disable button (btn_disable) in main movie.

[Code]...

View 2 Replies

ActionScript 2.0 :: Disable Buttons In MC When Another MC Plays?

Jun 30, 2007

I am building my online portfolio and basically you scroll through my work (you may have noticed another thread about this lol) and then you click on an image which represents the different work that i have done. This opens an "info box" with a few more screen shots of that project and some text about it. This all works great, but what i need is when the "info box is opened (loaded externally), the other buttons etc on the stage need to be disabled because the info box loads in a layer above everything else. When the infobox is closed, the buttons etc need to be enabled again so i cant just put the code in the onRelease function which activates the infobox as this will permanently disable everything. I was thinking maybe I can set up some variables so it can detect whether the infobox is opened or closed depending on the value of the variable but I have found it hard to reference the variables properly.

My portfolio is currently online - www.theo-nicolaou.co.uk - but it is one year old, buggy, slow and needs updating as i have more work to show. That is why I am rebuilding - mainly the structure and a few design changes. If you go to the link, click on portfolio, and then click on one of the circular buttons under the black square, and then click the image in the square you will see the "info box" and you will notice that any buttons underneath are disabled until the box is closed.

To activate the infobox, an image (i call it a thumbnail" is clicked, for example, "DG_thumb":

Code:
DG_thumb.onRelease = function() {
_root.holder_mc.infobox_holder.loadMovie("DG_infoBox.swf", "start");
}

the portfolio page itself is a separate .fla (portfolio.fla) which is loaded into a main fla which has an empty MC called holder_mc. The instance name "infobox_holder" is in the portfolio.fla file and that is what it is loaded into when the thumbnail is clicked. The thumbnail itself is within a MC called webList (in this case) which is within a MC called portfolioList. This is on the main timeline of portfolio.fla so i guess the path would be (though maybe i am wrong):

Code:
_root.holder_mc.portfolioList.webList.DG_thumb

however this doesnt seem to make any difference and it is still enabled even if i use enabled = false;I have also tried using _parent. but that doesnt work either.I also need to disable the circular group of buttons which are within a MC on the main timeline of portfolio.fla called "circles". They all have instance names, so in the case of the work i call DG, it would be "DG_button".

View 14 Replies

ActionScript 2.0 :: Disable Buttons On Fade In?

Mar 6, 2008

I have four buttons on a website - on press I want each button to trigger a fade in for an image...When a user hits on diff button, the the previous image should fade out and a new image fade in..... The script I am using doesnt work all the time..sometimes when i press a button...the i press a diff button...two images will fade in overlapping eachother take a look at my file and tell me how to make this concept work with no errors?

[URL]

View 1 Replies

ActionScript 2.0 :: Disable All Buttons Except The Specific?

May 18, 2011

I'm writing a flash game with using some pop-out message boxes, constructed by myself. Users can close it by clicking the button in the box. Meanwhile, the buttons outside the box should all be disabled!

I don't want to just add a condition check inside all buttons manually if there are alternatives... So I have considered using "Button.prototype.onRelease" event, but I don't know whether it can terminate the original script in each button.

View 3 Replies

ActionScript 2.0 :: [F8] - Disable / Enable Buttons Between Levels?

Jan 4, 2009

Having problem enabling buttons on levels other than the _root once they are disabled. I have a feeling it's got something to do with the createEmptyMovieClip.[code]...

View 6 Replies

ActionScript 3.0 :: Disable Buttons Events With Another Button?

Apr 8, 2009

I have been trying to get this all day and all I want to do is when I roll over a button it disable the main button that is in its way. I am making a header and it has a button that is lit up and shows a screen but when I roll over another button I want to disable that buttons mouse events. Here is what I have(be aware what I am trying to disable is a movie clip within the button so that is not part of action script)

myButton.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(event: MouseEvent):void
{
var request:URLRequest = new URLRequest("http://msn.com");

[Code]......

View 5 Replies

ActionScript 3.0 :: Buttons Disable But Ignore GotoAndStop

Sep 28, 2009

My buttons disable but ignore the gotoAndStop.[code]...

View 1 Replies

ActionScript 3.0 :: Disable Buttons While Timer Runs?

Jan 10, 2010

I'm attempting to make a code which disables two tweening buttons while a timer runs. The timer starts when you click one of the buttons, and stops after two seconds. For some reason though, it isn't working, and I can't figure out why.

Code:
//import fl.transitions.Tween;
import fl.transitions.Tween;
import fl.transitions.easing.*;

[Code].....

View 8 Replies

Professional :: Disable Buttons Beneath LoadMovie?

Apr 11, 2007

Is it possible to disable buttons in a movie clip that is on the root level so that a movie loaded on top of it into level1 doesn't have any hot spots? My file is a map that starts as a movieclip with buttons in level0. There is another movieclip/button that when clicked loads a detail map on top into level1. I would like to have some new buttons in the level1 movie clip but the buttons in level0 are still active and it's confusing to the user. As a workaround, I've created an invisible button covering the entire detail map that doesn't do anything other than change the cursor to the pointing finger.

View 5 Replies

ActionScript 3.0 :: Disable Buttons When Playing Flv File?

Apr 23, 2009

When i play a flv file the buttons that are below this is still active and i can click on them. is there a easy way to disable buttons when i play an flv file?

View 1 Replies

ActionScript 1/2 :: Disable Buttons In A Movie Clip?

Sep 4, 2009

I have a screen with transparency that pops up over a movieclip full of buttons.I need to disable the movie clip and/or buttons so they don't function when the pop up comes up.Can't get it to work with this code:

myMC._enabled=false;
or
myMC.myBTN._enabled=false;

[code].....

View 11 Replies

ActionScript 3.0 :: Disable / Enable And Reset Buttons

Feb 1, 2010

I have an array of buttons. I need to be able to disable the selected button and enable the reset.Ex: 5 buttons on stage when click on btn1, btn1 disbale and btn2> btn5 enable.I´ve attached  the main code.[code]

View 9 Replies

ActionScript 3.0 :: Can't Disable Movie Clip Above Buttons?

Apr 12, 2011

I have some buttons, and above them a movie clip with a 20% transparency which I use for some graphic effects in my page. But the buttons can't be accessed (they are not working) because the layer covers them.I have used the following code to disable the graphic layer:overlay_mc.buttonMode = false;overlay_mc.enabled = false;overlay_mc.mouseEnabled = false;but none of these solves the problem. The buttons are still covered and inactive.

View 3 Replies

Flex :: Disable Individual Buttons In A Buttonbar?

Jun 17, 2009

How can I disable a single button in a buttonbar in Flex?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved