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

  • Home
  • SEARCH
  • 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 821073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:34:57+00:00 2026-05-15T02:34:57+00:00

I need something accurate I can plug equations in to if you can help.

  • 0

I need something accurate I can plug equations in to if you can help. How would you apply the equation bellow?
Thanks guys.

AVERAGE VELOCITY AND DISPLACEMENT
average velocity

V=X/T

displacement
x=v*T

more info


example

I have 30 seconds and a field that is 170 yards. What average velocity would I need my horse to travel at to reach the end of the field in 30 seconds. I moved the decimal places around and got this.

alt text http://www.ashcraftband.com/myspace/videodnd/VQ.jpg

Here’s what I tried ‘the return value is close, but not close enough’

FLA here

var TIMER:int = 10;
var T:int = 0;
var V:int = 5.6;
var X:int = 0;
var Xf:int = 17000/10*2;
var timer:Timer = new Timer(TIMER,Xf);  
timer.addEventListener(TimerEvent.TIMER, incrementCounter); 
timer.start();  
function formatCount(i:int):String {
var fraction:int = Math.abs(i % 100);
var whole:int = Math.abs(i / 100); 
return ("0000000" + whole).substr(-7, 7) + "." + (fraction < 10 ? "0" + fraction : fraction);
}
function incrementCounter(event:TimerEvent) { 
T++; 
X = Math.abs(V*T);
text.text = formatCount(X);
}

tests

TARGET

5.6yards * 30seconds = 168yards

INTEGERS
135.00 in 30 seconds

MATH.ROUND
135.00 in 30 seconds

NUMBERS
140.00 in 30 seconds

control timer ‘I tested with this and the clock on my desk’

var timetest:Timer = new Timer(1000,30);
var Dplus:int = 17000;
timetest.addEventListener(TimerEvent.TIMER, cow);
timetest.start();
function cow(evt:TimerEvent):void {
tx.text = String("30 SECONDS: " + timetest.currentCount);
if(timetest.currentCount> Dplus){
timetest.stop();
}
}

//far as I got...couldn't get delta to work...
T = (V*timer.currentCount);
X += Math.round(T);
  • 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-05-15T02:34:58+00:00Added an answer on May 15, 2026 at 2:34 am

    i think your problem is that you suppose that passed time = delay*count. That is not true. Timers on modern OSes are not precise, this is because many threads concur for CPU and time comes in fixed intervals, this is especially noticeable if timer interval is small.

    So how to this? You should take actual time spans that happened between two ticks of timer, that will give you the time delta. Then x += v*deltaT.

    Example:

    function incrementCounter(event:TimerEvent) { 
       var now:int = new Date().getTime(); 
       X += Math.abs(V*(now - T));
       text.text = formatCount(X);
       T = now;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any good code profilers/analyzers for Erlang? I need something that can build
I need something of a HashMap in javascript. Can we do this: var map
I need something that can be scripted on windows 7. This image will be
I need something in between a full text search and an index search: I
I need something that takes a directory's contents and then proceeds to generate an
I need to add full web search to my site. I need something like
I want to ditch my current editor. I feel I need something else. That
I know about SortedSet , but in my case I need something that implements
Well... that's it. I need something simple and reliable (doesn't have to have fancy
Basically, what I need is something like Dependecy Walker , but it should work

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.