gotoandPlay won't do not to the correct second time through image tag

Im having trouble with this simple project, I am working on. Its base all.  There is a back and a button continue at each image. The first picture play until the 50 chassis I have labeled "slideone." The code for this frame is:

Stop();

back_btn.addEventListener (MouseEvent.CLICK, backFrame);

function backFrame(evt:MouseEvent):void {}

gotoAndPlay ("intro");

}

continue_btn.addEventListener (MouseEvent.CLICK, continueFrame);

function continueFrame(evt:MouseEvent):void {}

gotoAndPlay ("slideoneend");

}

By clicking the button continue, takes you to the next series of images that has two buttons again and the code:

Stop();

back_btn.addEventListener (MouseEvent.CLICK, backFrame1);

function backFrame1(evt:MouseEvent):void {}

gotoAndPlay ("slideone");

}

continue_btn.addEventListener (MouseEvent.CLICK, continueFrame1);

function continueFrame1(evt:MouseEvent):void {}

gotoAndPlay ("slidetwoend");

}

This happens about 4 times where he buttons are clickable to go to the next series of images, and it works perfectly fine when I ran it the first time, but by clicking on "continue". When I decide I want to go back and watch the previous slides and then click on continue again, he won't have to the frame. It jumps to the next image tag.

Anyone know why that would happen?

If this code buttons are continuous along the layer of the timeline (not), they inherit the code of the previous (s) and vice versa.

What you can do is rather just have a function for forward and a back for the entire timeline and have these functions use variables for image tags.  In the new images of the section, you assign new values to the variables rather than assign the new code for the buittons.

Tags: Adobe Animate

Similar Questions

  • I can not put the correct date, time, or whatever it is on the LCD on my HANDYCAM DCR-HC30

    I had not used my cHandycam for quite awhile for the date and the time is shown in the January 1, 2004, at 12: 00 and I was not able to change using the LCD screen. I'm fairly certain that the remote control battery is no good because I never changed it. The camera still records both Ribbon and the memory card, but I would like to be able to set the date and time. Has anyone else had the same problem with this Handycam or know how to fix. I charge the internal battery by pluging in there for more than 24 hours. The internal battery is bad and if so, is it replaceable by me? Thank you.

    If you can access the MENU of the Handycam, please follow the steps below to set the date and time.

    1. turn on your camcorder and open the LCD.

    2. press on P-MENU then MENU.

    3. Select CLOCK SET by pressing the HIGH or arrow DOWN found at the upper and lower part of the screen, then press OK in the lower right corner.

    4 set the YEAR by pressing the HIGH or DOWN arrow found at top and bottom of the screen, and then tap OK in the lower right. Follow the same procedure with the MONTH, DAY, HOUR and MINUTE, and then tap OK.

    NOTE: To midnight, set at 12:00 AM. For lunch, set for 12:00

    You can also view page 22 operations here Guide: https://docs.sony.com/release/DCRHC30.pdf

    If my post answered your question, please mark it as "accept as a Solution.

  • MobileMe will not let me that post us because that seems to me not having the correct password which I thought to be the same pw for iCloud, but not so much.  How can I me Mail online?

    Product name: MobileMe

    Computer: iMac system 10.7.5 Lion

    Story: My drive hard Snow Leopard is dead, but have an external drive on which I have installed Lion, then Mail began requiring a MobileMe password that I do not have.  MobileMe won't let me use Mail because I do not have the correct password which I thought to be the same pw for iCloud, but not so.  How can I me Mail online?

    MobileMe was discontinued on June 30, 2012.  There is no more MobileMe e-mail.  Go to the preferences panel accounts Mail and remove any MobileMe account which is there.  That should get rid of these messages.

  • printer Lexmark Pro 200. Does not print the correct colors. I restarted my computer and the printer is off but get the same result.

    Printer Lexmark Pro 200.  Does not print the correct colors. I restarted my computer and the printer is off but get the same result.

    Hello

    • What were the changes made before the problem occurred?

    You try to run this fix and check.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    If above does not work, try contacting Lexmark support for assistance.

    http://www1.Lexmark.com/en_US/global-services/customer-support-services/index.shtml

  • I am trying to install a D-Link router, but it will not designate the correct IP address.

    Im trying to install a d-link router and it will not get the correct ip address. I then tested on my roommates with a newer version of windows laptop and the router has worked. d-link technology says I may new new setting lan drivers installed for this problem. help someone?

    original title: router problems

    Make sure that this adapter you set obtain IP and DNS addresses automatically.  Go to your network connections and right click on your internet connection and select 'Properties', then click on (highlighted) Protocol Internet (TCP/IP) and then click on the properties button and make sure that the IP address and DNS are both set to obtain automatically addresses.

    Go to the Services management console (type services.msc in the box run from the start menu) and make sure that the DHCP Client service is set to automatic startup.  Restart the computer and see if things improve.

    John

  • Rules are configured to my e-mail go to a certain folder, but it is not in the correct folder.

    original title: send rules

    I know exactly how to set up the rules for my email destinations.  Why will they not in the correct folders?

    I come back and check again until the last letter/number shipper address, etc... and they're always in the
    bad record.
    I use Windows Mail.  I can't find any option as shown above.

    This is a screenshot of Vista's Windows Mail message rules. Look in box 2.

  • Windows Media Center EPG does not have the correct data

    Windows Media Center EPG on my computer is so ugly!

    Description is separated in two, and it's always the last part that displays first, so you'll have to roll down to the bottom to read the description.

    The series is difficult to use, because the series 1) is not always marked as series (so you can select 'plain' Record), and 2) the title contains often series of numbering (e.g. "the bodyguards (1:6)"), so even if it is marked as a series, it will record ever "Guards body (2:6)" or other titles (the Media Center will just try to record any episode of "Bodyguards (1:6)").

    It is the broadcaster who create * data, and then displays in Media Center via Broadcasting Dataservices Ltd., or who are the last to blame?

    What is MS Media Center that does not have the correct data?

    I am in Denmark, if this has an impact on the response.

    Thank you and best regards!

    Hello

    Thank you for your response. I appreciate your time.

    I suggest you to post your query on our MSDN Forums, as this issue should be better there.

    Please refer to the reference to the link below to send your request:

    http://social.msdn.Microsoft.com/forums/en-us/home

    Hope this information helps.

  • GetDeviceCaps does not give the correct pixel factor in windows 7.

    GetDeviceCaps does not give the correct pixel factor in windows 7, if I use 96 dpi settings means it gives the pixel as 1 factor and if I user the 120 dpi settings means that he must give the factor 1.25 pixel, in windows xp, I had good factor with GetDeviceCaps but in window7, it returns 1 instead of 1.25 pixel factor can someone help me with this problem

    ScreenDPI.x = GetDeviceCaps (ScreenDC, LOGPIXELSX);
    float PixelX = (float) ScreenDPI.x/96;

    Hello

    I would like you to post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en-us/w7itproui/threads

    I hope this helps.

  • Present do not get the correct values

    Apex 4.2

    THAT IS TO SAY 8

    Theme 21

    I just upgraded a request from 3.2 to 4.2

    A page has had a lot of text to read only the value always.

    A running a process I got this error

    So I put my items to display only and read to null

    When the page opens all values are set correctly in session state

    My process works well, but when the process terminates and then check out the session state, my articles do not receive the correct values

    I looked into debugging accept

    All ideas

    Gus

    I changed all my articles to text, but after sending, they continue to receive the false values

    Gus

  • Is there a parameter that allows to convert customer vectorized on work type supplied when we do not have the correct fonts in our system?

    Is there a parameter that allows to convert customer vectorized on work type supplied when we do not have the correct fonts in our system?

    Try to place the linked files as an object, and then do > flatten transparency with the appropriate settings.

  • Can not find the correct driver in Macbook - J4680c

    Hello!

    just install a print server on the network from my boss - netgearPS121v2.  everything is great with 2 Mac and a PC - everything can print, etc.

    all the macs print to print IP assistance and the appropriate driver.  for some reason, my boss pro macbook did not have the correct driver installed and all that is available to him is "HP Officejet J4680 series - Fax" that does not work.  I use the same macbook pro with the same system (10.6) and did not have a problem.  his machine was the Guinea pig for his assistant try to set up while on the phone with HP tech support.  (I was out of town and unable to install).  I have a feeling that this was an inadequate installation and hampered by technical support, try to fix it.

    any suggestions on how to completely uninstall the HP software so I can't completely re - install?

    Thank you!

    Steve

    Well Yes,.

    I guess that someone loaded the HP from the CD for the printer software (which is only 10.5 or earlier version).  Here's how to correct:

    Go to Applications/Hewlett Packard / click Uninstall HP
    Click on continue
    Highlight your device in the left pane
    Hold down the Ctrl and Opt Cmd and click on uninstall
    There will be a pop up that asks if you are sure you want to uninstall all hp software. (At this point, if you continue, all HP printers you have installed will need to be reinstalled)
    Click on continue and let it finish

    Now run a software update.

    Then, remove and reinstall the printer in System Preferences, Print & Fax.

    You do not have the software now since Snow Leopard as well print & scan drivers built-in. scan from Preview apps or Image Capture. Scan from the front panel of the printer does not work yet.

  • Animate FancyBox iframe in Edge - do not show the correct height and width

    Hi all

    Can someone please provide advice or a solution to this problem.

    I tried to use the edge Fancybox.js animate to call an iframe (as a pop up album).

    However when I try this it does not show the correct height and width properties - even though I am their definition.

    When I test this on my hard drive it works fine in Chrome and Firefox. But when tried on line on a test server I get a slim pop up that has not properly set the height.

    Would be - because the iframe is pre-configured before composition/html page first affecting the size?

    Help, please

    CODE USED:

    $. fancybox.open)

    {

    type: "iframe"

    autoScale: 'false. '

    height: '600'.

    Width: '600',

    HREF: 'llink.htm site publication. "

    }, {

    padding: 0

    });

    Other references: http://businessanywhere.biz/blog/2013/03/adding-a-lightbox-to-edge-animate/

    See you soon,.

    Jason

    HI koyissa,

    Thank you for your response to this.

    I worked on what was the problem - my external publication that was created to animate dashboard was centered horizontally and vertically.

    He created the problem. When I took this out of the box of fancy worked well.

    See you soon,.

    Jason

  • Generation does not contain the correct beta right?

    Hi all

    I'd be worried about this warning message?  Thank you.

    "Build 32.0.1.17.99204 does not contain the correct beta right '

    Looks like you need regenerate your provisioning profiles. See ios - App "does not contain the correct beta right" - stack overflow.

    Neil

  • Adobe Acrobat 8 Professional does not have the correct serial number after reinstalling

    Adobe Acrobat 8 Professional does not have the correct serial number after resettlement, what to do?

    Open one of the other products first (like PhotoShop and make sure that they are turned on.) Leave it open and launch Acrobat. You may need to reactivate Acrobat can. There is a difference that CS and CC seem to use requiring a such a step with Acrobat. For more information, you can ask in the CC forum because the installation is a little different from the standalone Acrobat.

  • Tecra M5 does not record the date and time - battery RTC or CMOS checksum is inconsistent

    My Tecra M5 PTM50E reverend new does not record the date and time. I loaded RTC battery for 8 hours when electricity is on in the said user's manual. I don't know where is the problem. The BIOS settings are respect after power is on.

    When I change any value in the BIOS, the changes are saved properly but date & time system restored to their value 01/01/2000, 00:00 every time when I get out of turning off more of 2-3 min. Message "RTC battery is low or CMOS checksum is inconsistent.

    Press [F1] to set Date/time"does not appear when I power on the computer. Any suggestions?

    Hi guys

    Usually this problem appears only if the CMOS (real time clock) battery is empty or corrupted.
    The real time clock battery powers the internal clock in real time and calendar. It also maintains the system configuration. If the RTC battery is completely discharged, the system loses these data and the real-time clock. In this case, the message RTC battery is low or CMOS checksum is inconsistent appears.

    So I see only two possibilities:
    Either you will charge the battery for real-time clock, or you ask the technician for replacement.

    Generally, the battery must be completely charged after 8-9 hoers but try to connect the laptop to the power adapter for a long time.
    If it will not help solve the problem if you contact the ASP for the RTC battery replacement.

Maybe you are looking for

  • Sending Quicktime files to non-mac users?

    I love BOF take quick screencasts so I can ask questions by e-mail or teach others when they have a matter of QT. But most of the others have Windows so I don't think that my .mov is visible. I always convert using Mpeg Streamclip, but it takes awhil

  • whenever I want to read the paper of new e-edition, she always goes to a previous edition

    I would like to set up my computer so that when I go online to read my news E-Edition paper it will go to the last edition, not to a previous one. Thank you

  • Reinstall DAQmx

    I have reinstalled LabVIEW 2011 (32 bit) on my laptop and watching the DAQ utilities previously installed, I found that they were no longer seen of LabVIEW, and I guess that it's because I had to uninstall LABVIEW and then reinstall it. It seems that

  • T420 - AC/DC charging connection possible?

    Hello world! Since last week, I got a new T420 and I really like it. At the moment I am trying to configure my energy Manager and I am looking for an option, I know that Dell Latidue laptops. When I work at home I'm still connected to the AC adapter

  • How can I remove photo double and pieces of e-mail downloads?

    I searched 'images' in my docs. and he found more than 26000!  How can I remove the double and the pieces of e-mail downloads?