ActionScript 3.0 :: Buttons Stop Working After Pressing Other Buttons?
Sep 14, 2009
I have three buttons and when I click the second one, the first stops working (e.g. no trace event and it won't go back to the frame "tab1") but the third still works. Then when I press the third button both the first and second no longer work. If I take out the gotoAndStop lines, the buttons work fine. The subsequent frames simply have stops on them.
b1.addEventListener(MouseEvent.MOUSE_UP,b1Pressed);b2.addEventListener(MouseEvent.MOUSE_UP,b2Pressed);b3.addEventListener(MouseEvent.MOUSE_UP,b3Pressed);
function b1Pressed(event:MouseEvent){ trace("b1 pressed");
[Code]....
View 4 Replies
Similar Posts:
Feb 13, 2006
I have 3 buttons and 3 MC's .each button tells it's MC to play and then stop at frame 15 and then tells the other two MC's to play if they are already at frame 15 and if not do nothing.i have it working to a point but after pressing each button a few times the script see's to stop working.
View 7 Replies
Jul 1, 2009
I'm making a website using flash,And on my movie it says Welcome to Blah Blah Blah,And then a button appears, To make sure my button works,The writing turns to bold and goes bigger,When the button appears it works and goes bigger, Until it reaches the point in the timeline where it has stop();It stops my movie from looping or restarting which is what i want, But it stops my buttons from working aswell, How to keep my button working but movie stops,If you want me to explain more just ask
View 1 Replies
Oct 29, 2009
I have 2 main movie clips, one for the menu bar and one for the content, there is then a movie clip within each one of those, one to hold the set of buttons, and one to hold the content movie clips. The menu bar has a control to flip between 2 sets of buttons. the viva content button works fine to begin with, but after the menu bar control is clicked, the content buttons stops working. Code is as Follows: All of the code (bar a few stop() flags on cirtain frames) is located on frame 1 of the root, which is the only frame on the root.
barControl.barContent.barUp.addEventListener(Mouse Event.CLICK, menuSwitchHandle); barControl.barContent.barDown.addEventListener(Mou seEvent.CLICK, menuSwitchHandle); barControl.barContent.barMenu.vivaBtn.addEventList ener(MouseEvent.CLICK, vivaHandle);
[code]........
View 3 Replies
Oct 29, 2009
I have 2 main movie clips, one for the menu bar and one for the content, there is then a movie clip within each one of those, one to hold the set of buttons, and one to hold the content movie clips.
The menu bar has a control to flip between 2 sets of buttons.
the viva content button works fine to begin with, but after the menu bar control is clicked, the content buttons stops working.
Code is as Follows:
All of the code (bar a few stop() flags on cirtain frames) is located on frame 1 of the root, which is the only frame on the root.
barControl.barContent.barUp.addEventListener(Mouse Event.CLICK, menuSwitchHandle);
barControl.barContent.barDown.addEventListener(Mou seEvent.CLICK, menuSwitchHandle);
[Code]....
View 1 Replies
Mar 6, 2009
So i'm making this site where there are bottles floating in the ocean that are nested buttons so i can have them sway as well as have a mask on the bottoms.When u click a button all bottles should move to the left side and eventually the content will appear.I've added a trace for debugging purposes ... for some reason the buttons only work a few times.[code]
View 4 Replies
Aug 23, 2011
I have a SWF with two buttons that both direct users to new URLs. The first frame contains an FLV. During the playing of the FLV, the buttons work fine. When the FLV is complete, the SWF plays, resizing and moving the buttons. During the movement of the buttons I can click them and they work--while moving. But they don't work once the SWF reaches the last frame and stops. I need the buttons to work the whole time, especially at the end. [URL]
View 3 Replies
Aug 2, 2010
My site has a thumbnail gallery that loads larger images that then jump to sections containing flash video. Everything works great when I test my movie and all buttons work. But after clicking on one certain button (my "about" button in the header), all of a sudden the large image buttons stop working and won't jump to the sections. Although they do still display correctly when over, down,ect.
View 0 Replies
Feb 19, 2008
I used kirupas tutorial 'Complex Button RollOver/Rollout Effects' to make a menu that slides down when you roll over it. I have buttons inside that menu_mc - but they dont work.
My question is - does the on enter frame function prevent buttons from working?
Here is the code that is inside my menu_mc:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
[Code].....
View 6 Replies
Jan 12, 2009
Now I'm working on a Website which contains a XML Carousel Gallery, with the coding below.Now this all happens on the homepage. I would like to stop the xml on other frames though. Is there any coding I can use on my Buttons, to stop the XML working while going to another frame?
stop();
var folder:String = "thumbnails/";// a folder for thumbnail files + an XML file
var total:Number;
var radiusX:Number =180;
var radiusY:Number = 10;
[code]...
View 2 Replies
Oct 2, 2009
I have a "website" in flash thats for a project @ school and everything works fine apart from one problem.When I click on "what", "positives" or "negatives" and then click on "Home", "Security", " Conclusion" or "Sources", the screen freezes and just wont do anything. I am at a loss as to why this does this as the coding seems finethe the .flaYeah, I'm sure the way I have done it isn't the best way of creating a site but I'm still developing and havent got the time to restart it
View 7 Replies
Nov 24, 2009
I have a .fla file that consists of four images that appear, pause a few seconds, and disappear in sequence. Each image has an associated button that links to a different url. There are also four navigation buttons, should someone want to jump to a particular one of the images. My problem is, the navigation buttons use a gotoAndStop action to take the user to a specific frame. After one of those buttons is clicked, the buttons that link to the urls no longer work. They all work fine until a gotoAndStop action is called. The navigation buttons continue to work.
View 0 Replies
Sep 27, 2011
The problem is my buttons stop working after a certain point. Now I think it's because I need some kind of loop somewhere, but I'm not too sure. I've included a trace in the code so I know the button is not working anymore. (At least the function of what I want it to do).
[Code]...
View 0 Replies
Mar 18, 2009
I'm using the action script 3 code below to run my main menu buttons, there are 7 in total. The trouble I have is when a video is playing, the user might not stop a video playing before clicking on another main menu button. So the user could go to a different section with video still playing with the audio etc.
// News
content_mc.news_btn.addEventListener(MouseEvent.CLICK, link1);
function link1(Event:MouseEvent):void {
content_mc.gotoAndPlay("news");
}
So I thought I'd write an if statement, that asks if video video is playing then stop(). Trouble is can't get one to work.
View 1 Replies
Jun 16, 2009
I have been working on this photography website, N its a full screen flash website showcasing photography. At large screen resolutions the buttons work fine, but when the resolution is lowered to a 1024 * 768 or something similar some buttons work and others don't.
View 2 Replies
Feb 19, 2010
I have a container mc called lightBoxCont that I load a class into
Code:
lbx.initLightBox(12, Number(slideIndex), urls, titleText);
lightBoxCont.addChild(lbx);
when the user clicks on a thumbnail the user can close the lightbox by clicking on a button like this
Code:
this.removeChild(lightBoxCont);
This all works (or seems to). If the user then clicks on another thumbnail the light box appears again, but the buttons don't work. These were added in the class lightbox.
Interestingly if I trace teh number of children that lbx has I find that each time the user presses on a thumbnail it goes up. First time its about 30, next time its about 60, next time its 90 and so on.I think this is causing the problem with the buttons not working.
View 5 Replies
Jun 4, 2010
I created a basic slideshow with a Next and Previous button. I attach this code in the first frame of the main timeline:
Code:
stop();
next_btn.addEventListener(MouseEvent.CLICK, moveNext, false, 0, true);
function moveNext(e:MouseEvent):void {nextFrame();}
prev_btn.addEventListener(MouseEvent.CLICK, movePrev, false, 0, true);
function movePrev(e:MouseEvent):void {prevFrame();}
It works fine, until I get to the last frame of the timeline (10th frame in this case). Then both buttons cease functioning. Why? The listeners should still be working.
View 2 Replies
Mar 1, 2005
I really need to make this work [URL]. My problem is that when I add an animation to the mask, the buttons that I have inside a movieclip, they stop working as a button.
View 14 Replies
May 30, 2010
i'm a flash newb, wrestling with actionscript 3 and ran into a problem with a drop down menu.the menu is composed of nested movie clips that open and close, and contain buttons that control a ui loader in scene 1. it seemed to be working all right until i realized that after opening and closing and reopening a submenu, the buttons that worked the first time stopped controlling the ui loader. since there aren't any error messages i'm kind of at a loss as to what needs fixing.
View 7 Replies
Feb 25, 2010
I run an external script from flash(as3) that opens up an Jquerry thickbox with php tabel (it gets results from mysql db). But when i include some other css for centering my .swf in the middle(both x/y), my jquerry buttons in flash stop working.this is the css code:
div.ex
{
height:600px;
width:930px;[code].....
and the webpage: [url].....(php/mysql in jquerry not yet included, but i tested before)
View 3 Replies
Jan 30, 2012
What im trying to acomplish is to list some mcs by pressing buttons.I got 5 buttons and 5 mcs.If the user press for example 3 buttons the objective is to list that 3 selections in same selection order and if the user deletes the 2nd of the 3 selections the 3rd selection takes the place of the 2nd selection (a population list). I attached a link to the source file.
View 3 Replies
Aug 12, 2009
im working on a zoom/pan gallery and i have a problem that i can't solve.URL...the pan buttons are not working but the zoom and reset buttons works. im working on movie the image using the mouse now, if you will hold the image and move it it will drag it on stage.the image is a loader the loads and image and placed on screen.there is a mask on top of it and a frame that indicates the size of the gallery.when the user pan the image loader content i want it to stop as soon as it gets to the gallery frame,but i cant seem to find the best way to do it.so basicly when the image is in 100% i dont want the user to be able to drag it but after you zoom the user will be able to drag it but only to the edge of the frame so there wont be any white spaces.i tried a lot of different ways to do it but all of them are complicated and not working the way that i want them to work.
View 2 Replies
Apr 27, 2011
So I'm making a game which has different scenes. One of my scenes has six buttons, of which need to be pressed in a certain order to progress in my game.
View 9 Replies
Dec 10, 2002
I have 12 different buttons that are keyboard keys that play a sound when you click on them.I am wondering if, in addition to that, one could hit, for instance, the ` key for this first one, the 1 key for the second one, the 2 key for the third one, etc..etc
View 1 Replies
May 15, 2005
(Flash 5) I have 12 different buttons that are keyboard keys that play a sound when you click on them. I am wondering if, in addition to that, one could hit, for instance, the ` key for this first one, the 1 key for the second one, the 2 key for the third one, etc..etc.. Is there a script for that, in addition to the click?
View 1 Replies
Aug 20, 2010
I have created set of dials/meters with moving arms that change as buttons are pressed. The arms move based on a "Classic Tween" set-up I created. I then applied my buttons to the flash document and then coded in some "gotoAndPlay" on an actions layer to get the arms on the dials to move when I click on the buttons. My problem is that since I have 3 buttons (High, Medium & Low) and the tweens follow one frame right after another (0, 41,78) there is no stop. When I click on Low it plays the low tween, the medium one, and the high tween. When I click on the medium it plays both the Medium and then the High. The High button obviously only plays itself. I don't know how to insert a stop between these buttons.[code]...
View 10 Replies
Sep 13, 2010
I have a project where i have 5 buttons (all on seperate layers) that i want to link to frame 2, frame 3 frame 4, frame 5 and frame 6.So for example i want my about button to link to frame 2 and latest news button to link to frame 3.The seperate pages are housed on the 'page layer' layer.I am using the built in code snippets in cs5 to do this, therefore i am using the 'click go to frame and play' command and changing the frame number accordingly.My problem arises when i use the stop command on the first frame. If i dont use the command the swf cycles through the 6 frames continously, but when i do use the stop command the buttons do not work as the application has stopped.
View 7 Replies
Sep 17, 2010
I have a Flash playerbutton that plays MP3:s. I have about ten of them on a page. How do I stop the other(s) from playing when I press a new playerbutton?
It seems that I have to number the Flash playerbuttons somehow and send out a stopAllSounds(); or similair.
View 9 Replies
Feb 6, 2006
I have buttons in my container that fade out at one point of my website. But they stay active as obviously the movie that is playing at that point is loaded into the same container. How do I stop the buttons from being active?
View 2 Replies
Feb 8, 2009
I'm building a point&click application with hundreds of buttons, functions and so on
I've added to the main gamepanel two buttons, one opening a navigation map and the other opening a paper with a long text. There is nothing strange, no interactions with those addings (both loaded with attachMovie or loadMovie, doesn't matter).
Obviously, when the map or the text are opened, the buttons below continue to be clicckable and usable...It exist a way to stop all buttons in all scenes?
View 1 Replies