Enable/Disable Buttons With Array?
Hi.
I have 3 buttons I need to turn on and off repeatedly. Can I use an array to turn them on and off? I'm sure you can, but I can't seem to think since my Team won a spot in the playoffs.
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-04-2004, 07:01 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Enable/disable Buttons
Sorry to ask this...But I am not able to use the search function at this time. What is the A.S. to enable/disable buttons? Thanks!
Disable/enable Buttons
Ok, I know how to disable a button which is easy enough;
Code:
on(release){
buttonName.enable=false;
}
I have a movie where I have 4 buttons and when I want the button the user clicks to be disabled while they are viewing that section but of course for the other buttons to be enabled. When I go from button1 to button2 I'd like button2 to become disabled and button1 to be 're-activated'...so on and so on....
My buttons are loading MC's from the library, so I don't know if that will do anything to it...I also have a 5th button which goes nowhere. What I use it for is when I mouse over any of the other 4 buttons, I want the 5th to disappear, but when I mouse out of them I want the 5th to reappear. Right now my script looks like this, and I'm getting mixed results (one thing works, the other doesn't...if I fix the one that isn't working, the one that was ok stops working...)
Code:
on (rollOut) {
if (selectedButton != 1) {
minus_off.gotoAndPlay(2);
staticdial_mc._alpha = 100;
}
}
on (release) {
sub_hold.attachMovie("about_sub", "about_in", 30);
sub_hold.removeMovieClip;
}
on(release) {
about.enable = false;
contact.enable = true;
media.enabe = true;
research.enable = true;
}
The on(rollOut) is just a little animation mc to givethe button a nicer touch and works just fine.
Enable... Disable Buttons
I have this script on a button
on (rollOver ) {
if ( _root .gov ._currentframe > 1 || _root .program ._currentframe == 36 ) {
_root.govB.enabled = false;
}
}
now I'm just not sure how to put in the else statement. Meaning if its not on those frames then it will be enabled
thanks guys
[F8] Enable/Disable Buttons
I'm looking to do an alpha visibility transition between movie clips that both have buttons on them... how would I go about enabling/disabling buttons based on whether they are visible or not?
Enable/Disable Buttons
I am using Flash 8 to create a slide presentation. I want to be able to enable/disable the buttons on each screen for 15- 20 seconds so that the user will be forced to read each slide and not skip ahead. Any ideas on how to do this?
Thanks!
Disable/Enable Buttons
I am using Flash 8 to create a slide presentation. I want to be able to enable/disable the buttons on each screen for 15- 20 seconds so that the user will be forced to read each slide and not skip ahead. Any ideas on how to do this?
Thanks!
Enable/disable Buttons
Hey everyone,
Having a little trouble getting a button to enable again. The way my movie is set up is like so. On my main timeline inside an MC I have a button with an instance name of "btnLaunch_mc". Actionscript for that button is
Code:
btnLaunch_mc.onRollOver = function () {
btnLaunch_mc.gotoAndPlay("over");
}
btnLaunch_mc.onRollOut = function () {
btnLaunch_mc.gotoAndPlay("out");
}
btnLaunch_mc.onRelease = function() {
btnLaunch_mc.enabled = false;
_parent.slide.gotoAndPlay("slideout");
}
What it does is call another MC on the root timeline with the instance name of "slide". This is a sliding panel which comes over the main movie. The sliding panel has a close button but when opened the main button stays active, So I had to disable the btnLaunch_mc button so it wouldnt stay active but Im having trouble getting the panels close button to enable it again once i close it. the code on the close button is
Code:
on (release) {
_root.btnLaunch_mc.enabled = true;
_root.slide.gotoAndPlay("slidein");
}
which doesnt seem to work. whew....I hope I explained this well enough to understand. I cant figure out how to target that btnLaunch_mc instance from another MC to enable it again. Since the button is in an MC on the root timeline I shouldnt be targeting the _root im guessing.... but im confused as to what would be the right coding. So if I havent confused many of you, lol, anyone care to take a stab at this?
Enable And Disable Buttons
Hi all,
Is there any way I can disable all buttons on _level0.
I am loading a movie on _level2. the buttons on _level0 are interfering although they are covered by the movie on _level2. I want to disable buttons on _level0 when the movie on _level2 is loaded, then enable them when the movie on _level2 is unloaded.
I hope this makes sense .
Disable/enable Buttons
I have a button that is disabled after opening an external loaded movie. if that movie is unloaded, how do i re-enable that original button?
Senario:
Button "A" is pressed
Movie "A" is loaded
Button "A" is disabled.
Button "B" is pressed
Movie "A" is unloaded.
How can Button "A" become enabled again.
thanks.
Disable / Enable Buttons In .exe
I have a simple Flash movie with a few buttons - this movie will be my .exe (not on the web). Just like a Main Menu.
I noticed that when I click on a button that plays a .swf file over the Main Menu, the buttons on the Main Menu are still active. No problem, I just disable them when clicked.
But I'm having trouble with the return - I am using unloadClip(5) to unload the .swf and can't figure out how to refer to the Main Menu file to enable the buttons again.
Thanks.
Rob Childress
Enable/disable Buttons
First post! Well Ive been meaning to post but I usually browse around first and try to get info but this problem I give up. I went throught this forum over and over and other forums as well, I found other post that matches the criteria but I was unable to use the scripts to implement to mine. Im fairly new to FlashMX04 and AS2, Ive been messing with flash for awhile with only basic scripting knowledge. I know this is simlpe to you guys out there. I have four mc as buttons on the main stage with a rollover (highlight) effect that triggers a external swf to load on a container on release. What I need is after the preload stage, clip1(mc button) automatically goes in the highlight stage and gets disabled, so it wont reload the swf if clicked again, till another button gets pressed, and disable and so fort. Please can anyone show me or give me an advice on how to do this, you can check out the "swf" here and the "fla" files are here. Thanks in advance....
Charlie
Use Enable & Disable In Buttons
Hi friends
I am now learning flash Mx
can you help iln clearing my doubts
1) how to show alert messages
2)there are three buttons in my project
button 1, button 2, button3
if you press button1 button 3 should get disabled and if your press button 2 then button 3 should get enabled
and also an alert should be displayed at the same time that button 3 is disable or enabled
email Id nagarajpinnu@rediffmail.com
Enable And Disable Buttons.
This is the situation; 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. Someone please help.
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;
_root["meny"]["btn"+i].onRollOver = over;
_root["meny"]["btn"+i].onRollOut = out;
_root["meny"]["btn"+i].onRelease = function(){
_level0.myMCL.loadClip ("content/gregory/sub"+this.ivar+".swf", 10);
}
}
How To Enable - Disable MC Buttons ?
hi,
i've got several buttons, which i must enable, and after an other "onPress" action on an other button, i must "re-enable" them...
for disable, it work..i use :
this.onPress = false;
this.onRollOut = false;
this.onRollOver = false;
but for enable :
this.onPress = true;
this.onPress = enabled;
don't work ...why ?
Xml Buttons Enable, Disable
hi, i have a xml in this i have some buttons, but i try to do those are enable or disables, the idea is when i click a button this change the color to grey and the other come back to orange color. In this code i used some caurina code
I used this code:
Code:
function loadXml(file:String) {
menuXml.ignoreWhite = true;
menuXml.onLoad = loadMapData;
menuXml.load(file);
function loadMapData() {
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
var bn = this.firstChild.childNodes[i].attributes.buttonName;
var t = this.firstChild.childNodes[i].attributes.thumbs;
var b = _root.btn.bM1.attachMovie("button", bn, i);
b.pic_url = this.firstChild.childNodes[i].attributes.full_url;
b.pic_url2 = this.firstChild.childNodes[0].attributes.full_url;
b._x = xStart+((bWidth+2)*i);
b._y = yStart;
b.txt = bn;
loadMovie(t, b.foto);
b.onPress = function() {
if (loaded == filesize) {
contenedor._alpha = 0;
contenedor.loadMovie(this.pic_url);
}
};
b.onRollOver = function() {
this.t2._y = 20;
this.t2._alpha = 0;
Tweener.addTween(this.t1,{_alpha:0, _y:-10, time:0.5});
Tweener.addTween(this.t2,{_alpha:80, _y:0, time:0.5, onStart:function () {
this._visible = true;
}});
Tweener.addTween(this.foto,{_alpha:100, time:1, onStart:function () {
this._visible = true;
}});
};
b.onRollOut = function() {
Tweener.addTween(this.t1,{_alpha:100, _y:0, time:0.5});
this.t2._visible = false;
this.foto._visible = false;
};
}
}
}
Sorry again for my bad english i try to go better. And please remember i'm graphic designer i try to learn Code, but it's hard to me
Enable And Disable Buttons
hi guys,
can i enable and disable all buttons with one line of code? or do i need to enable and disable each button with and instance name?
What i have is a range of buttons, which open different windows in my flash movie, with more info on it, i want to make it so none of the buttons in the background can be clicked until the back button on until the info window is closed.
This is all within a flash movie, when i say window i dont mean a browser window, it just runs a movie symbol on the stage.
Cheers
p.
Enable And Disable A Set Of Buttons
I'm not sure how to do this or atleast the best way to do this.
I have a set of buttons that i disable at the start of an animation,
at the end of the animation i enable them, however if one of these buttons was clicked(it does its clicked statement) before the animation starts it should leave it disabled even at the end of the animation and enable the rest that wasn't clicked.
i'm referring to these buttons before the animation begin as:
_parent.mySexyButtons.btn1.enabled = false;
_parent.mySexyButtons.btn2.enabled = false;
...etc.
i enable them true at the end of the animation.
i should probably create an array and push the clicked btn out.
anyone know how to do this? and please explain. i know some of these function but not yet how to apply or use them. its like having a medikit and watch yourself bleed helplessly
Thx
ps. i recently found out that HTH actually means something like Hope this helps. see, i'm learning. :P [/code]
Disable/enable Buttons Flash 5
Ok, I am really close to getting this. Maybe some what can help me with the final piece....
I have 20 buttons in a movie clip. Each button is a movie clip with 2 frames. The first frame has the button and the second frame a graphic of the down state. There are 4 frames in the movie clip that contains the button movie clips, each with 5 button movie clips.
I have been able to get a button to advance itself to it's second frame to make the button stay on it's down state.
I have also been able to get buttons that are currently in their downstate to pop up when another button is pushed.
But I haven't been able to do both at the same time. Here is the code i am using. I place this code on each button inside of each of their movie clips....
on (press) {
_root.nextSection = "newleafin";
_root.content.gotoAndPlay(_root.content._currentfr ame+1);
}
on (release) {
nextFrame ();
for (i=1; i<21; i++) {
_parent["but"+i].gotoAndStop(1);
}
}
Ignore the on press stuff. It is to trigger something else. The code for the disable/enable buttons is the on release code.
I am able to use one or the other. The....
on (release) {
nextFrame ();
....Code will work if I place it on a button by itself.
The....
for (i=1; i<21; i++) {
_parent["but"+i].gotoAndStop(1);
....Code will also work but only by itself.
When I combine both pieces of code only the....
for (i=1; i<21; i++) {
_parent["but"+i].gotoAndStop(1);
....Code works. And that only works if i have 1 button with the...
on (release) {
nextFrame ();
....Code attached.
Any ideas on how to fix this? Any help would be SO greatly appreciated! Thanks in advance!
[MX 2004] :: ENABLE Or DISABLE BUTTONS
Hi,
can someone tell me how I can enable or disable a button, with actionscript for example. So the actions of the button don't work anymore for a certain period,
[that you can choose, (by activating it with another action)]
thx alot
Enable/disable All Buttons In A Movieclip
Hi there,
I have a movieclip that contains a number of buttons. I want to be able to disable/enable all the buttons within the movieclip using actionscript, however I would rather not have to go through each button with the following code:
my_movieclip.button1.enabled = true;
my_movieclip.button2.enabled = true;
etc.
Does anyone know of a way to disable/enable all the buttons in a movieclip?
Cheers,
Bob
www.bobcooper.org.uk
[F8] Disable/enable Buttons Between Levels
Hi there, 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.
- The main movie loads a new file:
//
drill.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("drill.swf", "container");
//
- From "drill.swf," a button loads "drop down 12.swf" along with code to disable a button on the "drill.swf":
//
on (release) {
loadMovie("drop down 12.swf", 2);
backbutton.enabled = false;
}
//
- When "drop down 12.swf" closes, I want to enable the button again, and have tried the following codes (on frame just before the "stop" frame) with no luck:
//
_level1.backbutton.enabled = true;
//
-or-
//
_parent.backbutton.enabled = true;
//
Any ideas on what's happening?
Disable Then Enable Buttons Thru For Loop
I have a series of 10 button instances each of which load videos for viewing. I load all my data in via XML and then run a for loop to populate all the necessary items, textfeilds & buttons.
I'm currently assigning my button actions via a function within my for loop. The problem I've encountered is that after a button is pressed I need to disable it in order to prevent my loadMovie action from re-executing. I then need to re-enable it when the user selects a new button. My current script is
ActionScript Code:
function LoadThumbList() {
if (loaded == filesize) {
for (i=0; i<total; i++){
var instanceName = "thumbnail_" + (i+1);
_level0[instanceName].Holder.loadMovie(thumbPath[i], 1);
_level0[instanceName].descTxt.text = description[i];
_level0[instanceName].vidPath=videoPath[i];
//Set Button//
_level0[instanceName].Button.onRelease = function(){
myPlayer.loadVideo(this._parent.vidPath);
}
}
}
}
Should I handle these items in two separate functions?
Thanks!
XML Menu: How To Enable & Disable Buttons
Hellow guys, I'm trying to figure out how to disable a menu item when it is clicked and enable it again when another one is clicked(that get's disabled). I know I have to remove it's event listener, but how can I put the listener from that button back? Can someone help me out please. Following is the code of my menu and click event.
ActionScript Code:
for ( var i:uint=0 ; i<menu.length(); i++) {
mainMenuItem = new TextField();
mainMenuItem.htmlText="<a href='event:" +getXML.xml.menuitem.@link[i]+ "'>" + getXML.xml.menuitem.@description[i] + "</a>";
mainMenuItem.addEventListener(TextEvent.LINK, onClickHyperlink);
menuContainer.addChild(mainMenuItem);
}
private function onClickHyperlink(event:TextEvent):void{
trace("Button Clicked");
event.target.removeEventListener(TextEvent.LINK, onClickHyperlink);
}
Enable/disable Buttons Dynamically
Hi all,
Depending on the variable's n value I would like to change the state of a button. I've tried something like this with no success:
["bt"+(n)].enabled = false; // or true
n takes the values 1, 2, 3 and should enable/disable the buttons' instances bt1, bt2, bt3.
When I try
bt1.enabled = false;
bt2.enabled = false;
bt3.enabled = false;
it works, but I really wanted it to be dinamic.
Does anyone know why this doesn't work?
Thanks.
Is It Possible To Disable Buttons For A Set Time Then Enable Them Again?
I am currently using this code to disable and enable some buttons. However on the page i'm doing I require the buttons to become inactive for just 15 seconds then become active again. Is this possible?
ActionScript Code:
btnArray = [_root.btns_cntr.homeMC.home_btn, _root.btns_cntr.profileMC.profile_btn, _root.btns_cntr.servicesMC.services_btn, _root.btns_cntr.productsMC.products_btn, _root.btns_cntr.weddingsMC.weddings_btn, _root.btns_cntr.colourMC.colour_btn, _root.btns_cntr.tariffsMC.tariffs_btn, _root.btns_cntr.bookMC.book_btn, _root.btns_cntr.contactMC.contact_btn, _root.main_cntr.btns_mc.organic_btn, _root.main_cntr.btns_mc.loreal_btn]MovieClip.prototype.disableBtns = function(btnarray){ for(i=0;i<btnarray.length;i++){ btnarray[i].enabled = false; }} MovieClip.prototype.enableBtns = function(btnarray){ for(i=0;i<btnarray.length;i++){ btnarray[i].enabled = true; }}
Claire
Enable/Disable Multiple Buttons
I know people have asked how to enable and disable buttons on screen but I wanted to know more of how people are doing this for multiple buttons. Say for example you have lots of buttons/clips with events what have you and on click you load in something over them. How do you all disable the clips behind them so that nothing interferes with the loaded content per say? DO you have a master list of buttons/clips and cycle through them in loop to enable/disable them all? Enable doesn't work for children, only the instance targeted.
Enable And Disable A Number Of Buttons
I have created 3 rdobutton mc to stage they are called rdobuttons1, rdobuttons2, rdobuttons3 they are in the bottom layer
the layer above has 271 buttons that need to enabled or disable the rdobuttons once the user has selected there options, each keyframe in the fla has 6 buttons attached they are called Q1_btn, Q2_btn, Q3_btn, Q4_btn, Q5_btn, Q6_btn and so on.
[code]
Q1_btn.onRelease = function (){
_root.rdobuttons1.gotoAndStop(2);// this will stop at a correct or wrong symbol
Q2_btn.enabled = false;// disable Q2 when Q1 has been activated
}
Q2_btn.onRelease = function (){
_root.rdobuttons1.gotoAndStop(3);// this will stop at a correct or wrong symbol
Q1_btn.enabled = false;// disable Q1when Q2 has been and so on
}
Q3_btn.onRelease = function (){
_root.rdobuttons2.gotoAndStop(2);// this will stop at a correct or wrong symbol
Q2_btn.enabled = false;
}
Q4_btn.onRelease = function (){
_root.rdobuttons2.gotoAndStop(3);// this will stop at a correct or wrong symbol
Q3_btn.enabled = false;
}
Q5_btn.onRelease = function (){
_root.rdobuttons3.gotoAndStop(2);// this will stop at a correct or wrong symbol
Q4_btn.enabled = false;
}
Q6_btn.onRelease = function (){
_root.rdobuttons3.gotoAndStop(3);// this will stop at a correct or wrong symbol
Q5_btn.enabled = false;
}
Isnt there an easier way to let flash calculate which buttons to enable or disable? (I think with < and so... but I'm not good in that..)
With 20 buttons the code is already huge and not easy to edit. If I want more buttons it takes to long to alter it.
the attach file has been created in MX2004
Listeners / ASBroadcast… Enable And Disable Buttons
We’ve got a dial that needs to control the “enabled” status of a button.
When the dial is set to “NORM ” (norm = ON), the button should be enabled.
When the dial is set to “Off”, the button should be disabled.
How do I get my button to know when the dial is in either the off or norm position and respond accordingly??
Disable/enable Movie Clips And Buttons
Hi, does anyone know how to disable/enable movie clips and buttons on particular frames?
I am using a .enabled = FALSE; command which I used once before in Flash MX but it doesnt seem to be working.
Does anyone know what I mite be doing wrong?
aly_ve
[AS2] Disable Buttons For A Length Of Time, Then Enable Them Again.
Hi
I'm using this script to go between sections with a fade out before loading the next section...
Code:
stop();
menuButton1.onRelease = function() {
loadPage("content/plan.swf");
};
menuButton2.onRelease = function() {
loadPage("content/build.swf");
};
menuButton3.onRelease = function() {
loadPage("content/images.swf");
};
function loadPage(pageName) {
movContainer.gotoAndPlay("out");
this.onEnterFrame = function() {
if (movContainer._currentframe == movContainer._totalframes) {
delete this.onEnterFrame;
movContainer.loadMovie(pageName);
}
};
}
... which works great, playing the "out" fade-out before loading the next section, but if for example the fade-out takes 8secs, if someone presses one of the other buttons before its got to the end, it plays from the "out" label again. So if someone gets inpatient and just starts clicking away they will just keep looping the fade-out and nothing will load.
Is there a way to disable the buttons after pressing for long enough for the fade-out, but then become active again? If its something that could work with my existing code that would be great.
Thanks
Wayne
Disable Current Button And Re-enable All Other Buttons Upon Click. Not Working?
Hello all,
Have a problem that seems easy but for some reason I just can't get it to work.
Code is provided below:
I have thumbnails generated automatically. On thumbnail click I want the current thumbnail to be disabled and all the others to be enabled. I am able to disable them fine using this.enabled=false, but am a bit lost how to get all the other thumbnails to be enabled.
Iit has to be something fairly simple.
Thanks!
Code:
//////////Thumbnail maker///////////////////////////////
function thumbnailer(k) {
loaded_counter = 0;
total_thumbs = _global.total;
var container = thumbnail_mc.createEmptyMovieClip("th"+k, thumbnail_mc.getNextHighestDepth());
container._visible = false;
container._alpha = 0;
var image = container.createEmptyMovieClip("img", container.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue;
callImage();
clearInterval(_root.container.picture.hold);
this._alpha = 50;
this.enabled = false;
};
target_mc.onRollOver = function() {
this._alpha = 50;
_root.firstSound.start();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
loaded_counter++;
counting_txt = loaded_counter;
if (loaded_counter == total_thumbs) {
main_menu.boton1._visible = false;
main_menu.boton2._visible = false;
grid_maker_01();
}
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.th"+k+".img");
}
I created a function that I thought would loop through the thumbnails to enable them all but it doesn't seem to work. Shown below.
Code:
//////////Enable All the Buttons//////////////////////////////////////////
function enableButtons() {
for (var cclip = 0; cclip<=20; cclip++) {
thumbnail_mc.th[cclip].enabled = true;
thumbnail_mc.th[cclip]._alpha = 100;
//trace("thumbnail_mc"+z);
}
}
Disable/Enable MC's
Hi there,
I have two or three different mc’s doing things like dragging, moving etc. within my clip. Now while working with one or the other I experience the problem that after leaving the one mc and working with the other the previous one can still move around.
In other programming languages you can have sometimes Disable/Enable, now my questions is how can I in AScript disable or enable an mc so I don’t have this overlapping?
Thanks aktell.
Simple For Loop + Array To Disable A Group Of Buttons
What's wrong with this code:
ActionScript Code:
var btnNames:Array = ["gertrude_0", "gertrude_1", "gertrude_2", "btnPrev", "btnStop", "btnPlay", "btnNext", "prevSec", "nextSec"];for(i=0; i< btnNames.length; i++){ btnNames[i].ivar = i; btnNames[i].enabled = false;}
after viewing some good posts at 1, 2, and 3, I tried to apply what I learned but it did not work.
It was originally
ActionScript Code:
for(i=0; i< btnNames.length; i++){ this.btnNames[i].enabled = false;}
Disable And Enable Button ?
Does anyone know if it is possible to enable and disable a button with an actionscipt?
for example, button clickable when movie plays frame 1-10, not clickable when plays 11-15, clickable again when playing 16- etcetera
Stop? Go? Enable? Disable?
Here is what I am trying to do:
I have 6 buttons. On rollover, each of the 6 should make the same graphic fade out while bring up a different word for each button. No problem so far. On rollout, the word should fade out while the graphic fades back in. Still no problem.
Here is where I have troubles. I don't want the other 5 buttons active while the fade in/fade out process of the selected button is going on. I want the animation to complete before another animation from a different button can occur.
The buttons' actions are defined on frame 80, and when the animation is complete, I have it go back to 80. I think the best solution for me is to disable all buttons actions starting on frame 81. Then when the animations are complete, the movie will goback to frame 80 and everything will be active again.
Any ideas?
Button Enable/Disable
ok heres the deal, ive got these two buttons, when i press the "down"
button once i want it to disable, but when i press the up button i want it to enable again, simple? yes i got that part done , but my problem is i want the button to disable on the second click, not the first, can anyone help me?
p.s. I am using this as a type of hydrolics, see when the button is pressed it moves the symbol down, when the second button is pressed it moves it back, then when pressed again it moves it up. I want it to disable after the second press......... if you need anymore of an explination i will attach an example if requested.
Disable MC But Enable Contents
Hi there!
I'm struggling with a Flash interface at the moment and am trying to disable a MC that contains buttons, but keep the buttons enabled.
Here's the setup.
I have an MC thats a button. When clicked, it expands revealing a new set of buttons. My problem is that when I disable the initial MC, it disables all of it's contents.
Is there a way around this?
[MX] Enable/Disable Button MC
Hi! I have a website with alot of button, when i click on a button i want to disable it, and as soon as i click on another button it re-enable the button.
All my button are Movie Clips.
I need a actionscript for it.
thanks!
Button Enable/Disable
I was wondering if there is a way to disable the buttons that are underneath a movie clip when it is playing. I tried this code but it does not work.
on (release) {
movie_left.play();
button_left.enabled = false;
}
Any help is appreciated. Here is a rough draft of the movie.
http://www.krekura.com/focustest2.htm
Jay
Can't Get The Enable/disable To Work
I have a movie clip (button) that I want to enable/disable on click but just ca't get it to work
I attached the .fla
I know thet the tween is not working in this examplample but please can you check the enabled stuff.......
onMouseDown = function () {
if (over) {
_root.meniu_mare.meniu.miscarea.gotoAndPlay(13);
this.enabled = false;
}
};
Thanks
Button Enable/disable
if you have a button on layer 1 and movie clip on layer 2 (above) covering the button why can I still click/rollover the button.
I wonder if there is a way to prevent this. I don't think I ever ran into this problem until tonight... err!
I'm sure its a depth issue or something......
Enable/Disable Button MC's
Can anyone help me on disabling and Enabling a MovieClip (acts as a button). Example: When a user clicks the "home" button, I want it to disable, and when the user clicks the "about" button, I want the home button to re-enable. Vice versa. Any of your examples would be fine. Please I just need this help!
Here is my ButtonClass Example: (MC acts as a Button)
class ButtonClass extends MovieClip {
public function ButtonClass() {
this.onRollOver = this.over;
this.onRollOut = this.out;
}
private function over() {
this.gotoAndPlay(2);
}
private function out() {
this.gotoAndPlay(9);
}
}
Enable Then Disable A Button
hi guys, first off i am new to the forum and i have found a lot of good information here and wanted to start by saying thats to everyone for all the good posts. that being said i would like to know how i can have a button on a movie clip check another movie clip to see what fram it is in before allowing the button to function. i have attached the swf file (or www.rubberwheeldumpster.com/theater.htm) so you han see what i am doing and i will futher explain exactly what i want to happen.
in this clip i have a room, i have a remote control that i want to control the lights and curtains, but when the curtains are open i dont want the curtain open button to work again, and same with the lighting.
Enable/Disable Problem?
In the last few weeks, I kept experiencing problems while watching certain movies, specifically at IGN. Half-way though a problem would pop up, and end up shutting down the movie and my browser. It said there was a problem with something to do with Flash 9, and I clicked 'Advanced' and wound up in this disable/enable screen and I disabled the thing that seemed to be the problem but it must have been the wrong thing to do.
Now I can't play any movie anywhere. All I need to do is find the folder or place where I was earlier and enable it but I have no idea how to get back to that options screen for Flash.
Scroll Bar Disable/Enable
I need a code that will enable and disable the browser window scroll bars when the browser window is resized smaller than my MovieClip (800x650) and will disable them when the browser window is bigger than the movie clip.
I have my publish settings set at 100% and becuase of this it does not allow the browser scroll bars to be enabled/disabled.
Thanks In Advance For Any Help You Can Provide!
Scroll Bar Enable/Disable
I need a code that will enable and disable the browser window scroll bars when the browser window is resized smaller than my MovieClip (800x650) and will disable them when the browser window is bigger than the movie clip.
I have my publish settings set at 100% and becuase of this it does not allow the browser scroll bars to be enabled/disabled.
Thanks In Advance For Any Help You Can Provide!
FMX - Enable And Disable MC´s And Levels
Hi there to all
I have a question about enebling and desabling MC´s(as buttons) and levels.
Frequently I see websites that when you click on one menu item, until something loads the menu is disabled, or in other cases is usuaç to see in gallerys, when you click an image the image open on top of things, and you can´t access the button or links being the image.
I thought on many ways to do this, the easiest way I thing:
1- is to put a tranparent button on top of the movie or image that loads whit some closing actionscript, but i think this way is not nice;
2-the second one I though is to write some function for enabling and disabling things, but if I have lot of elements it´s not nice, and the third one is to add a Listener to Stage whit some onMouseDown event that closes the level or the swf loaded.
What do you guys think?
I think I explaneid my case well, and My question is what is the correct way to do this, one example of this can be found on a fantastic website designed by the Guru himself, joshua Davis.
http://www.trollback.com.
Thanks in advance
Different Arrays Enable Disable Each Other?
Hi,
I'm sure a lot of you guys will laugh at my noobness, but here goes:
So I have a series of movie clips(info_mc) with a movie clip(hover_mc) and buttons(info_btn) inside them. The reason I did this is because I had problems controlling a movie clip in a button.
So what I would like to do is group the buttons together somehow so that when one is pressed the others go .enabled=false; I think setting up an array might be the way to do this, but I don't know how to set one up correctly.
But wait, there is more What I also want to do is have another series of buttons, that when pressed allow the array of info buttons to become enabled.
Can anybody help?
Thank you
|