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


Similar Posts:


30 Buttons With Sound But Only Plays The Pressed Ones In Sequence?

Jun 12, 2010

I�v build a simple flash projector to offer to my local fire department Essentially they used to in internal audio alarms to warn firefighters when there is an accident, fire, aggression, etcIn the version 1.0 they click several buttons, one to play the alarm sound, otherto announce the vehicle or vehicles that goes out, and a last one that says what is occurring.

The problem they report is that the sounds play immediately when you click in each of the buttons, and even the sound overlaps the other, which makes they click on each button and have to wait for the sound to finish and then click next. All this is normal because I associated the sounds to the buttons. What do I need to do the flash in this order in the version 2 of my projector:

1 The Fireman choose the type of alarm you want to play and click the button corresponding (but do not want the sound to play now) let's imagine that he pressed the button "alarm 1"

2 The Fireman choose (s) vehicles which are going out to the occurrence (but do not want the sound to play now) let's imagine that pressed the button "ABSC01"

3 The Fireman choose the type of occurrence (but do not want the sound to play now) we will imagine that pressed the button "fire"

4 finally the fireman holding down the "PLAY" (the green on on the top of the image) and this Makes the sounds selected to start playing in sequence, liker "Alarm 1" then "ABSC01 "and then" Fire "

Logically speaking I believe that each button must declare a variable associated with every unique sound, and then pressing the button takes the variables and plays them in sequence and without overlapping sounds.

View 1 Replies

ActionScript 2.0 :: Movieclip Plays Like Moviereel With Buttons

Apr 3, 2011

I have a movieclip that plays like a reel. Inside the movieclip I have 5 buttons When the user clicks the button it should take the person to new scene but it does not work.

I am using actionscript 2 code.

My scenes are called Scene 1,2,3,4,5 My movieclip has instance name buttonreel I have buttons with instance names bt1, bt2, bt3, bt4, bt5

So when I double click on the movieclip and the code I have written for bt1 is:

[Code]....

similar code for bt2 which should go to scene 2 but it does not work

View 2 Replies

ActionScript 3.0 :: Disabling Buttons While A Movieclip Plays?

May 29, 2010

Is there a way to disable buttons while a movieclip plays?Here's the logic in english:If you mouse_over buttonA and buttonB, fly_mc plays.If you mouse_over buttonC, flutter_mc plays.While fly_mc is playing, flutter_mc cannot play, and vice versa.

View 2 Replies

ActionScript 2.0 :: Letting A Movie Clip Finish Before A New Plays With Buttons?

Aug 14, 2009

I am creating an online banner where I want movie 3 movies clips to move to different parts of the banner when a button is rolled over. the 3 movie clips move independently of each other. When I roll off the button I want the clips to move back to where they started. I have achieved this fine, but the problem is when i roll over a different button on the banner the file automatically plays the commands for that button of course. What I need to do is have each movie clip finish before the next button plays it's commands. The coding I have for the buttons is just simple.

PHP Code:
on (rollOver) {
cta1.gotoAndPlay(11);

[code]......

View 0 Replies

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

ActionScript 3.0 :: Compatibility - When Made Into Pdf And Opened The Movie Plays Automatically No Black Screen And The Buttons Do Not Work

Sep 2, 2009

I have created a .swf with flash cs4 actionscript 3. I placed it into an indesign page (cs4) and then exported to make a pdf. The movie played correctly before being placed and made into pdf. I have a stop in the first frame of the movie. So when you open the movie there is a black screen (first two frames only) with two buttons, a start and a stop. click the start the movie plays. when made into pdf and opened the movie plays automaticly no black screen and the buttons do not work.

[Code]...

View 3 Replies

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

ActionScript 3.0 :: Flash File Plays One And Stops In End And Only Plays Again

Dec 11, 2011

I want my flash file plays one and stops in the end and only plays again if  play again button is pressed.How do i do it?

View 1 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 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







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