Problem with double-button Flash CS4... help!

I'm relatively new to Flash... I'm trying to understand this.

I button1_btn on a frame at the beginning of this animation, and on this image I add script:

button1_btn.addEventListener (MouseEvent.CLICK, showimage1);

function showimage1(event:MouseEvent):void {}

gotoAndPlay("image1");

}

It works fine, but I also have other buttons that ends up taking a different picture where this button is not on.  So I add to the scene in this framework and assume it will be gotoAndPlay("image1") again when you click it, but when I test the movie and click the image later, nothing happens.

I tried maybe add the original script in that frame as well, but then I test and it said I have duplicated the script and does not work.

Why the original script works for this button, no matter where and when it manifests?  It's the same key basically, no?

Help, please!

Any instance of an element that you add must be in the presence of some code works with it.  So if you add a new instance in a new keyframe, it doesn't have that the original code is awarded because this code has been assigned a time where this code and the original instance is back.

A way around this is to use the visible property to hide the button when you do not want to show, but keep its continued presence by keyframes in the timeline.  Another way is to give the button a new name and code proceeding where on the timeline.

Tags: Adobe Animate

Similar Questions

  • Problem with double buttons on a form

    Hello-

    I have a single form with two buttons, currently named "Button1" and "Button2". The two buttons guide DW/php code by default to update the records in the database (in MySQL), but I want the page redirect after the update to be determined by which button was pushed.

    I use $_GET ['ButtonName"] direct action based on which button was used to send the form. Unfortunately, I can't redirect the page where I want.

    The code I use is:

    =======
    If (isset($_GET['Button1'])) {}
    $updateGoTo = "edit_onepage.php";
    } else {}
    $updateGoTo = 'account.php ';
    }
    ========

    If the user sends using Button1, I want that they passed to the 'edit_onepage.php '. If he submits using Button2, I want him sent to the 'account.php '. Unfortunately, no matter how I play with this code, the form is always to send 'account.php', whatever the button is pressed.

    Anyone can see what I'm missing here? Thanks in advance for your advice.

    Oops! Found my mistake. It works if I retrieve information button with ' $_POST ', not ' $_GET '. I'll leave this place in case someone else has a similar problem.

  • My cloud of Adobe installer is unable to connect to the animated. No problems with internet... Help, please

    My cloud of Adobe installer is unable to connect to the animated. No problems with internet... Help, please

    Hello

    Thank you for using https://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html > and all the steps in "troubleshooting connectivity issues.

    If necessary, and for any other question, click on through http://helpx.adobe.com/contact.html and so "open" Please use the chat, I to can I part had the best experiences. An employee of Adobe Preran I quote: the chat button is enabled as soon as there is an available to help agent.

    Hans-Günter

  • have a real problem with linking buttons to pages

    Hello

    Right, I'm pretty new to Flash CS5 and doing a simple website in Action Script 3.0.

    I have set out four pages I want, and that you have created a button for each page on each page.

    I was told that a script simple stop stop pages acting as a movie.

    I entered:

    14:00


    Stop();

    function button1_clicked(e:MouseEvent): void {}
    gotoAndStop ("home");
    }

    function button2_clicked(e:MouseEvent): void {}
    gotoAndStop ("about");

    }
    function button3_clicked(e:MouseEvent): void {}
    gotoAndStop ("galleries");
    }

    function button2_clicked(e:MouseEvent): void {}
    gotoAndStop ("about");
    }

    Button1.addEventListener (MouseEvent.CLICK, button1_clicked);
    Button2.addEventListener (MouseEvent.CLICK, button2_clicked);
    Button3.addEventListener (MouseEvent.CLICK, button3_clicked);
    Button4.addEventListener (MouseEvent.CLICK, button4_clicked);

    He said cela and buttons to link to relevant pages.

    When I test the movie buttons start flickering and pictures...

    Please help it is frustrating!

    Thank you

    Chances are you have a problem with the code in your file.  Do you get any error messages?  You should because of the double function in code that show you.  You can't have two functions named button2_clicked.  The last should be button4_clicked and should probably go elsewhere...

  • Problems with the buttons (on the area of State/Hit)

    The site I'm getting is:

    http://www.RelicRockBand.com

    If you go to the "Biography" section, you'll see four links that work as buttons of reversal.  Now, if you go to the 'Media' section, you will see 6 links that do not appear to react correctly as buttons of reversal.  They fulfill their function, but it is difficult to get the button to appear in its "underline" in the State.  I don't know if it is a problem with the over State, the status of success or another problem with how I built the site.  If you want to take a look at this, go to:

    http://www.uvm.edu/~nmphilli/Relic_Website/Flash/Relic_Webpage.fla

    to get the FLA for the site.  The concerned items are nested as follows: in scene 1, on the content layer, label image 'Media' (frames, 16-21), you will find Media_Fader, where is Media_Content, in which are several buttons, each with getURL actions that are applied to them.  Any help would be fantastic!  Thank you!

    -Nic

    The question always involves using the textfield links.  Remove the textfields in all settings inside the buttons and your problems should go away.

  • Problem with the movie control, please help!

    Hello
    I am a beginner in Flash and I need help with action script. I'm building a website on a SWF file and I can't navigate. I will guive you a simple example just to expose the problem.

    Let's say I have a SWF with two buttons. (Here is a picture to illustrate the situation)
    Now, if I press button1, I put the action: "liberation gotoAndPlay (2)" to play "anim1" until the framework 6. Then on setting 6, I want him to jump to frame 10 and play "anim2" then stop.

    And if I press button2, I want to take this path: "liberation gotoAndPlay (2)" to play "anim1" again until the framework 6. But now, instead of jumping to the frame 10 as does the button1, I want him to jump to frame 20 and playing "anim3" and then stops.

    I hope that my explanations are clear enough. Basically I want the two buttons to play anim1 but at the end of anim1, each take a different path. Hope someone can help me on this one.

    Thank you very much in advance!

    Try:

  • Anyone having problems with the last Flash?

    Update of Flash and Java yesterday, and since then had problems with plugin container closure etc.

    Slowly began to disable add-on first and then this morning off Flash since Chrome was having a similar problem.

    No more problems and helped all add them we...

    Thoughts anyone?

    http://support.Mozilla.org/en-us/KB/reset-Firefox-easily-fix-most-problems

    Reset worked for me

  • Why do I have problems with my Adobe Flash Player crashing constantly on some games on Facebook?

    I play a lot of games on Facebook. I started to have a problem with my "flash player crashing..." I uninstalled all Adobe products and their reinstalled nothing doesn't. It seems to happen more when I use the Zynga Games. I don't understand why this is the case and certainly do not know what to do about it. Of course, I'd be grateful for any help you can give me!

    Some Flash games may take longer to load, so you need to increase the time-out on the protection of the accident. See Adobe Flash plugin has crashed - avoid that it happen.

  • dv2120us problem with Quickplay buttons.

    Hi, I had a problem with my laptop. These are real (not the quickplay button) quickplay buttons but the game, mute, volume, keep buttons etc. to control themselves and increase the volume and mute itself randomly. I already uninstalled the driver of buttons quickplay but the volume and make everything always the same thing.

    Help, please! HP is certainly not helpful at all...

    You may have a hardware problem.

    However, before moving on to this conclusion, you try to reinstall the software of HP Quick Launch?

    If you have, it would be a hardware problem, try to reposition the ribbon cable, open Control Panel switch and re - adjust the ribbon cable.

    If you want to make yourself download HP Pavilion dv2000 Notebook PC Maintenance and Service of Guide

    You will find how to open the switch Board.

  • Problems with harvest and select Quick - HELP!

    Well, I'm frustrated. When I try to use the quick select tool or a photo in Photoshop CC, the screen keeps cycling between showing my image and a black screen. For this reason, I don't see what I do to select anything or to crop the picture correctly. This isn't always as that, so I'm puzzled to understand how to fix it. It continues to Flash between the two, spend more time on the black screen of the photo.photoshop2.jpgphotoshop1.jpg

    Hi mamaliciousbaby,

    This was a known problem with Windows 8 graphics processor unit (GPU) pilots. They work with sellers of GPU and Microsoft to reach a solution.

    At the same time, changing your GPU mode to 'Basic' in drawing preferences should get rid of the flicker of the screen black.

    To do this, first go to preferences--> Performance.

    A dialog box appears, locate the "Graphics Processing" box:

    Click Advanced settings and change the drawing in "Basic" Mode

    Click OK and you should be able to continue without more questions.

    This problem can also be resolved by upgrading your hardware, here are some useful forum threads which can also answer many of your questions:

    Why Photoshop Blink? (Windows 8) and Black flickering screen (for Mac).

    I hope this helps!

    Clarice

  • Problem with cancel button dialogue ADF

    Hello
    I am facing a problem with the dialogue ADF Cancel button. Is it possible to make the button "Cancel" immediately for dialogue? Currently, the Cancel button is not immediate for a dialogue (type: okcancel) and when the user clicks the Cancel button, validation messages are coming even if the dialog box is closed successfully. Any help is very appreciated.
    Thank you
    Rahul

    You can use a dialog box with only the OK button and put your own button cancel on the dialog box. This button, that you can assign immediately...

    Check "Using the buttons in custom dialog" to http://docs.oracle.com/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_dialog.html

    Timo

  • Problem with opening the flash drive

    I can't open any Flash drive. I try to install the latest version they wil not open, even with the plugin and activex. What should do? While trying to fix it, I uninstalled all the flash player aswel and activex plug-in. How to fix this?

    To help out we will need the following system information:

    When troubleshooting problems with Internet Explorer, we recommend that go you through the steps described in these two FAQS:

    Thank you

    Chris

  • Buttons Flash CS4 [was: Buttons]

    I have a mac with dreamweaver cs4. I'm just trying to use a flash button pre-made that I know I can do on a pc in an older version of dreamweaver. However, I can't do this on my mac in cs4. someone knows how to fix this or something? I know its better to make your own I have for my site, but like I said its just a flash button of an entry before the site page.

    [Subject line edited for clarity by Moderator]

    Flash Flash buttons, Flash text and elements were all removed from Dreamweaver CS4 (see: http://kb2.adobe.com/cps/402/kb402489.html). You can use them no longer.

    They were removed for various reasons, but mainly because the Flash keys make it an inaccessible website if no other method of navigation is provided.

  • Problems with tables in InDesign CS4

    Recently upgraded to CS4, I had problems with editing features in tables. The problem occurs after working on a table for awhile - where in a first time, I am able to change the color of the outline and weight very well, but then, after a period of time, it becomes buggy and I'm more able to bring additional features line/column, as changes not being not able to set the color of the outline to zero. The part-time work around, I've found is to leave InDesign and re-launch, and then reopen the document, how can I then change the traits of the table - but only for a while until the problem again and I have to repeat the process of exit and restart. I was wondering if anyone else has had a similar problem and could know a fix (or better work around), or if this is a known bug in CS4. I don't remember what is happening with the change table in CS3. Any help is greatly appreciated.

    I am not fond of the tables. Never been able to do the table styles work properly.

    My method to treat stroke selct the cells and use the proxy in the control panel to set the stroke or STROKE I want to edit, and then change the attirbutes. I find sometimes that I need to change the weight, sometimes the type of stroke, or sometimes even both. If you have applied a troke to a cell that is shared with another, then go in the other cell, I find that you must explicitly choose this feature again to change.

  • problems with SWFs in FLASH CS3

    Hi guys.

    I have problems with the construction of my Web page with Flash.

    I imported the swf files I want in my library, but when I try to put them in folders my computer seems to seize up and takes a few minutes to do the job, and can be very slow and I am unable to what anyone on PC while he does this.

    I do not have incounted this problem before on my PC but I have had it for over 5 years now and I'm on reason to buy a new PC in spring next year when Windows 7 is available on all new computers.

    I'm using windows XP with all updates available and updated upgraded to 1 GB of memory last year.

    Is my old PC to work with FLASH CS3 or is this another problem entirely?

    Any help would be welcome.

    Thank you

    earthflyer

    your ram is low.  so, that "probably the main problem.  You should have 2 GB, at least, and you will see a noticeable difference with another 1-2 GB (total = 3-4 gb).

    When you get your new computer, make sure you get at least 4 GB.

Maybe you are looking for

  • Call from falling down when it is connected

    I use android 4.4.2 version I had connected successfully, but when I do a call falls when it is answered

  • Safari will not connect a secure website

    Impossible to connect to the Web site of the lumo energy checking everything reset safari and used to help - made everything I how do anyone have clues

  • Unknown device

    HP Notebook model: ENVY m6. Windows 8.1 operating system. Suddenly missing and cannot find the device appropriate for the hub driver USB root. Tool «Updare Driver...» "in the Device Manager could not find the driver, possibly the INF, lack of informa

  • problem with start after updates

    MY computer is in a continuous loop.  It closes down to install windows updates and now it opens with the configuration of updates and gives thanks to the step 1 and 2 and then stops.  I tried to press F8 when it restarts and then try to start in saf

  • Lost all my icons on the desktop

    Lost all my icons on the desk top and cannot get back them?