How do I continually loop frames with a 20 second pause in each frame from the same scene without going to the next scene?

How do I continually loop frames with a 20 second pause in each frame from the same scene without going to the next scene? There are buttons for the other scenes in these frames. The below works well until I am at the last frame in scene one, then it goes to the next scene and plays. How can I make scene one a continually loop.
stop();
var timer:Timer = new Timer(20000,0);//<--
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
function timerHandler(event:TimerEvent):void {
    this.nextFrame();
    //or if you want to jump e.g 5 frames
    this.gotoAndStop(this.currentFrame+5);
Thank you for any help.

For this code to work, you need to empty the first frame and place all the photos a frame ahead. Then, place this code on the first frame. DONE!
If you need more help, I'll try to answer it the fastest I can.
Oh, and I could actualy make your photos fade out and fade in as they rotate from frame to frame, it would be awesome. Just tell me if you want me to do it. Good luck
import flash.display.Scene;
import flash.events.TimerEvent;
stop();
var timer:Timer = new Timer(2000,0);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
function timerHandler(event:TimerEvent):void {
if (this.currentScene.name == "Scene 1") {
  if (this.currentFrame != this.currentScene.numFrames) {
   this.nextFrame();
  } else {
   this.gotoAndStop(2);
nextFrame();

Similar Messages

  • How to extract any picture (frame) from the video file

    I am writing an application that is going to show the grid of tiles. Each tile should have picture that is frame from some particular video.
    Basically something similar to Photos or Videos - standard Windows Phone app.
    The question is how can i extract any picture from the video to put it as picture of the tile or button?

    I pinged you offline.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to call a j-frame from a main frame

    I use both NetBean 5.5 and Forte for Java4
    i would like to know how to call a j-frame from a main jframe window when a button is clicked after
    action performed or moused clicked is set
    i.e Main jframe (window) has a button ---> (grades) click it
    should open the sub-jframe named grades with all the grades showin in that frame
    your help please thanks

    It sounds as if you want the button to open a dialog that displays your data such as a JOptionPane and not a JFrame.

  • How can I use Chrome Frame when the downlevel stage always displays?

    I wan't to try Chrome frame but even after the user installs chrome frame the Edge animation will display the downlevel stage content because it detects the browser is older than IE9. Is there some technique to reset play the HTML5 content after installing the plugin?

    Hi DickW
    Thank you for your help!
    I have tried the example.But the example shows how to connect one CAN network with two ports.
    I want each port connect to the net can both read and write;
    I want to apply the function like this:
    1.config the port1 and port2
    2,open port1 and port2
    But after I open port1 or port2 the other port can't be opened;
    After I open the second port it always returns negative.
    In the codes I use CAN0 and CAN1 as the CAN objects.
    Attachments:
    twoport.zip ‏1184 KB

  • How do I import individual frames from iMovie into iPhoto?

    How do I import individual frames from iMovie into iPhoto? Or how do I export individual frames from iMovie into iPhoto? My final goal is to have a DVD of individual photos from a video I recently shot. Thanks

    Here is one way to do it, although you will see there could be variations.
    1) Open iMovie
    2) Start a new project - name it Stills for iPhoto (or a name of your choice)
    3) Go to your EVENT. Find the spot with the cursor that you want a photo of. Right-click (or control-click if you don't have a mouse) and select ADD STILL FRAME TO PROJECT.
    4) The photo should be in the Project called Stills for iPhoto.
    5) Right-click (control-click) on the photo and select REVEAL IN FINDER.
    6)When the finder window opens, right-click and select COPY. Go to your Desktop or a folder of your choice and right-click PASTE
    7) Drag the photo from your Desktop to iPhoto

  • How do I remove residual frames at the beginning and end of a video?

    I'm making a short clip with black slugs at the beginning and end. But there are two or three residual frames from the incoming clip after the black clip that stay at the beginning and end of the video and I can't remove them.  I've tried trimming the beginning and end of the video several different ways, and the frames won't disappear. They stay in the video when I make a DVD. The very first and very last frame have sprocket holes in them on the edge of the frame. I'm baffled. Is this an artifact of using the trial version?

    chances are they are from a fade.  have you zoomed in really really close and checked if there is a small fade in or fade out?  happens to me all the time, and with the fade out, you can't do anything to fix it (that I've found) except replacing the clip from your Browser.  See my similar question here:
    https://discussions.apple.com/thread/3589714
    Hope that helps.

  • How can I extract single frames from an imovie?

    How can I extract sigle frames from an imovie? Thanks for any input on this. Using iMovie 11

    John Codgell has some tips on how to use MPEG Streamclip to do this on this Discussion Thread:
    Helpful AnswerRe: can you make a still photo from clip

  • I have Adobe Acrobat version 11.0.0 installed with Adobe CC.  I cannot download PDFs from the internet (in this case from PubMed National Library of Medicine).  If I try to do this  I get a popup message saying that "ADOBE ACROBAT NPAPI PLUG-IN, VERSION 1

    I have Adobe Acrobat version 11.0.0 installed with Adobe CC.  I cannot download PDFs from the internet (in this case from PubMed National Library of Medicine).  If I try to do this  I get a popup message saying that "ADOBE ACROBAT NPAPI PLUG-IN, VERSION 11.0.0 NEEDS YOUR PERMISSION TO RUN.  I DON'T KNOW HOW TO GIVE THIS PERMISSION OR WHAT TO DO.  CAN YOU PLEASE HELP?

    What buttons do you get to click on with this message? What browser are you using (e.g. Safari, Chrome, Internet Explorer...)

  • Refresh page with data from the Next Record in the Table through a Button

    Scenario: Record of a table “prototype” is made up of 8 columns,
    key_col,
    text_col,
    label1_col, label2_col, label3_col,
    check1_col, check2_col, check3_col,
    I have created the following items on a page:
    a) A Display Only item that is populated through a SQL query
    “SELECT text_col from prototype where rownum=key_seq.NEXTVAL “.
    b) Hidden item for the database columns “label1_col, label2_col, label3_col”
    Source type for the hidden items is of type SQL query, Source expression is:
    Select label1_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label2_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label3_col from prototype where rownum=key_seq.NEXTVAL ;
    (key_seq is a sequence).
    c) Checkbox item for the database columns “ check1_col, check2_col,check3_col"
    d) The labels for the above checkbox items are &label1_col. , &label2_col. , &label3_col.
    I have created a Save button to save the state of the checkboxes; (STATIC:;1 )
    I want the page to be refreshed with the data from the next record (Fields text_col, label1_col, label2_col, label3_col) through a “ Next” Button.
    Can I please know how I can achieve this?
    Thanks in advance

    If you need the value that is entered in the textbox as the email body, then try this..
    <html>
    <HEAD>
    <title>WebForm1</title>
    <script language="javascript">
    function mailHTML() {
    var content=document.getElementById('textBox').value;
    location.href="mailto:?body="+encodeURI(content);
    </script>
    </head>
    <body>
    <form name="theform" id="theform">
    <div name="body1"/>
    <input type="text" value="Test" id="textBox"/>
    <input type="button" value="Send Email" onClick="mailHTML()"/>
    </div>
    </form>
    </body>
    </html>

  • TS1702 Having problems with Security questions to be able to download from the iTunes store

    Having problems with Security questions to be able to download from the iTunes store

    Security questions
    Read this note for information on how to reset the security questions http://support.apple.com/kb/HT5312
    This user tip may also help you Security Questions

  • I have a problem with my itunes. I cannot transfer apps from the itunes to my iphone 4s. Any time I try to snyc itunes tells me "The iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone. HELP

    I have a problem with my itunes. I cannot transfer apps from the itunes to my iphone 4s. Any time I try to snyc itunes tells me "The iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone. To authorize this computer for items purchased from the itunes store, choose, Store > Authorize This Computer. But anytime I authorize it tells me you have authorized including this computer 2 out 5 computers. And if I try again the same story over and over again. But I have many apps on my itunes which I want to transfer. Please someone help me.

    Well Authorize the Computer...........

  • I have a Lucid 2 LG.  I have been having trouble with insuffient storage.  I have a 8G phone and have spent hours with Tier 2 tech trying to move info from the internal storage to the SD card with no luck,  When I go to storage in the settings it states t

    I have a Lucid 2 LG.  I have been having trouble with insuffient storage.  I have a 8G phone and have spent hours with Tier 2 tech trying to move info from the internal storage to the SD card with no luck,  When I go to storage in the settings it states that over 4 gigs is for Misc?  System data takes up over 4 gigs.  No one can tell me what system data consist of.  So My question is does anyone know what system data is?  I am assuming I have a 8 gigphone but can only use 4 gigs???

    System data is the OS or operating system.  That is where the recovery stays separated from the rest of the storage so that it doesn't get corrupted.  It is not accessible and non-movable.

  • HT1473 How do I get a purchased song to play on my ipod shuffle remote from the docking station?

    How do I get a purchased song to play on my ipod shuffle remote from the docking station?

    I can think of only one reason a song would be "converted" while it is being loaded on a shuffle.
    Select the iPod in the iTunes sidebar, under DEVICES.  Over to the right, depending on iPod model, go to the Summary or Settings tab.  There should be a setting there that says Convert higher bit rate songs to 128 kbps AAC (the 128 kbps part may be adjustable).  If that checkbox is checked, try unchecking it.
    NOTE:  This setting may allow more songs to fit on the shuffle, but for any converted song, the sound quality will become inferior.  So I don't use it.

  • How do I delete a incorrect email address I typed in a sent email from the suggested email list when I start typing again?

    How do I delete a incorrect email address I typed in a sent email from the suggested email address list when I start typing again?

    You can't. There is no way to eliminate those remembered addresses in the mail app. Eventually if you keep ignoring that address it will go away, but it can take some time before it disappears. The only way that you can eliminate now, is by restoring the iPad to factory settings and that's pretty radical just to get rid of a mistyped email address - IMO anyway.

  • Can i use the ipad with 3G in egypt if i bought it from the US

    Dears
    Can I use the ipad with 3G in egypt if i bought it from the us

    You will need to get a local micro-sim, but yes you should be able to. 3G iPads bought in the US are not locked to a carrier, but in order to use a local micro-sim you'll need the AT&T version if buying from the US - the Verizon iPads are CDMA based and don't use sim cards (so are effectively locked to Verizon)

Maybe you are looking for

  • What to do when the AUR is down

    From time to time the AUR, like any website, goes down. When that happens, there is a simple, three point checklist you can follow: 1. Check that it is not just a local issue with downforeveryoneorjustme. If it is just you, then troubleshoot your mac

  • What happened to the "options" button in iTunes 5?

    Hello - I just upgraded from a 4G 20G to a 60GB. Now I want iTunes to not transfer unchecked songs. What happened to the options button that used to reside at the bottom of iTunes? And where do I control iTunes to not transfer unchecked songs? Thanks

  • Trying to update a t510

    Hello I've been trying to update my t510 thin all day. I can't find the right image to download either ( the image for the latest OS), so now i'm hoping that someone here has the appropriate image or could tell me what I am doing wrong. thanks. This

  • Movie just stops playing, shortly after starting it.

    We started watching a Netflix movie, got 15-30 seconds into it and it just stops.  It goes back to the menu screen every time - no error message though.  It did it over and over, so we tried a different movie.  It did the same thing, but it waited un

  • ApplicationManager Starting Config Caught Throwable

    Attached is the server log. I am using WIN2K with all available patches and service packs. The applicaiton is Manugistics and I am using Oracle 9.2.0.1. I suspect that I have some incompatibilities in the OCI but don't know how to resolve. I found th