actionscript 3 - Flex: convert VideoPlayer.currentTime to string "00:00:00:000" -


What's this about:

I formatted the current time displayed by a video player component inside Flex I want to do something like: some like 8230.999 01:59: 59: 99 9 "hour: minute: seconds: milliseconds"

I set different codes, but They can not get it to work because the present time is not the right millisecond time because it is a temporary 3 point digit Adds Ekend;

Instead of: 2000ms this 2.000

P> Some people like me can not understand!

thanx for any help

### UPDATE

I have a problem with milliseconds now, the current MXML is here:

   & Lt; S: TextInput x = "240" y = "140" id = "outPut" /> & Lt; S: Button x = "274" y = "107" label = "Convert" ID = "Convert" Click = "Convert-Click Handler (Event)" /> & Lt; / S: Applications & gt;  

One correct:

I made it one. A complete square.

  package com.strangemother.utils {public class extends time item {public function} time () {} public stable work time format (value: int): string {var seconds: Number = value% 60; Var minutes: number = math.flur ((value% 3600) / 60); Var minute string: string = minutes & lt; 10? "0" + string (min) + ":": string (min) + ":"; Var seconds string: string = second & lt; 10? "0" + string (seconds): string (seconds); Return minstrings + secondstrings; }}}  

It works - it googled

  var secondsManute = 60; Var Minutes Perhaur = 60; Convert functions to secondsToHHMMSS (intSecondsToConvert) {var hour = convertHors (intSecondsToConvert); Var minute = Match when matching (intSecondsToConvert); Min = (min = 60)? "00": minutes; Var secs = meet the ending seconds (intasecondsonton); Return hours + ":" + minute + ":" + sec; } Function ConvertHorses (Intaseconds) {var minute = conversions (intakes); Var hours = Math.flur (minutes / minuteprinter); Hours of return; } Function ConvertMinets (Intaseconds) {Return Mathematics. Floor (Intasecond / SecondenderMinute); } Function getRemainingSeconds (intTotalSeconds) {return (intTotalSeconds% secondsPerMinute); } Function getRemainingMinutes (intSeconds) {var intTotalMinutes = convertX (intSeconds); Return (minute minutes of IntelT minutes minutes); } Trace (convertSecondsToHHMMSS (13345));  

Comments