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 1025853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:59:32+00:00 2026-05-16T11:59:32+00:00

i have a number variable, vx, that is changing with an enter frame event.

  • 0

i have a number variable, vx, that is changing with an enter frame event. in the enter frame function i have the following code:

if  (Math.abs(vx) <= 0.05);
    {
    trace(Math.abs(vx));
    }

immediately, it’s starts outputting numbers that are well above 0.05:

12.544444075226783
12.418999634474515
12.29480963812977
12.171861541748472
12.050142926330986
11.929641497067676
11.810345082097
11.69224163127603
11.575319214963269
11.459566022813636
11.3449703625855
11.231520658959644
11.119205452370048
11.008013397846348
10.897933263867884
10.788953931229205
10.681064391916912
10.574253747997743
10.468511210517764
10.363826098412586
10.260187837428461
10.157585959054176
10.056010099463634
9.955449998468998
9.855895498484308

does this make sense to anyone?

  • 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-16T11:59:33+00:00Added an answer on May 16, 2026 at 11:59 am

    You have an extra colon ';' after your if.

    if (Math.abs(vx) <= 0.05);<–

    Without i think it will works better:

    if  (Math.abs(vx) <= 0.05) {
     trace(Math.abs(vx));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 515k
  • Answers 515k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If your application runs multiple threads (or receives op. system… May 16, 2026 at 6:33 pm
  • Editorial Team
    Editorial Team added an answer As far as I know, this isn't supported in Solr… May 16, 2026 at 6:33 pm
  • Editorial Team
    Editorial Team added an answer Is there a reason why your requirements don't match the… May 16, 2026 at 6:33 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a function that takes a variable number of arguments in C that
I have a number of links, that when clicked on, passes a variable thru
Is it possible to have a C# lambda/delegate that can take a variable number
I have a variable number of boxes and I'd like to display as many
I have a variable number of divs acting as columns, and I would like
i have to define a variable that i am using in a program but
I have two classes. Looking to be able to grab a variable that is
I have a text field which is bound with Integer variable, so when user
I am using cakephp 1.2 and I have an array that appears to have
I have a setter method (setMinimumNumberOfSides) that I want to override after using synthesize.

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.