How can I convert videodisplay time into a readable format?

Hey guys... so I have a video screen that plays... and I need to understand how to format the currentTime and duration in a readable format


for example: I need to see somehting like this '06:20:30 ' where 06 is hours, 20 is minits and is 30 seconds...

any ideas?

any help would be greatly appretiated!

the code I have is:

<VideoPlayerSkin>
     <s:VideoDisplay id="videoDisplay" autoPlay="false" width="544" height="306" />
     <s:Group>
     <s:ScrubBar id="scrubBar" liveDragging="true" width="556" left="-6" top="-5" />
     </s:Group>
     <s:Group>
     <s:Label text="{videoDisplay.currentTime} / " top="-277" left="180" />
     <s:Label text="{videoDisplay.duration}" top="-277" left="200" />
     </s:Group>
</VideoPlayerSkin>

Thanks in advance a ton!

Hey here's an extract of my code that takes a second value and changes to a days hours minutes seconds format:

public static void formateDate(totalSeconds:int):void

{

var days: int = int(totalSeconds / 86400);
var hours: int int(totalSeconds / 3600) =-(jours * 24);
var minutes: int = int(totalSeconds / 60)-(jours * 1440)-(heures * 60).
var seconds: int = totalSeconds % 60;

trace(hours+":"+minutes+":"+seconds);

...

After that you can chain however you only need them a piece, but I hope that you can find not pointing in the right direction.

Tags: Flex

Similar Questions

  • How can I convert a layer into a group?

    Hello

    I have several layers with sublayers in it. The problem: all the layers (containing sublayers) have been open in the pallet layer on opening the document.

    How can I convert a layer into a group preserving the name? Is there a (semi) approach - automatic to convert all sublayers in groups?

    Thank you

    Konrad

    OK, writing a script was not so difficult as expected.

    So, here's a javascript script to convert a layer into a group:

    /**********************************************************
    
    LayerToGroup.jsx
    
    by Konrad Mühler 2013-06-03
    
    DESCRIPTION
    
    Converts an (Sub)layer into a simple group
    
    **********************************************************/
    
    var currentDocument = app.activeDocument; // get current document
    var currentLayer = currentDocument.activeLayer; // get current layer
    
    var newGroup = currentLayer.parent.groupItems.add(); //add new group into the parrents of the current layer
    newGroup.name = currentLayer.name; //set the same name as for the layer
    
    for (i=currentLayer.pageItems.length-1; i>=0; i--) // loop thru all items
    {
        var singleItem = currentLayer.pageItems[i]; // get item
        singleItem.move(newGroup,ElementPlacement.PLACEATBEGINNING); // move item to new group
    }
    
  • How can I convert my view files in pdf format

    How can I convert my view files in pdf format

    Not with Adobe/Acrobat Reader.  You have Acrobat Professional or Standard?

  • How can I convert multiple files into a single PDF?

    I need to convert a single file PDF 3 pages of a contract.  How can I do this?

    Hi millionaire Blackburn.

    I checked your account - looks like you have a subscription Pack PDF Adobe, so that's great!

    1. Sign in to your account at https://cloud.acrobat.com/combinepdf using your Adobe ID and password.
    2. Click on the selected files to be combined.
    3. Select the files you want to combine into a single PDF.
    4. (Optional) Drag the thumbnails of files in the order you want that individual to combine files.
    5. Click on combine.

    Please let us know how it goes!

    Best,

    Sara

  • How do I convert JAXBElement &lt; byte [] &gt; string or readable format

    Hi Experts,

    I work on the web service proxy and I want to retrieve data from JAXBElement < byte [] > data type and add data to the table. I have tried with...

    Note_c1 JAXBElement < byte [] > = ((RequestEntryC) optyBind) .getNoteC ();

    String Note_c = Arrays.toString (Note_c1.getValue ());

    But it returns [115, 117, 105, 116, 101, 32, 118, 105] , and [B@27e80064 if I try with Note_c1.getValue () ]


    I'm on Jdeveloper 11.1.1.7.1



    User, you bet a byte of the Note_c1 array. You can convert this string as

    String s = new String (Note_c1.getValue ());

    However it is not guaranteed that you can read the string. Only if the bytes represent characters ASCII or UTF-8 you can read.

    Timo

  • BlackBerry Smartphones how can I convert save the file into something readable!

    Using the Desktop Manager that I created a .ipd backup file.

    Now... How can I convert these data into something I can easily recognize?

    Oops - I forgot that the app... JSanders thanks!

  • How can you convert a PDF to multiple pages of a multipage TIFF file, or is it possible to make a multipage TIFF file?

    I have a PDF file with multiple pages and need to convert it to TIFF. How can I convert the PDF into a multiple page TIFF file, or you can make a multipage TIFF file?

    I have Adobe Acrobat 7.0 Pro

    Thank you

    That is right. You may be able to use PhotoShop or even possibly IrfanView for such an operation.

  • When I download programs from the internet, they appear just in the form of collections of files TextEditor. How can I convert them into a program.

    When I download programs from the internet, they appear just in the form of collections of files TextEditor. How can I convert them into a program.

    What kind of programs? When you download from? How do download you them?

  • If my word document is Ko 106480 how can I convert it into a PDF file if it exceeds the limit of 100 MB

    If my word document is 106 480 Ko how can I convert it into a PDF file if it exceeds the limit of 100 MB

    Get Acrobat and you won't have these limitations.

  • I need to convert PDF into Word Document, so it can be edited. But grateful text options do not have the language I need. How can I convert the file in the desired direction of my language?

    I need to convert PDF into Word Document, so it can be edited. But grateful text options do not have the language I need. How can I convert the file in the desired direction of my language?

    The Acrobat application provides no ability to language translation.
    If you locate the language for the applications from the OS, MS Office, Acrobat, etc. to the desired language try again.
    Alternative: transfer a copy of the content in a web site based in PTE (Bing or Google offers a free service).
    Transfer the output in a word-processing program that is localized in the appropriate language.
    Perform the cleaning.

    Be well...

  • How can I convert a page typed into an editable text file

    How can I convert a page typed in an edible text file? I have a 50 page typed (on a typewriter ;-) document I want to convert (scan?) in a format so that I can then open the file in a text editing application (Word?) and edit.

    How is the most effective (and least expensive) way to do it?

    Thank you

    HAL

    < re-titled by host >

    "Edible text file?" You hear as he print on rice paper, so you can serve it up like at dinner side dish? You want someone to eat their words

    I think that the last two multifunction printers, I bought came with some kind of OCR characters (OCR) software as part of the sweeping package.  I guess that's not the greatest.

  • How can I convert my 100 games flash (actionscript 2.0) in HTML5 now that swiffy is dead?

    Unfortunately I didn't swiffy would be killed until August.  I have a lot of games I built using flash with actionscript 2.0, and I do not know now how to export to HTML5 without swiffy.  Someone at - he found a solution?  Adobe has a solution for us?  Singular video showing how convert a very basic adobe HTML5 flash ad is no help to those who have made the beautiful games and complex using flash with actionscript 2.0.

    I'm excited about learning all these new languages like actionscript 3.0 which is not at all compatible with actionscript 2.0, but I have to convert my current games in HTML5 first before you spend another few years learning a new language.

    I didn't adobe address this problem that many people, but I found an application called flaexporter that only works on flash cc.  I don't have flash cc, and it seems not available for download as a "past/old version" of my adobe creative app download.  Is there a way to download this older cc flash application, so I can export all my games to HTML5?  I don't want to lose years of game development just because swiffy disappeared.

    I have the cs adobe complete with all applications to update software including cc lively.  Unfortunately, animate cc seems unnecessary, because when I try to open one of the games I put years of work into, he destroys this game completely.  When I publish the game, it does not at all.

    I create games for education and had used swiffy and flash because they were easy for a designer like me to use.  I'm not a high level programmer, but I've always been able to create and edit flash.

    1 animate cc told me that only a3.0 files can be imported and still work.  So, how to export actionscript 2.0 to actionscript 3.0 using the flash c6s that always works on my laptop?  I don't see the option export for actionscript 3.0 in flash c6s, and I do not see the option "successfully" import ActionScript 2.0 cc animate.  Is there something I'm missing here?   Someone at - he found a solution to this problem?

    2. instead of trying to figure out how to export a2.0 a3.0, just so that I can open it to animate cc, then export to HTML5, is there an easier way - similar to swiffy, who has ignored all these steps your time?

    If anyone has an answer, thank you!

    Please do not cross-post.

    See How can I convert my 100 games flash (actionscript 2.0) in HTML5 now that swiffy is dead?

  • How can I convert an incoming call read only an attachment so I can change it?

    How can I convert an incoming call reads only attachment so that I can change it? Save in Word does not it, and find research peut t.

    So, the problem seems to be that attachments are stored as files read-only by Thunderbird and an application it can open without editing privileges, so you cannot change the. Read-only mode was chosen because these files are kept in a temporary location. For example, if you modify and save the back, they are deleted when Thunderbird is closed, so losing your changes. The idea is to force to save you to a different location. You should be able to do it, then open it from that location with full editing capabilities.

    For a permanent change in this behavior, go in the [tools >] Options > advanced > general tab and click on Config Editor there. After you confirm the warning, copy - paste browser.helperApps.deleteTempFileOnExit into the search bar and switch false to true by double clicking on it. Now, saved attachments are created with read/write permissions, but is more removed when Thunderbird is closed (i.e., stored in % AppData%\Local\Temp).

  • How can I convert table 1 d in a 2D array.

    I have a table 1 d I want to get into an Excel template.  How can I convert a 2D table so I can enter Excel Table.vi easy?

    Be sure to check the correct operation. Solution-Marc adds another row of zeros and I don't know if this is desirable here. (See also)

  • How can I configure two Time Warner Cable Road Runner under Outlook Express e-mail accounts?

    Multiple e-mail accounts

    How can I configure two Time Warner Cable Road Runner under Outlook Express e-mail accounts? I wish I could separate emails for each account, but the access or the other at any time.
    You can use two different identities, or if you want to have access to these accounts in identity, set up your accounts and use message rules to move incoming messages.
     
    First, create a local folder to be used as a second Inbox and name it anything you want.  Use it to one of the accounts, as well as the default Inbox for the other.
     
    Then create a message rule.
     
    Where the message comes from the specified account.
    Move it to the specified folder & stop processing more rules.
    Click: specified account and enter the account name for the second Inbox.
    Click: specified folder and select the folder that you created.
    Name the rule.
     
    Move the rule to the top of the list of rules, and incoming messages will be separated into their respective folders.

Maybe you are looking for