Loop 30 seconds

I am making a simple web banner in Flash Professional CC (AS3).
The file has following layers:
Actionscript (A button covering the entire button with a clicktag code embeded in "Action"
Picture 1 (Last for the first 5 seconds)
Picture 2 (Last for 5 seconds after picture 1)
Now I however need to make this banner loop. In the publish settings I can press loop at it goes on forever - but I need it to keep looping for 30 seconds.
What code do I need to use in order for that to work? And where should it be placed? 
(An alternative is a code to make it loop 3 times, since its 10 seconds. But that limits me to not change the actual time of the looping)-
Hope someone can answere this

You could simply use a setTimeout() function call to have the movieclip stop() after 30 seconds elapses. 
Another option would be to use the Timer class.
If you want to go the 3 loop route then you place a counting variable in the timeline and increment its value and check it at the end of the timeline and stop() when it detects three loops have been completed.

Similar Messages

  • OS 10.4 clean install failing in a loop on second DVD - Help?

    I am clean-installing 10.4 using the original DVDs on my iMac 20" that is only about 6 months old (PPC.) The first DVD installs fine, it checks the disc etc., then it asks for the second DVD. I pop it in. It hangs for a long time, then it starts to install Keynote 2. A few seconds into this, it restarts the process as though it had just asked for the 2nd DVD and I insterted it. It looped like this for 3-4 hours. The Error Log never reports anything wrong for long enough for me to see. There are no errors while it is hanging.
    I've tried it twice clean. The computer ran fine before I did this. I got a new MacBook Pro and am giving my iMac to my sister, and I wanted to clean install it for her. Disaster - now it won't work either way...
    Any ideas? Is it just bad media on the second DVD? Is there something I can download?
    Thanks for your help!
    Rob
    20" iMac (PPC) and MacBook Pro 17"   Mac OS X (10.4.7)  

    Why not try to install using the Custom Install option (you can install just disk 2) and select not to install Keynote and anything else it balks at.
    In that way, it might get you up and running and then, as sugggested, contact Apple and try for replacement disk(s).

  • Bug with GTX 780, reboot loop 2 seconds

    My X510 is el diablo ! lot of problems... lot lot lot... I have a GTX 780 KFA², it's a good, very good... but when reboot x510 (restart windows/computer) is reboot loop every 2s... windows off... power supply make 'clac' (i suppose 'off') 1s... power supply 'clac' (on) and i have not time to see lenovo logo on display, power on approxymatively 2s ... and power supply 'clac' (off) 1s... power supply 'clac' (on) ... loop mode.... i do unplug the power cable for 20 secondes and replug to restart correctly the x510...  

    You have to switch to a ME8 bios (latest) or the GTX780 won't work. Alternatively buy a newer Z77 board. Older bios versions of your board are too outdated for latest generation GTX7xx boards. Indeed oc will be limited with a ME8 bios howerver but besides not using the vga or using a different board there is no other option.

  • Loop keeping second animation on hold

    hello every one
    i have an animation loop which triggers another animation.
    The problem is
    the loop is on hold while the animation it triggered is
    completed.
    I wish some one could give me some examples on how loops
    could trigger other
    animations.
    Swapping the loop for an exitframe is not an option it
    appears.
    thanks in advance
    ahmed

    yeah I meant a repeat loop.
    could u show me how i could use flags or switches to overcome
    the problem.
    I need to trigger an animation when ever a condition is met
    in the repeat
    loop.
    thank you
    ahmed
    "dsdsdsdsd" <[email protected]> wrote in
    message
    news:fs4h5v$hoc$[email protected]..
    > do you mean a 'repeat' loop??
    >
    > usually 'repeat' loops in lingo or 'for' loops in other
    scripting
    > languages
    > run until completed;
    >
    > so if you have an infinite 'repeat' loop, you will
    effectively stop your
    > movie;
    >
    > otherwise consider exitframe or stepframe loops;
    >
    >
    >
    >

  • Debug loop seconds in process chain

    hi
    we have an issue. our DTP process has failed in our process chain and the reason was that the transformations were inactive. So we have activated the transformations and have executed the DTP manually. Now when i go to log view of my process chain and  enter REPAIR  on our DTP Process it is asking for DEBUG LOOP ____ Seconds.
    what does debug loop mean...
    IS it the right way to restart our process chain by enterIng  REPAIR DTP after the manula dtp load we have done by activation transformations
    Can anyone suggest me what should the debug loop  --- value I  SHOULD GIVE

    Hi Krishna,
    As mentioned Debug Loop is use to debug a Process Chain....You have to Enter a wait time greater than 0 seconds. And then, activate the Process Chain....
    Then Go to the menu option: Execution -> Execute Synchronous to Debugging........The debug screen will now pop-up.....
    But in your case, I don't think it is required....Since you have alreday executed the DTP manually....
    Now you just need to continue the rest of the chain....
    To do this.....open the chain in the Design View ............In the top where we write the TCODE, there wrire "COPY"..........Enter.....
    It will copy the original process Chain..........Give a technical name of the copied chain............
    Remove all the Processes till that DTP........Including the Start process......
    Create a new Start Process......connect it to the next step.......activate the chain and execute it..........then rest of the chains will get executed fine.......
    I don't think that you will face the same issue in the next run of the Process Chain........
    You can also use the FM : RSPC_PROCESS_FINISH......to continue the chain instead of copying...
    For this you can check the Bog :
    Restarting Processchains
    Do as you wish....
    Regards,
    Debjani......

  • Menu Loop Point 1-second skip

    I'm hoping somebody can help me...
    I've created a menu that has a video clip background, and set a loop point about 4 seconds in (after everything flies in, and the image remains static).
    The problem is that from the "At End:" dropdown list, "Loop" is selected, but in the box next to it, the duration (number of seconds) input field is not available to me -- I can't change it. So it's set on "1 sec"... but that leaves a terrible pause at the end of the clip before it goes back to the loop point, and I'm trying to give it a seamless loop (which seems like it should be the logical default).
    What am I doing wrong?? I've searched the manual and this forum, and can't find an answer. Please help ASAP... thanks!
    OZ

    It's a great suggestion, Hal. Thanks. But are you really saying that that skip is unavoidable? What's the point in being able to "loop" something, if the loop can't appear seamless?
    I'm not doubting that you know what you're talking about, I'm just surprised if such a fundemental problem hasn't been resolved by the manufacturers. Or am I really that much more pedantic than everyone else out there? (From what I've seen on this forum, I'd find that hard to believe!)
    Thanks for the great suggestion, anyway. (I've done something similar, where the music fades out at the end of a 2-minute menu, and when it loops, you can very clearly see the stutter, but it almost looks intentional. Not nearly as efficient (or effective) as the looping 20-second menu I was originally planning, but if that's the technology's limitations, well, whaddya do?)
    OZ

  • How to Change multiple keys on one loop in one track

    Several one-to-one lessons fail to reveal how I can change loops key independent of other loops. Example, take a loop and loop it four times in one track, trying to make first loop E, second loop A, third loop B, fourth loop C. Seems when I change one, they all change to the new key. Anyone know how to create independent control over each segment?
    Message was edited by: TomRin

    See this support article:
    Record multiple takes:  http://help.apple.com/garageband/index.html#gbnda1184253

  • Is there a way to create a fade only for the first loop?

    I have a loop (Modern Guitar Rock 04), which I've extended out so it repeats four times. I select the Fade Tool and X-Fade for drag. I then drag just in front of the loop and onto it, which creates a fade. However, this also creates fades at the beginning of the repeating loops. Is there a way to create a fade only for the first loop?

    The loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).

  • Z68A-GD80 B3 Boot Loop and Failed BIOS LED Flashing

    I've been having "boot loop" issues with my system since it was built in June. Basically, when the system is powered on the lights/fans come on for around 3 seconds then it shuts itself off for another 3 seconds and repeats the loop infinitely. Meanwhile there are no POST code beeps and nothing shows up on screen. I also noticed today that the Dual BIOS control LED is flashing during boot loops indicating that the primary BIOS has failed.
    As this was my first build in quite a while I didn't initially worry about it too much, figuring that it was probably just a BIOS setting or improperly seated hardware issue. Shortly there after my son was born and needless to say there wasn't a whole lot of time to trouble shoot a PC for a couple of months. Fast forward four months later to today and the boot looping is driving me nuts. It seems to occur when the system has been powered down overnight and more frequently if the reset button is used. I've read a lot of stuff saying that the Gigabyte boards are prone to this issue, but can't find anyone else with the same issue on a MSI z68 board. I've check/done the following to try and trouble shoot the issue.
    1. Flash to BIOS 17.3 (twice)
    2. Installed system speaker to hear post codes. Got a whole lot of nothing.
    3. Installed one stick of RAM in slot one. Tried all four sticks. Nothing works.
    4. Set BIOS values to default.
    5. Tried disabling and enabling XMP profiles for the RAM.
    6. Upped the voltage on the RAM to 1.5V, since the board reports an under-volt around 1.48 on auto. No effect.
    7. Disabled PLL overvolt.
    8. Enabled VDroop (still not clear on what this is).
    9. Removed both video cards and used the on chip video. No effect.
    10. Unplugged all USB devices.
    11. Tried XMP enabled and disabled for the memory.
    12. Hard drive plugged in and removed makes no difference.
    13. Bare system with only one stick of RAM installed, no difference.
    11. Lots of other crap that I can't think of right now.
    Any help would be great as I'm at a loss here.
    System specs are as follows;
    Intel 2600K
    Corsair H50 Cooler
    MSI z68a-gd80 B3 with BIOS v 17.3
    PNY Geforce GTX 560 Ti (2x in SLI)
    Linksys Wireless G PCI card
    Crucial Ballistix Sport RAM (4x2GB at 1600 MHz XMP enabled)
    Segate Barracuda 7200 RPM Drive 500GB (2x in RAID0)
    OCZ Vertex2 64 GB SSD as system cache
    Corsair TX750 Power Supply
    Corsair 600t case

    More wierd stuff.
    I couldn't get the board to boot without looping last night, tried the usual unplugging and clearing the CMOS nothing. Boot loops at every turn.
    I wonder if maybe I've got some bad pins or a poor connection on my RAM slots. I removed the RAM and began testing one by one. First stick gave a boot loop. Second stick worked. On restart the BIOS LED wasn't flashing anymore, which is odd since I hadn't yet set the BIOS fix feature to enabled. I powered down again and put my RAM back in, set my BIOS settings as suggested, and then clocked the RAM to 1333MHz. Seemed stable last night through a number of restarts.
    As for the backup BIOS reporting v 17.3. Yeah, that is odd. The manual says it can't be flashed either. Maybe BIOS just reports what the primary version number is no matter which chip (primary or secondary) is actually active and being booted from?
    I'd like to think this is over, but I'm sure when I go home and power up I'll get another boot loop. I'd rather not be without a PC for a couple weeks, but I may just have to RMA so I don't have to deal with this anymore. It's quite frustrating to have fiddle around for 10+ minutes to get your PC up and running, plus with a RAID0 setup and SSD cache I'm just asking for a system failure with all these power on/off cycles.

  • How to jump out a dead loop?

    I made a java program with a GUI. When I pressed a button, the program would go into a dead loop. I supposed the program would jump out of when I pressed any of other button. So I set a global boolean variable, any button pressing event would set the variable as "true". Then I wanted the program break the dead loop by judging the boolean variable.
    However, when the program went into the dead loop, it seemed not to respond to any mouse or keyboard event, even the closing all window operation. I had to kill the program by press ctrl+alt+del!!!
    I don't know whether there is something wrong with my program, or it should be like this in java and must be bypassed by some tricky way.
    I don't want to use multithreads to bypass the problem. First, it is very clumsy. I don't want to make my program much more complicated only because of a very simple dead loop. Second, I used vtk in my program and vtk is unsafe for multithreads.
    Please give me a idea. Thanks a lot in advance!
    Regards
    Lian

    You use the event thread to run the loop. So as long as it is running in that loop, it cannot continue and listen for other events, nor repaint your gui.
    So you would have to make a thread that runs the loop so the event thread can continue with its works.
    Event methods like actionPerformed should not take long to execute, if it does, you should always run that code in its own thread.

  • Creating nested loops

    Hi!
    I would like to list all Combinations of a list A and a list B (each containing 5 integers) in a third list C in order to get 25 combinations. I am intending to use nested loops so that on the first loop the second loop starts and then the result lets say list A + list B are listed in the list C. Is there any other way of doing this with Labview or I am on the right track?
    Best Regards,
    Hamid  

    You can use the polymorphic array math to accomplish this.  Inside of a single for loop, index Array A and add that to the entire Array B in one shot.  At this point, there are numerous ways to take the output.  Probably the simpliest is to reshape the output 2D array into a 1D array.  For better memory allocation, you can preinitialize a 1D array and replace elements in the for loop but in the end it accomplishes the same task.  See attached example (LV7.1.1).  Of course everything is dependant on what you are going to do with this, what operations, when and where the numbers come from.
    Paul
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?
    Attachments:
    arrayMath.vi ‏33 KB

  • Is it possible to have a video loop while audio plays in a motion menu?

    Hi!
    Here's the deal:
    I have a seamlesly looping 8 second video clip for my motion menu, but the audio file for that menu lasts 1 minute. For rendering time/disc space and bit budgeting purposes I would like to use the video file as a loop while the audio file plays trough in my motion menu.
    Is it possible to have the video file loop while the audio plays trough, or do I have to make my video 1 minute long too?
    Any help will be appreciated!

    The video must also be 1 minute long too.
    You could always loop the 8 second clip though.
    Load up Premiere, add your loop & 1 minute audio clip.
    Set 2 seconds silence at the head of the audio.
    Loop your 8 second clip 8 times to give you a 64 second video clip.
    This will give you 2 seconds of silence at the trailing end, but there is really no other way

  • How to save a chart after each iteration in a for loop?

    Hello,
    I have written code which initializes a spectrometer. Once initialized, if the "Capture" button is pushed, the spectrometer takes a new spectrum three times (see for loop) every second. This spectrum is displayed as a chart in my front panel. My code runs fine...it will update the spectrum every second.
    However, I want to be able to save each of these three iterations as separate graphs. Basically, I want to click "Capture" and have my code save three charts to a specified folder. How do I go about doing this?
    I've attached my VI.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Spectrometer Iteration.vi ‏444 KB

    Use Build Array to make a 2D Array of your X and Y data and use Write To Spreadsheet File to save the data.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Looping stop....!

    iam having following sytax....
    in my pai module...
         PROCESS AFTER INPUT.
      LOOP AT ITAB.
        CHAIN.
          FIELD ITAB-filed1.
          FIELD ITAB-field2.
          FIELD ITAB-field3.
          FIELD ITAB-SELKZ Module  ON_SELECT on request.
        endchain.
      ENDLOOP.
      MODULE LOAN_USER_COMMAND.
    .....so in above coding... ithink you can under stand that SELKZ is for to selct the table control row.... so if you selct the table control row then it will go into the module followed by...SELKZ,
    and here now iam modifiying above coding like this.....
         PROCESS AFTER INPUT.
      LOOP AT ITAB.
        CHAIN.
          FIELD ITAB-filed1.
          FIELD ITAB-field2.
          FIELD ITAB-field3.
          FIELD ITAB-SELKZ.
        endchain.
      ENDLOOP.
    Module  ON_SELECT on request.
      MODULE LOAN_USER_COMMAND.
    .......it was also properly working but....the thing is...
    in first coding the loop is partially running before gointo this module....but in second part the loop is completing....so because if this  iam facing trouble inthe caluculation part which is in that module and linked with the entries of the field1 and filed2....
    so now my quetio is...
         i want to stop that...
          loop in second..... one when one perticuler value is met.....but if i write if condition,...it was showing error like...if is not defined....
    please answer...
    Thank you,
    Naveen.....

    Try like this
    PROCESS AFTER INPUT.
    LOOP AT ITAB.
    CHAIN.
    FIELD ITAB-filed1.
    FIELD ITAB-field2.
    FIELD ITAB-field3.
    endchain.
    FIELD ITAB-SELKZ .
    Module ON_SELECT on request.
    ENDLOOP.

  • Loop 2 times on same cursor

    Hi,
    If you open a cursor and loop on it, and after the loop is finished, then loop on it again (without closing the cursor in between), will it loop again on the same data as was queried during the opening of the cursor? In other words, will the read-consistency of the active set created when opening the cursor be maintained when looping the second time?
    I need to check the data of table A, against table B (= first loop), and then empty table B and fill it with the data from table A (= second loop). But I need to be sure that the data from table A used to compare in the first loop, is exactly the data that is written to table B.
    Thanks,
    Roel

    Hi, Roel,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    If you're asking about a DML statement, such as UPDATE, the CREATE TABLE and INSERT statements should re-create the tables as they are before the DML, and the results will be the contents of the changed table(s) when everything is finished.
    Always say which version of Oracle you're using.
    It's unclear why you need two cursors. You can probably do everything you want to in a single MERGE statement, especially if you're using Oracle 11, where MERGE can DELETE rows.

Maybe you are looking for

  • How to install Loops into Logic Pro

    I've purchased brush loops and MIDI drum beats and would like to insatll them for easy access in Logic. Any tips on best to go about this? IE: audio folders that can be accessed from the llops pane in the MEDIA window...so far I have to navigate arou

  • Using an infosource in BI7 for 2 cubes - 1 cube

    Hi All I am taking data from two cubes into a single cube. I have loads of rules so only want to do those complicated transformations once. So I have two source cubes going into a infosource with just standard transformations (ie. field to field mapp

  • Essbase 9.3.1.2

    Hi, My essbase cube load is failing with below error.. MAXL> import database 'Account'.'Activity' data from data_file '/2007-01-01_bop.txt' 2> using server rules_file 'dl_bop.rul' 3> to load_buffer with buffer_id 1 4> on error abort; OK/INFO - 101906

  • How can I make Illustrator stills for Premiere Pro sequences?

    So far, when I create Illustrator stills (in this case, consisting of type) and import them into a Premiere Pro sequence, only the type itself ends up on screen. It's almost as if I've selected just the type to be used and the rest of the canvas has

  • Imovie can not import error -4960

    Aloha Everyone, Need some help again...I just imported some clips from my hard drive into Imovie. Then as I began to import the next few clips, imovie says that it can not import this file and gives me error 4960. I've tried to download the manuals e