Slideshow with buttons will not allow more than one cycle through the timeline.

Hi, I'm new to AS3. I have a slideshow with 4 slides. They are all in scene 1 in the timeline. Each is on its own layer (and I have a fade between them on the timeline effect). I added labels to a separate layer in the timeline panel so that I could use the front and back to "accelerate the process" essentially (instead of wait for the slide to change). I can successfully use the buttons to scroll through the slideshow once, but if I try to scroll the slides more than once, I get no further than the first slide.

I put this code on the buttons in the first frame of each section marked on my calendar:

fwd_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_18);

function fl_ClickToGoToAndPlayFromFrame_18(event:MouseEvent):void

{

gotoAndPlay ("Shopper_2");

}

back_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_19);

function fl_ClickToGoToAndPlayFromFrame_19(event:MouseEvent):void

{

gotoAndPlay ("Shopper_1");

}

Any ideas?

Kind regards

zerozone

The code for the buttons would not change much and would not be in frame 1.  You would only change the functions to use variables for the gotoAndPlay() class

var fwdFrame:uint =? ; Use whatever the value would be for the goto frame 1 normally

var backFrame = 1;

fwd_btn.addEventListener (MouseEvent.CLICK, fl_goForward);

function fl_goForward(event:MouseEvent):void {}

gotoAndPlay (fwdFrame);

}

back_btn.addEventListener (MouseEvent.CLICK, fl_goBack);

function fl_goBack(event:MouseEvent):void {}

gotoAndPlay (backFrame);

}

Make sure that this layer extends the full chronology tlength so that variables and functions are available all she.

Then, you just need to change the values of fedFrame and backFrame again each breakpoint on the timeline.

Tags: Adobe Animate

Similar Questions

  • Motorola Backflip - will not send more than one text

    Hello

    I try to write a message that is more than an interesting text. It will no longer send... it will send the first text then it will repeat "SMS not sent" so that many other texts that have been in my initial shipment. It started just happens, that I've always been able to write a message as long as I want and it will happily send multiple text messages without complaining...

    Does anyone know where I can change this setting. I looked in the settings of Message but you can see nothing is there.

    I can't see anything under settings associated with it.

    Help, please!

    Thank you.

    Hi I have not installed anything related text. Infact I have only installed the apps were already there before resetting. Assistant Android is on everything until now lol. Its ok that I watched and apprently I can install a 3rd party sms management app that will do it for me. As long as I have a work around its ok. I just thought that there must be a setting somewhere so that it goes like this...

    Thank you.

  • Help!... PRINTER LEXMARK ALL-IN-ONE X 5650 WILL NOT PRINT MORE THAN ONE PAGE... Help! (READY TO BURN THIS * @# % ^ THING)

    THIS IS MY PROBLEM... IM RUNNING WINDOWS 7, I AM ABLE TO CONNECT THE PRINTER TO THE COMPUTER WITHOUT PROBLEM. IF I TRY TO PRINT OR COPY ONLY ONE PAGE AT A TIME MOER THE PRINTER WILL RESTART AFTER THE FIRST PAGE HAS FINISHED PRINTING. I ALSO NOTICED THAT THE PRINTER DOESN'T IS NOT DISPLAY INK CORRECT LEVEL ON THE SCREEN OF THE PRINTER, (BLACK INK INK DIRECT 0% 0%) BUT IF I CHECK THE LEVEL THROUGH THE PREFERENCES OF COMPUTER PRINTER IT SHOWS THAT THE BLACK INK IS USED MORE OF THE COLOR INK. (BLACK INK INK 75%-100%). THE QULITY IMPRESSION IS POOR TO MUCH GREEN... ALSO WHEN I CANCEL THE JOB IN THE MIDDEL OF A PRINT JOB IT ALSO RESTARTS. I LAUNCHED A PRINT OF THE COMPUTER TEST PAGE AND IT PRINTS OUT THERE BUT WHEN ITS DONE WITH THE FIRST IMPRESSION AGIN RESTART ANOTHER. AND THE SAME FOR ALL "CARTRIDGES CLEAN CARTRIDGES-ALINGN" THE ONLY THING THAT WORKS WELL IS THE SCANNER... WHEN I PRINT A TEST PAGE TO THE PRINTER, I SEE A MESSAGE 'BAD CHIP HEATING' CAN THIS BE THE CAUSE OF ALL MY PROBLEMS, OTHERWISE THAT MEANS...

    HELP.............................. HELP.................................... HELP.......................

    ......................................... WHERES MY GAS AND A LIGHTER...

    Hi MTCAIME,

    ·         If it works well before? Do you remember any recent software and hardware changes made on your computer?

    1. I even suggest to run the troubleshooter under construction, link, you can refer to the same thing: Open the printer Troubleshooter: http://windows.microsoft.com/en-us/windows7/Open-the-Printer-troubleshooter

    2. make sure that the printer spooler is set to automatic, steps to set the service to automatic

    i. click on start and type services.msc in the search box

    II. search for the Printer Spooler service

    III. right-click on the service

    IV. If the service is stopped and then starts the service

    v. Select Properties

    VI. and in startup type, select automatic

    3 uninstall the driver and related software and reinstall it back. To uninstall, see the link below: Uninstall or change a program: http://windows.microsoft.com/en-US/windows7/Uninstall-or-change-a-program

    Link for the drivers from the Lexmark Web site: http://support.lexmark.com/index?locale=en&productCode=LEXMARK_X5650&userlocale=EN_US&segment=DOWNLOAD&os=WINDOWS_7&page=downloadsList&oslocale=en_US#4

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The recipient in my e-mail program bar will not accept more than 3 letters before going empty. I can't send an e-mail.

    Yhe bar recipient will not accept more than 3 letters before going empty and I can not even answer or draw a contact name to load into this bar...

    original title: I can't send email

    Windows 7 and using the same hotmail address since the end of the 1990s

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • How to write the validation at the point of java sript should not allow more than 20 ch

    Hello

    I need to write validation java script for an item, that it should not allow more than 20 characters.


    Thank you
    Nr

    If this answers your question, enter your question as answered (so everyone knows that he's answered) and give points wherever you want...

    Thank you

    Tony Miller
    Webster, TX

  • CMDGW_CAT:3441: ERROR: can not have more than 3 entries in the LIST RACCESSPOINT

    Hello
    I have Tuxedo 8.1 in HP - UX.


    In the section of my dmconfig that I have:

    ....
    .....

    SERVICEF LDOM = DOMLOCAL RDOM = WTC1, WTC2, WTC4 WTC3
    .....
    .....

    I have this error when I tried to compile with dmloadcf y dmconfig:

    Invalid value
    CMDGW_CAT:3441: ERROR: can not have more than 3 entries in the LIST RACCESSPOINT
    CMDGW_CAT:1546: ERROR: dmloadcf: above the errors found during the syntax check

    increase the value of the parameter RDOM plus 3?
    How?

    Thank you...

    Hello

    Syntax:

    Service LDOM = local_domain RDOM = dom1, dom2, dom3

    sets the remote domains of failover for this particular import. It is not intended to provide access to a service in several areas. What you want, it's basically what you were doing, i.e.,.

    Service LDOM = local_domain, RDOM = dom1, dom2
    Service LDOM = local_domain, RDOM = dom2, dom3
    Service LDOM = local_domain, RDOM = dom3, dom4
    Service LDOM = local_domain, RDOM = dom4, dom1

    It would provide balance between the 4 areas and always provide areas of failover, although assigned to the ON_STARTUP linking strategies, then the following is sufficient:

    Service LDOM = local_domain, RDOM = dom1
    Service LDOM = local_domain, RDOM = dom2
    Service LDOM = local_domain, RDOM = dom3
    Service LDOM = local_domain, RDOM = dom4

    As only active areas will be used and those inactive is ignored.

    Kind regards
    Todd little
    Chief Architect of Oracle Tuxedo

  • Firefox does not open more than one window, only opens new tabs. Firefox does not open in safe mode.

    Firefox does not open more than one window at a time, and then opens only new tabs. When asked to open the link in a new window - nothing happens, no error message or the page appears. Otherwise, it works great, but no new firefox window cannot be opened menu or the mouse. I tried to reinstall firefox several times, which did not help.

    This has happened

    Each time Firefox opened

    Is 3-4 months ago

    There are some extensions that are causing a problem like that. See this:
    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+theme...

  • Why am getting started on the internet with the message saying that more than one computer using the same ip address

    am is started from the internet for 3 days pass with the message saying that more than one computer using the same ip address

    am is started from the internet for 3 days pass with the message saying that more than one computer using the same ip address

    Thatmessage normally means a another computer on your local network has the same IP as the computer you are on.

    You control your Local network?

  • Is there a way to allow more than one person accessing and editing a file

    Original title: records of public folders

    Hi, when there is a file on a public folder cannot be access by one person at a time or you get the message 'open read-only '. Is there a way to allow more than one person accessing and editing a file at the same time on a shared drive?

    It's true, but there are a few special cases.  For example, spreadsheet Microsoft Excel is adjustable mode "shared" so that more than one person can make changes at the same time.  If two people edit the same section of the file, they get a prompt asking you which changes are preserved.

    That said-I was never able to use it effectively.

  • I have to remove the duplicate files, but having problems by selecting more than one file in the player at the time.

    I have to remove the duplicate files, but having problems by selecting more than one file in the player at the time. How can I select multiple files at the same time so I can just delete them. I used to be able to do this in previous versions of Media Player, but this function seems now blocked or unavailable. The problem is this: through previous use of media player, it plays all my multimedia files several times whenever a device support has been added. He would try to save the files on my main drive, but since there is not enough room this would save the files somewhere else. This happened several times, I suppose, because when I upgraded my computer and a media scan was conducted he found duplicates of all my media various times of at least 6-8. I've consolidated since my plates on 3-disc multi to, but have now records duplicated hundreds and thousands of duplicate media files. Previous versions of Media Player would allow me to select all files and then delete them both of the reader, but also from my hard drive. So now I'm stuck with more than 300 GB of duplicate media I have to search line by line through all my hard drives to find each duplicate both, unless I can get media player to do what it can. Any help in this area would be appreciated.

    Hello

    1. did you of recent changes on the computer?

    2. is Windows media player files in double creation during playback of music files?

    To delete duplicate entries, click on another feature tab in the drive (for example the current playback), and then click library.

    If this does not remove duplicates from your library, you can use the Add to library dialog box to search computer to analyze a file on your computer the duplicate entries not valid-pointing. The player will remove invalid entries in your library that point to files that no longer exist in the folder.

    Complete the steps above for files that are stored in the hard disks.

    Method 1: Use the add to Library dialog box search for computers

    (a) start Windows Media Player.

    (b) press F3 on your keyboard to open Add to the library of the find computers dialog box.

    (c) click the Browse button to locate the folder on your computer so that your library contains invalid entries. Specify the location of the folder in the box look in.

    If you are not sure what duplicate in your library entry is not valid, you can add a path column to display in your library. Specify the folder on your computer that corresponds to the path not valid file displayed in your library.

    (d) click on the Search button.

    The player will search for digital media files and playlists in the folder that you specify and remove invalid entries in your library that point to files that no longer exist in the folder. If not valid in double entries point to other folders on your computer, repeat this procedure, specify a different folder every time.

    If only a small number of duplicate entries exist, you can delete those invalid manually by right-clicking on the invalid entry, and then clicking Delete .

    For large double-number of entries in your library (or if all your library is duplicated), it might be better to create a new library and delete the files.

    Method 2:

    After you remove the duplicate entries, run the troubleshooting of Windows Media Library settings to solve this problem.

    Open the troubleshooter in Windows Media Library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Let us know the results.

    I hope this helps.

  • Is it possible to have more than one person in the role of signatory of widget in a widget e-sign?

    I'm creating a widget that will require more than one signatory if a condition is met.  This form will be accessible from the outside of our Organization.  Is it possible to create a form that has more than one person in the role of credits of the signatory widget?

    Hello RiversidePaulD,

    From now on, you can have a single (unique) signer who can esign Widgets online. If your second signatory is fixed, then counter signer is the best option. Apart from that, it is not possible to have two different esigners who continue to change. I took this as a feedback however.

    -Usman

  • Is it possible to have more than one location in the Google Maps widget?

    Hey people,


    Lets say, you design a website for a client with multiple banks, you just want to tell them everything, no?

    I just want to know if it is possible to have more than one location in the Google Maps widget. I guess it shouldn't be that hard, but I can't understand it...


    any help would be much appreciated!


    Thank you

    Thom

    It seems that you can only use one address for this widget.

    To do this you will need create map in Google Maps with all your points, and then copy the Google embed .html into Muse.

    Example of a google map embed with several points imported into the Muse:

    (Object/Insert HTML)

  • Having more than one user affect the speed of my MacBook Pro?

    I have a MacBook Pro, which is now painfully slow 2011.

    I have three users each journal entry/exit in the required form.

    Having more than one user affect the speed of the Mac or not?

    Thank you

    If you open a session there should be no impact.

    You can view a report of etrecheck for more Analytisis

    www.etrecheck.com

  • Drag more than one MC at the same time

    Hi Eo,

    I need to drag more than one Mc at the time:

    n.b.: emc2 is an mc on the main timeline. This code is in a nested MC.

    Prnt: MovieClip = this.parent as Movieclip;

    function drag(e:MouseEvent):void {}
    If ((e.type == "mouseDown") & & (GlobalVar.stat == 'clicked')) {}
    this.startDrag ();
    Prnt.EMC2.StartDrag ();
    }
    If ((e.type == "mouseUp") & & (GlobalVar.stat == 'clicked')) {}
    this.stopDrag ();

    Prnt.EMC2.stopDrag ();
    GlobalVar.drag = false;
    }
    }

    This.startDrag () stop to work when I add prnt.emc2.startDrag ()...

    Why?

    The documents help explain it as follows: "the sprite remains draggable until the Decree of way explicit through a call to the.

    Sprite.stopDrag()method, or until another sprite made draggable. What a sprite is draggable at the time. "

  • ReadyBoost will not use more than 2 GB 'Cache space used' on 4 GB ReadyBoost.sfcache file

    Windows 7 64 bit on a computer laptop 4 GB.

    I have a card SD of 2 4 GB dedicated to ReadyBoost, connected via USB2.   I tried to format the card as NTFS and exFAT and in both cases, Windows may correctly fill in the card with a ReadyBoost.sfcache file, which is about 3.8 GB (card is dedicated to ReadyBoost).
    =============
    (Pasted image in - did not show when I introduced first)

    =============
    The problem is that no matter how long the system running, perfmon displays 'Cache space used' is always less than 2 GB.
    He goes up regularly in the first ten minutes after enabling readyboost, then levels: less than 2 GB:

    =============
    (Pasted image in - did not show when I introduced first)

    =============
    (Of course the "put bytes in cache" are greater because of the compression.)   But it seems to use only about 1/2 of the 4 GB cache file.
    I tried to adjust to only use a 2000Mo cache file size, and then 'Cache space used' would not exceed 1.4 GB.

    Am I something wrong or bad what do the numbers mean or is it an inherent limitation of ReadyBoost due, for example, General fresh metadata in the cache file?

    As I frequently have max on my use of memory and I can not install more than 4 GB, I had significant performance gains when he might have already spent several minutes, beating the pagefile.   I hope to see even more benefits with a bigger Readyboost cache if possible.   I would also like to solve this problem before investing in a larger and more efficient card.

    Thank you and best regards,

    Hi Jeff,

    In some situations, you might not be able to use all of the memory on your device to speed up your computer. For example, some flash memory devices contain both slow and fast flash memory, but ReadyBoost can only use fast flash memory to speed up your computer.

    http://Windows.Microsoft.com/en-us/Windows/using-memory-storage-device-speed-computer#1TC=Windows-7

    Computers with discs hard fast (such as 7 200 or 10 000 rpm disks) could achieve minimum performance gains due to the already high disk i/o ReadyBoost. will read the files from the cache only when this so will improve performance. Hard drives surpass flash in sequential reading drives, but flash drives are faster when no sequential reads (because of the latency caused when the drive head must move to a different disk sector). As a result, ReadyBoost reads from the cache only for non sequential reads
    http://TechNet.Microsoft.com/en-us/magazine/ff356869.aspx

    Hope the helps of information.

Maybe you are looking for