Looping Slideshow/Frames initiated by FWD/REV buttons?

How do I code the logic to create a slideshow that plays nextFrame() or prevFrame() using eventListeners for FWD and REW/REV buttons?
so far I have something like:
function fwdPlay(e:MouseEvent):void{
     nextFrame();
     if(currentLabel=="last"){
          gotoAndStop("first");
function rewPlay(e:MouseEvent):void{
     prevFrame();
     if(currentLabel=="first"){
          gotoAndStop("last");
For some reason these two functions seem to cancel each other out.  If I take out the second if statement in rewPlay then it will loop with the first fwdPlay function but the rewPlay button will reach an endpoint at the frame "first".
How can I fix this?
Sincerely,
markerline

once you have those 4 frames labeled, use:
function fwdPlay(e:MouseEvent):void{
     if(currentLabel=="last"){
          gotoAndStop("first");
     } else{
nextFrame();
function rewPlay(e:MouseEvent):void{
     if(currentLabel=="first"){
          gotoAndStop("last");
     } else {
prevFrame()

Similar Messages

  • Looping Slideshow with Videos. How please?

    Hi
    I just downloaded Keynote 09 as 08 did not support 1920x1080 Res. I'm pretty au-fait with Keynote but I'm a bit stuck with something.
    I'm trying to create a looping slideshow with images and text and also videos. I want the slide show to just run on it's own without any clicking of buttons at all
    The problem I have is that when I click play,the Presentation starts off fine, and shows the first few pages with static images and text, but when it gets to the pages with Video on, it plays the video for five seconds then moves on to the next slide, I don't want the slides with Videos on to move to the next one until the video has finished, how can I do this? I've looked at "recording a slideshow" but have been unable to fathom how that helps.
    An answer would be much appreciated.
    Thank You.

    A few different ways about this. You could split the slide show into smaller sections that are withi the limits for posting and then post each section.
    You could try a different encoding to make the file smaller. What settings did you use when you created and exported the slide show?

  • Animation to loop 60 frames  in 24 hours

    I want to create an animation to loop 60 frames  in 24 hours and then pass on the following second day  repere
    (script)  thank you for helping me

    Sorry - bit sleepy when I last posted.
    If you want to have the SAME loop week after week, use
    on exitFrame me
       dString = the long date  -- "Friday, 25 October 2013"
       loopMarker = item 1 of dString  -- "Friday"
        go marker (loopMarker)
    end
    Make sure your markers match the first item of dString.
    If your French date string doesn't have a comma after the name day, or has a different layout, adjust "loopMarker =" accordingly

  • Control a while loop in the sub vi using a button in the main vi?

    Dear all,
      I want to be able to control ( turn on or off) a while loop in the sub vi from a button control in the main vi. How can I use the Control Reference to achieve it?
      Thank you in advance. 

    Like this
    look at attached vi's
    Run the main vi
    Attachments:
    main_boolean.vi ‏12 KB
    sub_boolean.vi ‏16 KB

  • Looping Slideshow

    Keynote 5.1.1
    OSX 10.7.3
    2.4 GHz
    4 GB 1333MHz DDR3
    There is no function for looping the Smart Build slideshow feature. My work-around to deal with this is to export a single slide as a Quicktime video with preset timing. I then reimported the video back into the presentation where I want the slideshow to loop. Using the the Inspector Quicktime manager I set the video to loop automatically. 
    Problem:  When I export the Keynote presentation to Manual Advance Quicktime the frame with the slideshow on it will not advance part way through the slidewhow (video). It has to run its course. 
    I would like to have the freedom to advance anytime during the manual advance slideshow (video). Any suggestions appreciated.

    My continued reading on this topic in the community has discovered the use of hyperlinks. Anyone know if these are effective in a Manual Advance Quicktime?  Or are these video formats purely linear on their playback?

  • LR 5, Slideshow Repeat Selected does not export a Looping Slideshow?

    Hello,
    I am curious why when I export my slideshow with the Repeat button selected, why doesn't it repeat (or loop back from the beginning)?
    Thanks for your help.

    I don't think it is possible to make the H264 mpeg4 movie files that Lightroom exports to autorepeat. That's something that the movie player is supposed to do.

  • Boot loop after poweroff and until shutdown by button

    Hi,
    I am having a weird problem. If I leave my arch machine powered off for a long time, it will enter a boot loop once turned on. In specific, the machine keeps rebooting after the "Loading initial ramdisk" message is displayed. To get out of the loop, I must shut it down again by holding the power button and then turning it on again. It will then boot normally.
    I have no clue about where to start digging to find out what the problem is. Any clues?
    Best regards.

    Hi noctlos.
    I am using BIOS + Grub and my uname -a is
    Linux 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux
    Please let me know if you would like any other information.

  • Animated Gif- want to loop some frames, then others

    I'm creating some web banners, and I need the file size to stay low, but would like to have a 3 or 4 frame cycle loop for a while, then go to a frame that holds for several seconds, then back to the loop, and then another frame that holds. So really all there is is 6 total frames, but in order to make it play out how I want,  I have to set like 30 frames in the animation window, each one of the 6 total, and then the file size is enormous compared to  what really should be possible, its basically treating it as though I have 30 distinct frames. Isn't there a way to make an extended animation using a only handful of frames, and have the file size not balloon up?
    Another thing I'm trying to do, to cut down in file size, is have the animated portion be real lossy, since its quick and detail is not important there, but have the frames that hold for a while be higher quality. But there doesn't seem to be a way to do that... why not?
    Thanks for any advice,
    Andrew

    But there doesn't seem to be a way to do that... why not?
    Well, you are using GIF, aren't you? That pretty much covers all the options. These are limitations in the file format, plain and simple. There is no such thing as a per-frame local palette, all 256 colors are distributed across all frames. So if the content requires a certain amount of colors, the algorithm merely tries to balance itself out. Likewise, the frame behavior is dictated by the file format specs, so there is realyl nothing you can do. As Zeno said, you'd have much better luck doing this in Flash using pre-processed PNGs and a few simple timeline commands with goto().
    Mylenium

  • How to terminate or exit a for loop when the user clicks on stop button

    Actually my problem is to stop a loop when i click on stop button.
    example:i have two buttons 'start' and 'stop'
    in start buttom i wrote a for loop as
    dim i as integer
    For i=1 To 100000
    print i
    Next
    when i click on start buuton it prints 'i' value up tp 100000.
    my question is when i click on 'Stop' button the for loop has to terminate or Exit from the  loop and should stops the execution.
    Is it possible to termianate or Exit the 'for loop'
    PS.Shakeer Hussain
    Hyderabad

    I am unable to stop the loop and application not at all allowing to Press the Stop button.
    It seems like Hung, any advise ?
    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
            btnStop.Enabled = True
            btnSelectFile.Enabled = False
            btnStart.Enabled = False
            btnStop.Focus()
            Dim strFileName As String = txtFileName.Text.ToString
            Dim strLineText As String
            If System.IO.File.Exists(strFileName) = True Then
                Dim objReader As New System.IO.StreamReader(strFileName)
                While objReader.Peek() <> -1 And stopclick = False
                    strLineText = objReader.ReadLine()
                    MsgBox(strLineText, MsgBoxStyle.Information)
                    Application.DoEvents()
                    Thread.Sleep(My.Settings("strDelay") * 1000)
                    'System.Diagnostics.Process.Start(My.Settings("strFireFoxLocation"), strLineText)
                End While
            End If
        End Sub
        Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
            stopclick = True
            btnSelectFile.Enabled = True
            btnStart.Enabled = True
            btnStop.Enabled = False
        End Sub
    Raman Katwal
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • No slideshows, frames or albums publish!

    I have been trying to solve this for six hours and have a dead arm so give up!
    My site (which I have had for a few years with no probs) will no longer publish albums, slideshows or frames. When I publish and 'View Site' on iWeb it is all there. But once I look in the folder, the html files are missing the slideshows etc - but the photos are all still in the media folder.
    When trying to view the html files in my FTP the message says "A valid URL could not be created for the file you are attempting to preview. Make sure the file is in your site root or enter the URL manually." However, this is entered correctly within iWeb and has had no issues before.
    I have also tried to upload to mobileme and it said that there was an error and could not upload. Is it possible this site could be corrupted? I have nine other sites on the same library which appear to upload Ok!
    I can remember when I upgraded this site with iWeb'08 that there was an issue with a .js file within Script, but I have replaced the whole Script folder and still no joy!
    The URL I should first direct you to is as I have no set up a temporary diversion from the first page. Photos on their own seem fine, but nothing more exciting
    http://www.karlagowlett.co.uk/personal-projects/personal-projects.html
    ANY light on this will be fab! I am off to sleep...

    If you're publishing to MobileMe it probably was a server problem that finally got fixed. We've seen a lot of problems similar to this, i.e. web sites suddenly missing files after a publication and then suddenly fixing itself some time later.
    Like your album/slideshows. What did you use for them.
    OT

  • I had access to some plug-ins (like Download Help and Read It Later) in my initial page, and the buttons disappeared. How do I recover them?

    Such commands are not visible in my initial page any longer. I still have the options of clicking ''show/panel/read it later'' or ''show/panel/similar sites'', but I still prefer the buttons on the initial page.

    Delete the files extensions.* (extensions.rdf, extensions.cache, extensions.ini, extensions.sqlite) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry. New files will be created when required.
    See "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the "Find Updates" button (in Firefox 4: right-click the extension -> "Find Updates") to do a compatibility check.
    If you haven't done that yet then create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Photo doesn't fit slideshow frame

    Is there a way within iPhoto '08 to make a photo fit properly on the screen when creating a slideshow? I have a series of photos and "full frame" photos fit fine, but photos shot vertically are cut off at the top of the screen.

    tarkin:
    In the slideshow settings deselect the option to "Scale photos to fill screen. That should fit the portrait photos to the monitor's height. It may, however, cause the landscape photos to have a bar at the left and and right depending on their size ratio in comparison to the monitor's ratio.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Exporting non-looping (single frame) swf file

    I am using a third-party application to create a "page-flipping" version of a book. For quality reasons, I want to export the pages of the document as swf files. When I import the resulting swf files to the application, they flicker at the default frame rate of 24 fps. When I open the swf file in Flash Player, if I hit the "play" button, it flickers as well. If I use the "next frame" and "previous frame" commands, it's apparent that the file has two frames, one with the page content, the other with a blank (white) appearance.
    Is there a way to export the pages as *SINGLE* frame swf files?
    In desperation I've tried to export the pages as .fla files and generate the swf files from Flash, but the layouts are significantly corrupted when I open the fla files in Flash.
    FYI, I'm using InDesign CS6.

    Amy, you tease...go on, what's planned for the next release then?
    Nah, I know you won't tell.
    Michael/Sebastian,
    There are a number of workarounds that are more or less usable. You can place a print button on the page where the chart is located. A user can print to printer or to pdf if she has that functionality. The only issue there is that the whole dashboard screen prints. Depending how just how much you have on a screen that you don't want printed, you may have to reorganise the charts on to their own tabs, for example, which is what I do. I use the whole tab for the chart itself, probably leave a logo on top and bottom and then the whole page prints with my logos and the chart.
    Less elegant but always good value for money: flash image capture. I don't like that and it requires a utility clients side.
    Hope this helps.
    Chris
    Go on Amy...

  • Simply loop a video with a play/stop button in the middle?

    Hello, I am new to flash but I have CS4, so I have all the tools.
    I have a .mov file and I want to simply encode the video (i assume with flash media encoder) to be a flash file which loops continuiously with a Play/stop button. I'll then have this movie playing on my html page...
    How would i best achieve this? I cannot figure it out using the encoder!

    Easiest way is to import the mov directly into Flash, follow the importing prompt, embed inside of a movie clip to loop. add your buttons on top and code to stop(), and play().

  • Ref Classroom in a book. Avance by one frame by clicking steo forward button

    Hi
    In the book classroom in a book, it is said (lesson 5) that by the monitor, by clicking the step forward (backward) button you advance by one frame. But in fact When I click I advance by one seconde so 30 frames and not one. What do I do wrong?
    Aorangi

    Yes, the SMPT TimeCode has confused many. It's Hours;Minutes;Seconds;Frames. Let's say that you have a 30 FPS Clip, when one advances to 00;00;00;29, the next increment is 00;00;01;00.
    If one does much crutical work, using the SMPT TimeCode, I strongly suggest that they pick up an SMPT calculator, like SMPT Calc, as trying to use a regular calculator for TimeCode can be daunting.
    Good luck, and glad that you figured it out.
    Hunt

Maybe you are looking for

  • Finding audio files.

    I inadvertedly saved some audio files to the desk top. When I put them in the right folder and went back to the song it asked where are the files? How do you tell Logic to look in a diffrent place to find them?

  • Syntax Problem in ABAP statement

    Hi all, DATA: text TYPE string, IF text CO =  ' @#$%^&*()_+-=<>?:"{}|[]\; '. ELSE. Message error   ENDIF. I want to include    '   in the IF condition, Please Suggest. regards, Mukundan.R

  • Heading of an excel while downloading

    Hello Friends, I have one problem while downloading the data as explained below. The excel should be like this -" 1. downloaded date and time in the first line . 2. Data source (from where we are downloading) in the 2nd line. 3. Field headings(column

  • Can we install OBIA with out Installing ODI ?

    Hi All, I am planning in installing OBIA 11.1.1.7 on the server. Can we install OBIA without installing ODIA

  • X200 Ultranav/Trackpoint drivers/utility

    Which drivers and utilities can I install for the X200's trackpoint on Windows 7? I see UltraNav2 driver and Utilities but it doesn't list X200 as one of the systems. Or is it safe to install the Vista ones?