Making a flash movie delay before starting for the first time

Flash noob here. I've currently got a little bit of
actionscript in my flash movie which makes it loop a couple times,
and then pause, before looping over again, and then pausing again,
and wash-rinse-repeat, which is fine.
But now what I also need is to add a small bit of code
(preferably on the first frame) which allows me to set a delay
time, that the movie will just appear to be paused, but it should
ONLY do this the first time. Every other time, the movie should
loop like it does normally.
The reason is because I've got about 3 movies on my page,
when one stops moving, I want a 2nd one to start, then when that
one stops, the 3nd will start, and when the third one stops, the
1irst one will start again, etc. so I have to time it just
right.

If it might help, here's the code I have so far. The movie
has 17 frames. But that shouldn't matter, I was going to just go by
the loop count, and try to even them up that way.
frame 1
function pause(){
play();
clearInterval(timer);
loopCount=0;
frame 16
if (!loopCount) {
var loopCount:Number = 0;
loopCount++;
if (loopCount < 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay(17);
frame 17
stop(); // 60000 = 1 minute
timer = setInterval(pause, 10000);

Similar Messages

  • Making a flash movie delay before starting

    Thread deleted.

    If it might help, here's the code I have so far. The movie
    has 17 frames. But that shouldn't matter, I was going to just go by
    the loop count, and try to even them up that way.
    frame 1
    function pause(){
    play();
    clearInterval(timer);
    loopCount=0;
    frame 16
    if (!loopCount) {
    var loopCount:Number = 0;
    loopCount++;
    if (loopCount < 5) {
    this.gotoAndPlay(1);
    } else {
    this.gotoAndPlay(17);
    frame 17
    stop(); // 60000 = 1 minute
    timer = setInterval(pause, 10000);

  • HT1657 trying to rent a movie on apple tv for the first time and can't do it without authorizing my computer on itunes store but can't find the menu on the iTunes site that lets me authorize my computer. any thoughts out there?

    trying to rent a movie on apple tv for the first time and have to authorize my computer but can't find the itunes menu that allows me to do this.  any thoughts out there? 

    If the computer's running Mac OS X, move the cursor to the very top of the computer's screen, click on Store, and choose Authorize this Computer.
    If the computer's running Windows, press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (98261)

  • IPad 2 starting for the first time without itunes ?

    Hello everyone,
    I just bought an iPad 2  for my brother in India. :-).  A brand new iPad 2 in a white box from best buy. I have couple of questions and hope the forum members would help. Thank you.
    1. As i unboxed , i pressed the Home button, and the iPad screen didn't show the connect to itunes logo,instead led me thru' a series of steps like registering for itunes/apple password and it just started on its own. It works fine though ,however i found this to be weird to start without connecting to itunes. Is this considered "normal" for recent iPad 2's to start without itunes ?.
    2. What kind of travel adapter would you suggest for use in India /240V ?. I was suggested to purchase  a world adapter kit from apple store for $39.00 ,but i would use only one adapter and the rest wouldn't be of any use ? Could you suggest an adapter to use in India ?

    Sunnyr wrote:
    Thank you. My question is about starting iPad 2 for the first time without connecting to iTunes ?
    As of iOS 5, it is quite feasible to start up, configure and use an iPad without connecting to iTunes. My New IPad has NEVER been synched to a computer.

  • I Chat will not start for the first time on my Macbook Pro after Migration

    Hi hope someone can help as this problem has stumped me. I cannot get ICHAT to even start having migrated all applications via Migration Assistant from a Macbook to a Macbook Pro. Everything else seems to work fine except when I run ICHAT and follow setup I get to a final screen which locks without showing a DONE button to complete the setup process! I have reloaded OS X, downloaded the OS X Combo OSand tried that, deleted the app and started again just in case but to no avail. Can anyone help? The application worked fine on the old Macbook but not on this machine.

    Hi,
    Welcome to the    Discussions
    Please tells us which version of iChat was moved to the new computer ?
    What OS is the new computer at otherwise ?
    I would guess you will have to do th Hard way
    http://discussions.apple.com/thread.jspa?threadID=1486891&tstart=0
    and include the Support folders in any Reinstall
    Please note the Post time I add to my post as it may be some time before I post again.
    10:58 PM Wednesday; September 2, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • HT1414 i connected my iphone 5 to my computer for the first time since i got it and it didnt give me any option and just started to restore it from my iphone 4s. ive now lost all my pictures that were on it. Is there a way i can get them back!

    i connected my iphone 5 to my computer for the first time since i got it and it didnt give me any option and just started to restore it from my iphone 4s. ive now lost all my pictures that were on it. Is there a way i can get them back as i did not want it to restore my old phone anyway! i also had my hone set up to the cloud and it didnt work! PLEASE SOMEONE HELP ME

    Can you try to use another computer?
    If this does not work, visit an Apple Store or an Authorized Apple Service Provider next to your place, and show them the phone, maybe they can restore it before you'll have to get it serviced.
    Did you try to put it in recovery mode?
    iOS: Unable to update or restore

  • I'm modifying someone else's website for the first time (noob = yes).  I only have ftp access to the site server.  Before uploading changes, is there a easy/quick/recommended/etc way to make a copy of the files I'm about to replace?

    Great, first post, sorry for the title.  But to repeat it:
    I'm modifying someone else's website for the first time (noob = yes).  I only have ftp access to the site server.  Before uploading changes, is there a easy/quick/recommended/etc way to make a copy of the files I'm about to replace?

    You can use the Dreamweaver FTP (or a different FTP client) to completely copy the original website to your development computer, then, before making changes, you can copy the whole thing to a directory called something like "website original"
    If you want to run both the old and new sites on the remote server, this is often possible. Add a folder/directory to the server and call it something like "new" and upload the new files there until you are ready to replace the old site
    All of this you can do with FTP

  • Starting Permier Pro for the first time - how do I create a new project?

    Starting this software for the first time.
    New Project window is asking to load a preset. There are no presets.
    This is not good software - I can't get past the first window!
    What do I do, please?
    TIA

    Welcome to CS3.
    Before you post any further questions, please take a look at the video tutorials in Adobe's video workshop. I'm not trying to be rude, just trying to save you from having to ask many basic questions that can be answered by watching the video tutorials.
    http://www.adobe.com/designcenter/video_workshop/
    It is a great resource and can get you up and running. Just select Premiere Pro CS3 from the products window, then select the topic "Getting Started" and finally the title. Start by selecting "setting up a project" under the titles window.
    Its like having your own in-house instructor.
    However, as Jeff said, the trial version will not have certain features enabled.
    Good luck.

  • I turned on my new imac for the first time and it is making a loud fan noise please help

    I just got a new computer and when I turned it on for the first time it started making a loud fan noise. the noise seems like it is coming from the back speaker. and it does not make the noise on sleep mode.

    Connect the iPad to a USB 2.0 port your computer with the cable and iTunes should launch and it will take you through the process step by step.
    I assume that your computer meets the requirements and that you have the latest version of iTunes on your computer.

  • "Quicktime not installed on this system" message when starting up AE CC 2014 for the first time...

    Got a "Quicktime not installed on this system some functions disabled" -- or something to that effect -- message when starting up AE CC 2014 for the first time.
    I'm on a Mac Pro OS 10.9.3.
    Anyone know what I need to install to fix this?  I have the Quicktime player and QT plugins for browser, etc...  Never had to do anything for AE before.
    Thanks!

    solutions for problems with QuickTime files in After Effects CC (12.0) because of conflict with DVCPROHDVideoOutput Quic…

  • My brand new iphone 6 when charging for the first time gets a message "iphone needs to cool down before using" cannot even charge it

    My brand new iphone 6 when charging for the first time gets a message "iphone needs to cool down before using" cannot even charge it. Have offed and on several times, but same result. Any help on this.

    To resume use of your device as quickly as possible, turn it off, move it to a cooler environment, and allow it to cool down.
    You can read more on :Keeping iPhone, iPad, and iPod touch within acceptable operating temperatures

  • My second brand new iphone 6 when charging for the first time gets the message "iphone needs to cool down before using" cannot even charge

    My brand new iphone 6 when charging for the first time gets a message "iphone needs to cool down before using". I cannot even charge it. I offed it and on it several times, still the same message keeps on coming.

    To resume use of your device as quickly as possible, turn it off, move it to a cooler environment, and allow it to cool down.
    You can read more on :Keeping iPhone, iPad, and iPod touch within acceptable operating temperatures

  • TS3772 Hi Team, I fairly new at this & I'm trying for the first time to download a movie, however its not allowing me to play as it says I need to download quicktime which I have tried to do, I have this application now but its still not allowing me to vi

    Hi Team, I am fairly new at this & I'm trying for the first time to download a movie, however its not allowing me to play as it says I need to download quicktime which I have tried to do, I have this application now but its still not allowing me to play movie, any help please for someone who hasnt got a clue

    where did you download the movie from?
    what is it doing when it wont allow you to play the movie?
    since you downloaded quicktime is it still asking you to download quicktime?

  • I've tried to update my i-Tunes version after the site suggested I should following my i-Pad being plugged into it for the first time. The update seemed successful but the program would not open at all despite switching off the PC and re-starting several

    I’ve tried to update my i-Tunes version after the site suggested I should following my i-Pad Air being plugged into it for the first time. The update seemed successful but the program would not open at all despite switching off the PC and re-starting several times. I then tried wiping the original software from the computer and re-downloading from scratch. Each time I tried the download failed with a message saying “Service “Apple Mobile Device” failed to start. Verify that you have sufficient privileges to start system services” At this stage, the only way forward was to “abort” the download. This I have done now four times and the same thing happens. When I did finally manage to get an i-Tunes shortcut on my desktop, the program wouldn’t open saying: “i-Tunes was not installed correctly. Please re-install i-Tunes. Error 7 (Windows error 193)” Any ideas to resolve this?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I downloded iphoto 11 9.2 and when opened it for the first time and the program started to update my iPhoto library the file got corrupted. That has happened in the two macs I have (both of them rather new and updated to last Lion version 10.7.2).

    I downloaded Iphoto 11 9.2 from the apps store (was on iphoto '09 before version 8.x) and when opened it for the first time it tried to update my photo librery and ended up corupting it to the extreme that I had to get a backup from time capsule and downgrade my iphoto version. I spent yesterday 6 hours at the genius bar in an apple store and they were not able to provide me with any other solution. In the emantime, I have to forget about about photo streaming... Any idea, is this a bug that somebody knows how tp fix?

    In fairness, this isn't an issue in iPhoto 11 but one in your Library. Some file or other in there is damaged and that's what causes the crash during the upgrade.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

Maybe you are looking for

  • Problem Creating PDF with Multiple Files in Pro. 7

    I'm using Adobe Acrobat Professional 7 on a computer with Windows XP. The problem is that when I try to create a PDF with multiple files everything just suddenly stops. There are 75 files involved and when it gets to around 41 or so (don't know the e

  • PMS colors in Photoshop to be used in InDesign?

    Hi, I have a logo file that I'm doing in Photoshop that I want to throw into my InDesign document (a gift certificate - I like using ID so that the text is crisp), and this will be printed in 2 PMS colors (metallic gold 873 and green 330) on an offse

  • How to insert single quotation marks

    Hi folks! I'm having problem with inserting single quotation marks ('). I know this could be easily solved but I'm not sure what the best solution is. Example updatePackingMethod("That's it"); will throw a sql exception: Syntax error (missing operato

  • Wacom Intuos 5 with mouse pops up virtual keyboard in Lightroom CC. How to stop that?

    I have Windows 8.1 and Lightroom CC. Whenever I use my Wacom mouse to navigate to a textbox to enter something (like keyword or someone's name) the virtual keyboard pops up and covers half the screen. As soon as I start to type, the keyboard disappea

  • Need to call storeprodure from entity object model in visual webpart

    Getting error Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. How to resolve it. Thanks, Siva.