Converting Time to ms

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Converting Time to ms

    Hi there

    Is it possible to get Director MX to convert time i.e. 00:05:00 (hours, minutes, seconds) into milli seconds (300,000 ms).

    Any help would be greatly appriciated - Thanks in advance.


    ali_bongo_ webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Converting the time from one timezone to another
      I asked a question about a week ago about how to get my local time, since my application is running on a server halfway around the world. I have...
    2. Converting a folder of word documents to PDF at one time
      I've search for a way to convert a folder full of word documents to PDF's at one time. I've been selecting all of the documents, then right clicking...
    3. ASP integer date/time converting problems
      Hi Rob, This is definitely not a UTC conversion. I don't know what kind of notation it is. The best way to converting this date is by using your...
    4. Converting Time between timezones?
      Hi, ruby comes with the standard unix time conversion functions such as gmtime and localtime. Is there a simple method to convert time into...
  3. #2

    Default Re: Converting Time to ms

    tim="00:05:00"
    the itemDelimiter=":"
    if tim.items.count<>3 then
    alert("Bad time " & tim)
    ms=0
    else

    ms=(((integer(tim.item[1])*60+integer(tim.item[2]))*60)+integer(tim.item[3]))*10
    00
    end if

    Andrew

    Andrew Morton Guest

  4. #3

    Default Re: Converting Time to ms

    ....and watch out for the awful line wrapping.

    Andrew
    Andrew Morton Guest

  5. #4

    Default Re: Converting Time to ms

    On 23 Oct 2003, "ali_bongo_" [email]webforumsuser@macromedia.com[/email] wrote:
    > Is it possible to get Director MX to convert time i.e. 00:05:00
    > (hours, minutes, seconds) into milli seconds (300,000 ms).
    put HMStoFrames("00:05:00",1000,0,0)
    -- 300000


    --
    Mark A. Boyd
    Keep-On-Learnin' :)
    Mark A. Boyd Guest

  6. #5

    Default Re: Converting Time to ms

    Thanks to everyone that helped.....much appriciated (very useful)



    ali_bongo_ webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139