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
Similar Posts:
Mar 4, 2006
Hiya, I am learning loading movie clips dynamically using the loadMovieNum() function but have run into a problem. When I load a movie into the next layer up from the current movie I still get the hand appearing over where the buttons from the movie on the lower level are (though the lower level movie and its buttons are not visible).
Is there any way I can stop this happening or am I going about things the wrong way?
View 7 Replies
Apr 18, 2005
I have a site with the main content loading on _level2, then I have a contact page that loads over _level2 on _level5. The contact page has a bunch of input text fields, if you use the tab button to go to the next text field it calls on clickable objects on _level2 as well as the text fields... is there a way I can write a script to disable all clickable objects on _level2 while the contact section is loaded, and then enable them once more when I unload _level5?
View 1 Replies
Apr 22, 2011
im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:
on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}
[Code]...
View 0 Replies
May 24, 2003
just wondering if it is possible to disable a level much like you can disable a button. If it is possible what would be the best way to do that with being able to toggle on and off with a button on another level.
View 6 Replies
Feb 22, 2006
Here it goes. I have _level0 as my background, and _level1 reserved for another popup flash. After clicking a button on the background, the flash in _level1 will pop up. So what i wish to do is to disable the background including all the buttons in this _level0. At the same time, I also wish to stop the flash/animation running on background (_level0). Is there a way to do it withc action script? I've tried to insert a graphic in another level to cover up the background yet the buttons on the background are still functioning. Thus, i believe that this is not the correct way.
View 6 Replies
Aug 10, 2005
My main movie is on level 0, of course. On level 0 I created an empty movie clip named "container". Now, I load another movie into container, and I loaded it on Level 1. Now, I want to put a code inside a Movie Clip that is on level 1, which is the new, loaded movie that will disable a red button on level1. Here's the code I used:[code]That worked to no avail as well. So, I'm wondering if the code that disables and enables buttons only work with a handler? Like an onClipEvent or on (release) handler? I'm puzzled right now, because this is really elementary but i just don't know it right now.
View 2 Replies
Mar 19, 2009
There is an enabled function.. Now, when I load in a new level over an existing one, by using loadMovieNum, I call
Code:
_level0.enabled = false;
One would expect all buttons/rollovers NOT to work anymore .. Alas I just can't get that shiv to work. Does it do that - Or will it only work on individual MC's? Which brings up the problem that all 'buried' buttons are still operative. Ok, so I can call a for loop to disable all of those buttons - but that could get tricky. So, can an entire _level be disabled?
View 1 Replies
Jul 5, 2011
Based on this guide, I have enabled debug level logging and also enabled date, time, level and category logging.
This works great, except now I am seeing all my data that's returned being logged. Is there a way to disable this? I would still like to see the calls logged. I've tried info level, but that turns off request logging.
View 1 Replies
Jun 9, 2008
made a site with several buttons that load other .swf on level 1 which cover the entire stage, but the buttons that are on level 0 can still be clicked on. Is there anyway to block these buttons while the level 1 .swf is playing
View 1 Replies
Oct 27, 2011
As I am finally dipping my toe's into AS3 from years of AS2, I am having an issue for my menu buttons (which are within a movie clip) effecting the activation of movie clips that are featured on the main timeline.
I can get this to run how i want it when each menu button is on the main timeline (by using the 'the click to go to Frame and Play' code snippet)...but when these button are within a movie clip, I can't figure out where in the code i have to add the _parent. command ?
I have attached the .fla to see what I have done. I am keen to keep using the code snippets scripts.
View 2 Replies
Mar 4, 2002
I have a movie (back.swf) and this calls into another (menu.swf, level20). I want to control the movie clips to the level0 with the buttons on level20. I do that but I can't control in a random order.
For example:
I press button 1 and play movie clip 1.
I press button 2 and play movie clip 2.
But if I press again button 1 don't play it.
And if I press the button 3 play the movie 3 but don't allow to return to the button 1 and 2.
Every movie clips are in level0.
View 1 Replies
Jan 6, 2005
When you have movies in a layer, how can you stop the buttons of the underlying levels from showing through. I don't want the user to think that there is a button on the level showing because the cursor turns into a hand....plus also when clicked it does activate the lower movies actions.
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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