Pause before function

I'm making an animation in which the user can drag an object
(mc) and when it is released it pauses for 5 seconds and then
begins moving...
I had hoped to be able to simply make a function (Pause) that
would count down the 5 seconds and then when Times >= 5 it would
perform the move function repeatedly...
But it's not performing the move function...I don't
understand setInterval very well so it may be a problem with
that...
Here's my code....

Hello Vapor,
If it were me, I would probably just make that animation's mc
start on a later frame in the timeline. Example, when a user
released the object it tells the mc in a certain frame label to
gotoAndPlay("frame labe"). In that mc I would have nothing for the
first 150 frames (given if you were setting your frame rate to 30)
then it would lead into the animation desired.
Not sure if that is the answer you are looking for, but I
know I sometimes over-complicate things I need done thinking there
is a certain Actionscript code for it, and I end up wasting more
time trying to find the answer. 150 blank frames in an animation mc
shouldn't add much, if anything, to the overall file size of the
swf.
Elijah

Similar Messages

  • Pause before image fade-ins?

    I'm very new to DW, so be gentle.  :-)
    on my opening web page, I have 2 jpgs that I want to fade into view on load--first one, then the other.
    I can make them both fade in using the fade command in the behaviors menu. BUT--what I really want is for the page to load blank, pause for 2 seconds before the first image fades in, pause again for about 3 seconds before the next image fades into view.  2 images, 2 pauses, 2 fade-ins.  Is there some easy code to create the pauses before the fade-ins for each image?  (I'm working in DW CS5 on a mac)  thx for whatever you can offer.

    Adjust the following values to suit
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    body {
        width: 980px;
        margin: auto;
    #logo1, #logo2 {
        display: none;
    </style>
    </head>
    <body>
    <img src="http://shoguncarco.com.au/img/camaro.png" alt="description" name="logo1" id="logo1" />
    <img src="http://shoguncarco.com.au/img/challenger.png" alt="description" name="logo2" id="logo2" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(function() {
        $('#logo1').fadeIn(3000, function() {
        $(this).delay(1000).fadeOut(2000, function() {});
        $('#logo2').fadeIn(6000, function() {
        $(this).delay(1000).fadeOut(2000, function() {});
    </script>
    </body>
    </html>
    Gramps

  • I play Zuma Blitz on FB; Ever since I upgraded to Firefox 4 I can't play the game the darn frog pauses before shooting and it's a mess; you know it's what I enjoy doing and it needs to be fixed can you help me with this??? Thanks

    Question
    I play Zuma Blitz on FB; Ever since I upgraded to Firefox 4 I can't play the game the darn frog pauses before shooting and it's a mess; you know it's what I enjoy doing and it needs to be fixed can you help me with this??? I am super frustrated ith the situationThanks

    Upgrading to firefox 5 and updating my plug-ins helped a bit. Frog is less 'sticky' now, but it's not solved the problem. Java needs to be up to speed or the frog goes into stasis....

  • Help with a simple pause-code function

    For a week I've been trying to figure out a simple pause-code
    function fror AS 3.0. I need something that pauses AS code for set
    amounts of time. People have tried to help me on this forum, but
    I've still not been able to make the code work.
    Here is what I have at the moment for pause-code (not
    working):
    var intID;
    intID = setInterval(delay, 3000); //this tells flash to wait
    3 seconds
    function delay(){
    clearInterval(intID);
    _root.gotoAndPlay(1); // or do something else...
    The person who supplied me with this code did not include the
    first line "var intID", but as a new flash user, I wasn't sure how
    else to declare intID. Could someone with some flash experience
    walk me through the steps of creating a pause-code function or add
    to the one I have already provided. When I use the above code in my
    flash document, the pause feature does not work at all. It
    essentially skips over the setInterval and clearInterval functions
    and plays the root clip in delay(). I need code meant for AS 3.0
    and I'm becoming increasingly desperate for a response.
    I hope this is understandable and thank you for taking a
    look,
    Sam

    Hello KGlad,
    Thankyou for that information. I had no idea lol. Could you
    please clarify and explain a little more about using the timer
    class to delay execution of code? Possibly provide an example? I
    would be very grateful.
    Thanks,
    Sam

  • How to pause before startup to debug??

    Upon startup, does the debugger pause before it calls main of the application to allow the remote debugger to connect as a client????
    If so, I just need to go find out what I am doing wrong with eclipse.
    If not, how does one pause such that I can connect eclipse before the JVM calls main, as I want to step through the server startup????
    Also, I see no output to the console in eclipse. Does stderr and stdout go over the remote debugging socket so clients can print the stuff to the console, or is this not allowed and so whenever I remote debug, I will never have logs in any debug client(ie. eclipse, JBorland, whatever)?????
    thanks,
    dean

    ok, I answered my first question and the debugger does not pause on startup, so how do I make it pause without changing code. I mean, I could put a sleep in there, but that is hack for I don't know the answer.
    How does eclipse or any IDE startup the JVM and attach it's debugger in time before main is called. They must do it somehow, so I know the problem must be solved in some way. Does anyone know????

  • Long pause before startup

    Hello,
    Sometimes my intel mac mini pause longer than usual before startup chime is heard. I ran hardware diagnostics (extended one) and no problem was reported. Could it be a hard drive related issue?
    Thanks inadvance.

    I have a similar thing to this, it doesn’t happen very often, but I’m always a little bit worried it’ll get worse, or it’s a symptom of something else,
    basically every now and then I get that 5second pause before the chime, I haven’t run any diagnostics yet (all my disks are up north at the moment, I’m going to get them back soon, might see if they show anything)

  • Hi can someone please help, my imac crashed, when i try to start it up, it just beeps loudly 3 times, then there is a pause before it beeps 3 more times, this just continues to happen, any sugestions? please help

    Hi can someone please help, my imac crashed, when i try to start it up, it just beeps loudly 3 times, then there is a pause before it beeps 3 more times, this just continues to happen, any sugestions? please help

    allanpar wrote:
    i am having to use my laptop to post this question, missing my imac so much, its just not the same using this slow windows laptop.
    Then maybe it's time to buy a new Windows notebook.
    The RAM has either gone bad or somehow become unseated. Also there is the chance that the RAM slots have failed.

  • Pause before launching function

    Ok, heres my problem (among others I am sure)!
    I want to call the following function, which is meant to
    pause for 2 seconds before launching the function within it.
    Initially it works but the counter starts acting erratically when
    you launch the initial function a few times, which unfortunately is
    a requirement for the application.
    Any help would be greatly appreciated on this one.

    I think I have solved it with

  • Pausing a function

    How would i pause this for loop before it goes through again?
    i was thinking about using setInterval, but the way its used doesnt
    seem like its possible?

    After writing a response, it finally donned on me what you
    want. you're looking to slow down the loop to actual time, right?
    instead of using a for loop, use setInterval and a function.
    So turn the for loop into a function, then call it with
    setInterval. When your variable = fHeight, kill the interval using
    clearInterval(intervalName);

  • Pause/Play functionality not working with publish to HTML5

    Hi experts,
    I am creating a Captivate course to be deployed on iOS and publishing to HTML5. We are using custom buttons (not playback controls) for navigation to advance through the slides. My client would also like Play/Pause functionality for some of our embedded (MP4) videos. I used the following tutorial to create these buttons to toggle the Play & Pause functionality:
    http://www.youtube.com/watch?v=0v2F0NyEAfs
    This worked PERFECTLY when previewed in a browser from Captivate, but does not work when published and launched in HTML5 format, from the same browser. I didn't use any Flash content, rollover functionalities, or anything noted in the limitations list for HTML5 output. The conditional functions I have set for my buttons are:
    PAUSE:
    Hide > SPI_Pause
    Show > SPI_Play
    Assign > cpCmndResume with 0
    Assign > cpCmndPause with 1
    PLAY:
    Assign > cpCmndPause with 0
    Assign > cpCmndRsume with 1
    Hide > SPI_Play
    Show > SPI_Pause
    The issue I am encountering is that the video completely pauses itself the moment the pause button displays on the stage (no matter where I place it in the timeline). I'm not pressing it or anything, it just initiates the cpCmndPause function and disregards all the others I have set. From there the conditional sequences are rendered useless as the video is already paused even though I didn't press the button. I've verified this happens anywhere I try to use the cpCmndPause function.
    I am running Captivate 6.1.0.309 on Mac OSX 10.8.2. I've tested the HTML5 output in Chrome and Safari with the same results. I did see a thread regarding a patch install (for 6.0.1xxx) that resolved some issues, but this appears to be an earlier version of what I have installed so this should have been resolved with my install?
    Please HELP!

    So, was this issue NOT resolved with the patch, or is this an entirely new/different issue?
    It seems as though this functionality is pretty basic, so I don't understand why this is a restriction with HTML5 output? Please advise, if there are restrictions with advanced actions that are not noted in the HTML5 limitations documentation, then they should be.
    Thank you, I too have a client deadline and have purchased this subscription based on the documentation Adobe has provided about the application's ability to publish to this new format.

  • Photoshop Elements 12 download paused before completion. Now what do I do?

    Earlier today I purchased a PSE upgrade. Before the upgrade finished the activitiy was paused. What can I do to get the download to complete?

    Just download the full trial version and register it with the serial number you got with the upgrade purchase.
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Finder pauses before accessing thunderbolt drive

    New Mac Pro ( late 2013 ), latest Mavericks.
    wd 8Tb My Book, thunderbolt.
    if I try to access a folder on the drive and I haven't accessed the drive for a little while, like 10 minutes, the finder pauses up to 10 seconds before showing the contents of the folder.
    Any idea why it would take this long and what do I do to remove this delay?
    on a similar , maybe related , note, I use the drive to store video that I stream to a PS3 through a power line network. part way through the streaming the video will pause for 6-10 seconds , then resume. The only thing that has changed in this configuration is the new Mac pro. I was using a 2006 vintage macpro with internal drives before and never had a proble. Could this be related?

    Any idea why it would take this long and what do I do to remove this delay?
    It is probably spinning up the drive(s).

  • ITunes 11 pause before song starts

    iTunes 11 pauses 4-5 seconds before song starts, version 10 had instant start of music when I clicked on play.

    Hi musicaddictedCT,
    Thanks for visiting Apple Support Communities.
    The steps in this article can help with troubleshooting iTunes:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Jeremy

  • Long pause before a .pdf opens when right-clicking

    When opening a .pdf with Adobe Reader 9.3.2 in Windows XP Explorer by double-clicking it or by right-clicking then selecting Open with Adobe Reader 9, there is a long pause (22 seconds) before it opens.  If I disable then re-enable my local area network connection, these symptoms disappear for a while and the .pdf files seem to open normally (within a second or two). What could be causing this?  When opening a .pdf from within the Adobe Reader program itself, the .pdf files seem to open normally whether the local network connection is enabled or disabled.  

    Sometimes after a Microsoft Update, doc and xls files open slowly.  Apparently, Microsoft Update keeps resetting the DDE (Dynamic Data Exchange) in the doc and xls file types.  To fix this, I follow the instructions at the following Website:
    http://forums.techarena.in/ms-office-support/749154.htm
    Here are the instructions I follow for doc and xls.
    If the problem is ONLY when you double-click on a file to open it. the
    problem is likely due to DDE. It can be fixed by reinstalling, OR this
    workaround.
    Go to Control Panel, Folder Options, File Types, scroll down to and
    select XLS, click Advanced, select Open entry, click the edit Button.
    Now uncheck "Use DDE" and then put your cursor in the Application box,
    arrow all the way to the right and put in "%1" (include the quote
    marks), IF there is /dde remove it. Then OK you way out. Things should
    work quickly again.
    After doing this, doc and xls files open normally again.  But this does not work with pdf files, it has to be something else I haven’t figured out yet.  The Disk Defragmanter Analysis says I don’t have to defrag my C: drive, and the system idle process is at 98% when the file is being opened.

  • Have an item pause before final motion...

    Is it possible to have an object pause for a bit before it starts it's final motion when using scroll motion?

    There is currently no way to introduce a pause in animation over time during a continuous scroll. However, you can achieve similar effect by using anchor links and navigating to the position using the anchor which stops the scroll (and thus animation) once it has reached a specific point in scroll.
    Hope that helps.
    Cheers,
    Vikas

Maybe you are looking for