Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:39:30+00:00 2026-06-14T09:39:30+00:00

Per Adobe getTimer() is: Used to compute relative time. For a Flash runtime processing

  • 0

Per Adobe getTimer() is:

Used to compute relative time. For a Flash runtime processing ActionScript 3.0, this method returns the number of milliseconds that have elapsed since the Flash runtime virtual machine for ActionScript 3.0 (AVM2) started.

Since getTimer returns a int which:

The int class lets you work with the data type representing a 32-bit signed integer. The range of values represented by the int class is -2,147,483,648 (-2^31) to 2,147,483,647 (2^31-1)

What will getTimer() return after the 2,147,483,647 millisecond? That would roughly be 24.85 straight days of running I think. Not a usual situation but for digital signage and kiosk context that is entirely feasible.

Should getTimer() be avoided in these situations? Would a Date.UTC() object be safer since it returns a Number type?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:39:31+00:00Added an answer on June 14, 2026 at 9:39 am

    My guess is it will loop back on itself, just as int will.

    var nt:int = int.MAX_VALUE + 10; //outputs -2147483639
    var nt2:int = int.MIN_VALUE + 9; //outputs -2147483639
    

    As you can see, MAX + 10 is the same as MIN + 9 (have to account for the min value itself, obviously). So when you hit that 24 day mark, it will possibly look like -24 days and start going back up.

    There is also a chance that the function itself doesn’t return the actual time, but something along these lines:

    return timer % int.MAX_VALUE;
    

    That will reset the time each time it hits the MAX_VALUE to 0, using simple modulus. I honestly would not be surprised if this is what they do (since you don’t want a negative runtime, obviously)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is specific to Adobe AIR ActionScript/Flash applications. I've spend quite some time
So I embedded a basic flash movie as per: http://kb2.adobe.com/cps/415/tn_4150.html It loads fine in
Per this question (see comments near the bottom), I was wondering if anyone knows
As per this article : If you try and lock a non-recursive mutex twice
Per the docs , this should be enough to run Twitter Bootstrap: <div class=carousel>
Per step 3b of this Jetty guide for using Keytool and OpenSSL, last step
per the debate in this post: json-conversion-in-javascript
Per this documentation: http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_smart_spawning_gotcha_1_unintentional_file_descriptor_sharing Socket connections continue to be shared after a Smart spawn
Per this article , I've tried to get myself in the habit of fetching
Per the MSDN documentation , the following syntax is used: // A read-write instance

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.