Counter timer for the duration of video

Hello

I am trying to create a video control for a SWF in video. I'm working on a way to display the total duration of the video and game time. So far, I've worked on the total time using _root._totalframes / framerate (12 fps) 60 to give me the time in minutes. I have problems with using the same method but with the _currentframe to work on the current duration of the video. I can get the minutes to display correctly using the Math.floor function but I could not get the proper display of the seconds. Clear as mud? !

For example, that my video has a total time of 2 minutes and 36 seconds. I want recreation to update while the movie plays until it reaches the total times... 01:46 02:36 etc.

Any ideas?

Thank you

instead of divide by 60 to change your total time in seconds and fractional minutes (and then rounded up), just pass your seconds total to the function below. It will return the time in the desired format:

Tags: Adobe Animate

Similar Questions

  • Elapsed time for the materialized view vs Master table query

    Hello all;

    Small confusion about time up for the vs Master materialized view table query

    SQL > select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:30.54
    SQL > create materialized view mv1
    2 activate the rewrite of the query as
    3. select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    Materialized view created.
    Elapsed time: 00:00:01.45
    SQL > select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:00.01

    Please see the three cases "Elapsed Time"...

    When comparing other cases.
    1. my query takes long time (30.54), extraction of data from the sale
    2. create a materialized view takes less time (01:45) why?

    Source: http://uhesse.com/2009/07/08/brief-introduction-into-materialized-views/

    >
    Small confusion about elapsed time for the materialized view vs Master table query

    SQL > select count (*), sum (quan_sold), sum (amt_sold) from the sale.

    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:30.54

    SQL > create materialized view mv1
    2 activate the rewrite of the query as
    3. select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    Materialized view created.
    Elapsed time: 00:00:01.45

    SQL > select count (*), sum (quan_sold), sum (amt_sold) from the sale.

    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:00.01

    Please see the three cases "Elapsed Time"...

    When comparing other cases.
    1. my query takes long time (30.54), extraction of data from the sale
    2. create a materialized view takes less time (01:45) why?
    >
    Many queries take less time the second time you run them. After the first performance, there may be many, if not all, lines in the buffer cache. Then the second round will not make any or all e/s physical but will obtain data from the buffer cache.

    Also, you haven't checked that the MV was even used for the second run.

    Drop the MV and make the query several times and means of the time. Then create the MV and do the same thing.

  • missing metric collections officer for the duration of downtime

    Hello

    We had to stop the FMS, and after we grew up, we discovered that metric collections officer for the duration of the downtime was missing and not populated dashboard FMS,

    We have a hypothesis, that when FMS is down or not accessible by FGLAM on the monitored hosts, that FGLAM still collects its measures and it will grow to FMS when it is returned to the online state.

    The questions are, is it true the assumption? And if it is true, how restore us these metrics data for the mentioned period?

    Thank you

    Hi Waseem-

    fglam there a store and the capacity before. The amount of agent Manager data stores is controlled

    with some configuration settings. You can read about some details here:

    http://eDOCS.quest.com/Foglight/555/doc/wwhelp/wwhimpl/common/HTML/frameset.htm?context=field&file=StoreAndForward-field/StoreAndForwardProcessing.17.4.php&single=true

    HTH

    Robert Statsinger

  • The waiting time for the activation of the subscription of creative cloud?

    The waiting time for the activation of the subscription of creative cloud?

    Hi Evgeny,

    You can follow the article: solve common activation Adobe Creative Cloud (login) and questions (disconnect) disabling or error messages and errors in connection with Creative Suite and creative Cloud applications, activation and connection Solutions to resolve activation problems.

    Let us know if this solves the problem for you or not.

    Thank you

    Yann Arora

  • Just changed my account information for payment, but payment results in a week, enough time for the new payment will be held for the new account?

    Just changed my account information for payment, but payment results in a week, enough time for the new payment will be held for the new account?

    HI Lucas,.

    I see that you have tried to change the billing details, but they were not properly updated.

    Please get in touch with the customer: -.

    Contact the customer service

  • Text caption disappears after 3 seconds, even if by default is set to keep for the duration of the slide.

    On each slide, I have a different title in the upper right. I noticed that they disappeared after a few seconds, I went into preferences and set the default value for the text caption, image, etc. to stay for the duration of the slide. But when I go to test it, they disappear after three seconds still.

    I'm doing something wrong?

    Thank you

    Arthur

    ... and if you do not override the style of titles, using the small arrow curved in the upper right of the accordion of Timing will allow you to propagate the change of one legend to all others with the same style.

  • With the help of videos quick time (for the web)

    Hi guys,.

    In my project, I use quick time videos in director, which work very well at its publishing and reading in the projector. However when I export for the web, video replay in the web browser. Is there something I'm missing when exporting?

    Thank you very much

    Rich

    Your QT files are too large. The Member is set to listen to? You can
    monitor percentStreamed (place a #field on the screen and update each)
    frame with member("QT").percentStreamed)

  • How to stop the slide for the duration of the legend? How make it slow down a notch?

    Hi, I am very new to Captivate, but I can only borrow for tonight so please help.

    I captured a video with Captivate and now I have to add a few legends. But the video is short, so I want to slow it down a bit in some areas (if possible) and I would also like to pause the video during the duration of the legend. So it would be similar to adding breaks for captions.

    Is this possible? How?

    I could be wrong, but you save Full Motion? When you add text captions, the duration of this legend is determined by CP took into account the amount of text to read. In the timeline panel, you will see the duration (time), captions, you can always adjust by changing the properties of this legend, in the sheet "Options". If you want the legend to stay until the user clicks, you will need to a button or a box click to trigger the slide to continue. In this case, you can also change the calendar of the legend of text 'for the rest of the slide.

    Moreover, you can always download a full version of Captivate work and use it free for a month.

  • How to read a counter value for the separation of the two edge before meter is stopped by the second edge (6602 Council)?

    I use a timer/counter with DAQmx 6602. I use the separation of two - available via DAQmx cash edge. Count between the two edges works properly, however I do not know how to read the value of the counter during the counting operation (i.e. after the first edge triggered the beginning of the count, but before the second edge triggered the end of the counting). I'll have to wait for the second goes off the edge of the end of the countdown until I can get a counter value. I need to be able to access the current value of the County during the count operation. This was possible in traditional DAQ. How can it be accomplished using DAQmx?

    Ah shoot - I was afraid that this might be the case (for what it's worth, my series of X returned intermediate values, but the material and the underlying driver are quite different)...

    You just need to take one measure at a time or you are buffer several measures of separation of the two edges at the same time?  So just to take one measure at a time, you can set a task of edges of count using the database internal time as the source using an arm start trigger (first edge) and a sample of clock (second Board) to work around the problem.

    Best regards

  • How to display metadata date/time for the clips in first Pro CC per frame

    I am trying to find a way to display the date and time of capture of video imported from different cameras. In the Panel the metadata, I see that there is a date and time when the clip was created, however, I'd like to be able to see this data in date and time displayed on the screen on a basis of image by image. It would help me synch with still images, I'm looking at the respective time of capture of the still the framework where the taking of photography yet (or any other event) can be seen in the video.  It would also help with the addition of captions or titles and help synch video from different cameras inputs.

    For me, being able to see the capture of time of each clip (and frame) is a replacement for the obvious digital age of the Council clapper, is there a reason why this feature (or lack of) is not more important?

    Any help or thoughts welcome.

    Premiere Pro can't do what you ask in itself.  My best guess as to why would be that it is not altogether appeal to such a thing in professional production, it is really more than an 'amateur' function to show the date and time on the screen.  The professional equivalent would probably be timecode, which PP peut show on clips, but time code usually has no relationship with the date and the time that the clip was recorded.

    For standard definition, the program DVDate was good to solve this problem.  I don't know if this software applies to high definition, or if another program can do the job.  You may need to search around.

  • Script for the duration of the model

    I have 'Hand Comp' with 30 seconds of time inside and out:

    A movie called "forest".

    I want to replace the sequences that can vary from time, being higher, as the 59 seconds, for example, so I need the "main Comp", also adjusts feet length. "Main Comp" stay with 59 seconds.

    Thank you.

    I have try this:

    var app.project.activeItem = myComp;

    myComp.duration = myLayer.property("Footage").duration

    That has not worked because the objects layer do not have a duration attribute. The calculation must be done manually. Normally, you will take the layer out-point less the inPoint to get the duration of the layer.

    var myComp = app.project.activeItem;
    var myLayer = myComp.layer(1);    //Assumes layer 1 is your choice
    myComp.duration = (myLayer.outPoint - myLayer.inPoint);    //Assumes the layer is normal and not reversed
    

    It will not be the bulletproof but because a layer can also be inverted, which place him inPoint after the out-point, so you need reverse the order. You say inPoint less the out-point.

    var myComp = app.project.activeItem;
    var myLayer = myComp.layer(1);    //Assumes layer 1 is your choice
    myComp.duration = (myLayer.inPoint - myLayer.outPoint);    //Assumes the layer is reversed
    
  • How to connect a new MacBook in my time for the initial file transfer capsule

    How to connect a new MacBook to my existing time capsule to transfer files as part of the first implementation of my MacBook?

    You say that you have a new MacBook and that you have posted to the forum for the retina MacBook 12 "section, but your tag indicates that you have a MacBook Pro. Please specify.

  • NB200 - allocated for the 128 MB video card only

    Hello!
    in the specifications, we can allocate 224 MB of memory for the video card, but in windows, we can assign only 128 MB.

    Someone at - it a solution?

    Hello

    The video RAM is shared with the normal RAM (system memory). This means that you can get up to 224 MB of video memory to it of necessary, but if the graphics don't need of more memory, 128 MB are only.

    And, you can change or control by yourself. This is done automatically and it of really not necessary to change something.

  • Possible to use the main clock FPGA as a basic Source of time for the NI 9234?

    Hello

    I am running a NI 9234, and NI 9222 module on a cRIO-9114 chassis with a real-time 9022 controller, data acquisition on the 8 channels on the full sample rate, using the FPGA.

    My problem is the synchronization of the data, where the NI9234 is usually a late acquisition, compared to the NI9222. I tried manually delay the NI9222 to take the first samples, but so far without success.

    To solve this problem and also to ensure a rate of data more comparable on both cards, I was wondering is it possible to create a Source of time Base master for the NI9234 WITH THE FPGA (opposite to import from another NI9234 or similar module)? The NI9222 I already provide with sampling of the impulses from the FPGA (as expected with this module).

    Another issue would be the characteristics of the exact chronology of the two modules, including in terms of synchronization between the beginning of the acquisition and the first samples of data. I couldn't find any information about it...

    Thank you in advance,

    O Hoppe

    Hello!

    I've never heard of a possibility to use a time base FPGA with a module of Delta-Sigma.

    But I think that the question should be what has not worked to delay the signal and how you did it. Have you read this article?

    How can I compensate for delays of different group with the C Series Modules in LabVIEW FPGA?
    http://digital.NI.com/public.nsf/allkb/74EB238E1BCADD528625735300681A7D

    Can you give a more detailed description of your trial to delay acquisitions? Can you provide a code example?

    Best regards

    Christoph

  • How to create a control of time for the while loop?

    Hi all

    I want to control my time running of the loop. In other words, I want to stop everything in the execution of the loop after a time (in ms) that is defined by the user. For example user defines Control Panel for 5 seconds before a while loop runs and stops after 5 seconds.

    I don't know is it possible with the while loop. I managed with the timed loop, but this must be wrong with my application. Y at - it of the other loops for timed control if it is not possible with while loop? There is also a simple loop with .vi random number (0-1) as an attachment.

    Best regards

    Jick

    Hi again,

    I managed to solve my problem right after I posted my first message. I did it with the passage of time and the register shift (for the elapsed time of reset).

    Thanks for your replies anyway!

    Best R

    Jick

Maybe you are looking for