button does not properly

Hi all

I created my first website. I managed to create a home page. On the home page is a key enter site, which once pressed begins the

timeline... I have a layer of measures/labels that I write my code in. The number 'one' is my code below.

Stop ();

enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked)

function buttonClicked (event: MouseEvent): void

{

Play();

}

So far so good.

Once I click the entry site of the screenplay scrolls along on my content page (label 2 in the actions/labels layer). This page has more buttons that will lead to different pages of the site: about, showreel, contact etc. I created these pages button symbols, and each has its own layer on the timeline.

On the keyframe 93 where the second label is I put a stop (); action. The chronology ends here. I want to now click on one of my new buttons and the chronology of the Act, to this page. This is where I'm having a problem. I thought that I copy and paste the code for the button at the top and change the name of the button page_1, but when I test the movie is no longer stops on image one and runs through the end of the timeline with nonstop.

I get a compilation error:


Location Scene 1, Layer ' actions/labels', box 93, line 5

Description 1021: duplicate function definition

Source function buttonClicked (event: MouseEvent): void

on the content page, my second home label, in line with the actions/labels, I used this code:

Stop ();

page_1_btn.addEventListener (MouseEvent.CLICK, buttonClicked)

function buttonClicked (event: MouseEvent): void

{

Play();

}

See you soon,.

Spaldo

leave the code below unchanged:

Stop ();

enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked)

function buttonClicked (event: MouseEvent): void

{

Play();

}

.

On the image key 93 where the second label is, join:

Stop ();

page_1_btn.addEventListener (MouseEvent.CLICK, buttonClicked)

Tags: Adobe Animate

Similar Questions

  • The ARC mouse left button does not properly

    The other day, I bought a mouse Arc.  My right button works fine, but my left button does not respond unless I have push down hard and hold the button for one second.   Simple click, it translates the button press then to click but nothing happens.  I guess it's just a bad mouse and not a systematic design problem?

    * original title - Arc 'hard click' buttons *.

    Hello

    · Do you remember the latest changes on the computer before the show?

    · What is the service pack installed?

    Try the steps listed in the link below: troubleshooting failures in the response to the mouse or wireless keyboard: http://support.microsoft.com/kb/838398

  • camera button does not properly

    Hello world
    I bought my Xperia Z2 a few days ago and have strange question - the button of my camera does not work in all modes. I can open the camera by holding the button application but may not take any picture in auto mode. Key works in 4K video Time-Shifting, effects AR, burst mode: Timeshift. I don't check Vine, info-eye and social live modes only. I can take pictures by pressing the button of the screen in all modes. Do you have ideas of how to solve this problem?

    This is a button in two stages, firstly it is very light and it works like a camera focus button, but you should feel click sort of half that you press harder and it takes the photo like a true compact. If you do not feel any degree of pressing, it could be faulty, it's just a bunch of silicone with plastic buttons, so it could be incorrectly installed at the factory.
    The last time, just to be safe, try to start the phone in service mode (restart and when sony logo appears, press volume down until it starts up fine and you see the gray text on the main 'safe mode' screen if so it won't work - reinstall android with companion of sony, and if the system repair will not any changes consult the phone in sony Center or the store where it was) bought.

  • Simple button does not properly?

    The button works correctly, but for some reason when I run the flash page, the button looks with the alpha to 50%. I reduced to var elasticTween3:Tween = new Tween (my_box, "alpha", Strong.easeOut, 0.5, 1, 1, true);  line of code, but I need this line to fade the alpha of 50% to 100% when the mouse over occurs. Am I missing something?

    Here is my code:

    Import fl.transitions.Tween;

    Fl.transitions.easing import. *;

    Import fl.transitions.TweenEvent;

    import flash.events.MouseEvent;

    var myTween:Tween = new Tween (my_box, "alpha", Strong.easeOut, 1, 0.5, 1, true);

    myTween.stop ();

    var elasticTween1:Tween = new Tween (my_box, "x", Elastic.easeOut, 35, 45, 1.5, true);

    var elasticTween2:Tween = new Tween (my_box, "x", Elastic.easeOut, 45, 35, 1.5, true);

    elasticTween1.stop ();

    elasticTween2.stop ();

    my_btn.addEventListener (MouseEvent.MOUSE_OVER, hover);

    function hover (e:MouseEvent) {}

    myTween.start ();

    elasticTween1.start ();

    elasticTween2.start ();

    }

    var elasticTween3:Tween = new Tween (my_box, "alpha", Strong.easeOut, 0.5, 1, 1, true);

    elasticTween3.stop ();

    my_btn.addEventListener (MouseEvent.MOUSE_OUT, out);

    function on {(e:MouseEvent)}

    elasticTween3.start ();

    elasticTween1.start ();

    elasticTween2.start ();

    }

    Make sure that the code runs only once.  That is to say, this image should not be reinstated.  Use the trace() function to confirm, if you think that you have prevented the re-entry.

    :

    Import fl.transitions.Tween;

    Fl.transitions.easing import. *;

    Import fl.transitions.TweenEvent;

    import flash.events.MouseEvent;

    var myTween:Tween = new Tween (my_box, "alpha", Strong.easeOut, 1, 0.5, 1, true);

    myTween.stop ();

    var elasticTween1:Tween = new Tween (my_box, "x", Elastic.easeOut, 35, 45, 1.5, true);

    var elasticTween2:Tween = new Tween (my_box, "x", Elastic.easeOut, 45, 35, 1.5, true);

    elasticTween1.stop ();

    elasticTween2.stop ();

    my_btn.addEventListener (MouseEvent.MOUSE_OVER, hover);

    function hover (e:MouseEvent) {}

    myTween.start ();

    elasticTween1.start ();

    elasticTween2.start ();

    }

    var elasticTween3:Tween = new Tween (my_box, "alpha", Strong.easeOut, 0.5, 1, 1, true);

    elasticTween3.stop ();

    my_btn.addEventListener (MouseEvent.MOUSE_OUT, out);

    function on {(e:MouseEvent)}

    elasticTween3.start ();

    elasticTween1.start ();

    elasticTween2.start ();

    }

  • Satellite A300-15J: touch button does not work properly from standby

    Recently I bought this laptop, works great except one problem...

    There is touchbutton for LED switching power.
    When I close or put the laptop in sleep, this button does not work like that but activates or disables the sound.

    I'm using Vista, I wonder if there is any patch or something for this problem.
    Thank you

    Andrew

    Can you please tell me if that happen after the day before, or after using the hibernation mode too?

  • Buttons on the touch pad G505s does not properly in game?

    This is the second time I am posting this because of no response:

    I recently bought a Lenovo G505s about a month ago. Everything goes well with her until I downloaded Steam and downloaded games. 3 games I downloaded are snipers and therefore requires the left button of the mouse. But when I click it to shoot, he is sometimes unresponsive and is very laggy. This isn't the fault of the game, as I tried in different, but the problem is still there. I tried to change the round buttons (so that the right button is left to aim and shoot) and it works fine. I'd rather have the usual way around fact does anyone have a way to solve this problem? has this happened to you?

    If it is necessary here are some specs for the pc:

    AMD A8

    6 GB of ram

    WIndows 8.1

    also the buttons and trackpad works quite well with everything else except the game like Minecraft. It seems that when I move with WASD, the button does not work but the click of the button.

    Can someone give me an answer please?

    only, I have solved my problem. While randomly browsing settings for my PC, I stumbled upon the Windows mouse settings and it turns out that the time for clicks has been in the Middle, which explains the shift. I have this disables and problem solved without help of Lenovo at all. Lenovo support team good job

  • Why not Firefox 4.0 back button does not work since the homepage or google search?

    I've just upgraded to firefox 4.0 tonight, and the back button is not working properly of my homepage or certain types of google searches.

    I can reproduce this problem every time by following these steps:

    (1) open a new tab, and I get a blank page.
    (2) select the Home button. I find myself at http://www.google.com/ig
    (3) go to the address bar type in a new URI, and press return

    Now, I leave my home page and go to the new page, but I can't go back to my home page.

    Similar behavior happens if I do a search on google for the address of quick search in the upper right.

    (1) start a new tab.
    (2) enter a search term and press enter
    3) click on one of the links to research and you transition to the new page, but the back button does not work.

    It works fine if I do something like:
    (1) open a new tab.
    (2) enter google.com in the address bar and press to enter.
    (3) do a GOOGLES search arae.
    4) click a search result link.

    This works very well for me.

    In my case, I turn off the Add McAfee SiteAdvisor 3.3.1 and the problem goes away.

  • Satellite A300D-158 illumination button does not work on Vista

    Buttons light Toshiba does not work under Vista.

    I installed added package versions available in Toshiba support page, but Toshiba Assist do not see the list of function buttons where I can change the feature keys.

    When this value added package is uninstalled all buttons works with WMP, but during the installation - do not.
    Illumination power button is not working do not by the press.

    This means support to toshiba button does not work properly with vista.

    I don't have these problems with XP

    Hello

    As far as I know, you can enable and disable the lighting in the BIOS.
    Go to BIOS and check if you can activate it.

    By the way; you said that buttons don t work with Vista.
    Have you tested this with Vista OS preinstalled Toshiba?

    You should do this!

  • Pavilion DV6 6c14nr: Wireless button does not work

    Has taken the plung and improved my DV6 Win10 laptop to see how it works.  Had to do a clean install, because no upgrade would not work.

    After installation, the wireless button does not work.  LED stays red all the time, and when I push it, it activates / deactivates the airplane mode.

    Check the support site HP for this PC, downloaded and installed the driver wireless Win8 button (sp59835) and it does not work. Button LED stays red.

    Searched these forums and found another driver (sp64043) from the button for Win10 wireless driver and installed it.  Still does not work.

    Information on equipment is: ACPI\HPQ6001\2 & daba3ff & 0

    The details for the wireless button said drivers this devide requires additional installation

    Unless I can get the wireless button to work, I'll be forced to go back to Win7.

    Help, please.

    UPDATED - so others find this post know what works!

    Restored image backup Win7.

    Disconnected the LAN cable and activated the wireless button.

    Win7 removed and properly installed Win10.

    Wireless button works NOW!

    So basically, if the wireless is turned off before the Win10 install, it remains disabled and then nothing will allow it.

  • My optical drive is not displayed in "Device Manager" the eject button does not work

    Latitude Dell with Windows 7

    My optical drive does not show in the "Device Manager", the eject button does not work - I can only eject through the pin hole.

    This means that the drivers are missing or that the disc is broken?

    I tried to restart.

    Thanks in advance

    Dave Roberts

    Original title: Reader in mind windows 7

    Its possible the drive has failed. Is this an internal or an external drive? In both cases, make sure that all cables are properly connected and functional, including the power cables. If its a USB external drive then try another USB port.

    But, assuming that you tried to update the drivers (get the latest compatible drivers on the manufacturers for your brand/model/OS(32/64 bit) PC support site and install to see if that helps - first set a system restore point)) and then see if this MS article helps - https://support.microsoft.com/en-us/mats/cd_dvd_drive_problems?wa=wsignin1.0

  • Why present it a form button does not work in Internet Explorer, but not in Chrome?

    We send the forms to the offices that use IE and Chrome. Offices using Chrome recently, do not get a popup email, when you click the Send button to send the completed form. We use Adobe Acrobat X Pro to create forms. Anyone else see this issue?

    Chrome has a built-in PDF Viewer that supports some forms, but it is far from being as comprehensive as Acrobat/Reader. Drive used to be used as a plug-in for Chrome, but he cannot stand that, unlike IE again. Chrome supports subjecting them to a web server, which is more reliable than the use of electronic mail, but it does not properly handle a TOT of the server response.

  • Factory settings Resinstalling when blue Thinkvantage button does not work

    Last year, I panicked when I thought I had a virus. Rather than rely on my own multiple back-up system, I guess someone knew more about computers that I do and let someone else in my computer. My X 60 has not worked properly since. The Thinkvantage button does not work, and it is hit and Miss as to if I can get the thinkvantage functions to work. My wireless radio buttons don't work at all, and the indicator wireless lights turn on and turns off at will.

    I tried to reinstall the application and the update of all implement the Lenovo site, but nothing worked, so I think I'll have to reinstall the orginal factory settings and start over again to clarify these issues.

    I backed up all my data, and made discs (just in case) recovery... now my question is, how do I start to "rescue and recovery" / 'reinstall factory settings' when the blue button does nothing when I push at the start?

    (Works under XP - if that makes a difference).

    Thank you

    Problem solved.

    I managed to get into Rescue and Recovery manually and found that I had a backup on my C drive that existed prior to my problems. I just restore to that date and "presto!" the blue button works again!

    I'll have to spend the rest of the day, re-installing everything that has been added or upgraded from a year, but this simple step seems to have solved my problem. Who would have thought that I had a copy of backup to disk C - I thought I backed everything up to an external drive!

    Tip for any staff of Lenovo, reading this - if your security people knew more about Thinkvantage program, I could have solved this problem months ago - these are them who sent offshore to find updates to day and re - install Thinkvantage to try to get the blue button works again.

    Thank you all.

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    < re-titled by host >

    Take it to an Apple Store for repair or replacement.

  • Safari Web Clip does not properly

    Hello everyone

    I have a problem with safari Web Clip and that is does not properly for almost all pages, as example, I participate in a contest of therapy dbrand/unbox, and I really don't want to open the web page, whenever a new winner is announced, so I created a web clip, but it does not work well When I click the web clip icon he asked the location of the clip and when click on done, the web clip is from a different region and I can't fix.

    Is this some sort of bug or can I fix it myself?

    Web Clip still didn't work if the cut element remains in the exact same on exactly the same site. This is apparently not the case here.

    Dashboard widgets in general, are an old technology that has not been updated in many years.

Maybe you are looking for