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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:16:26+00:00 2026-06-17T02:16:26+00:00

I am missing simple logic, or simple code. I want to make a loan

  • 0

I am missing simple logic, or simple code. I want to make a loan calculator in flash as3 like
http://activeden.net/item/loan-payment-calculator-with-slider-as3/897727

I have a flash file that prints x of an object that is dragged across a line.

scrubber.x = _point.x;
tf1.text = String(_point.x);

What I want to do is to print out a certain amount (lets say from 1 to 20 000) depending on the x. I know I am missing some basic as3 but I couldn’t find anything on other forums.

  • 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-17T02:16:27+00:00Added an answer on June 17, 2026 at 2:16 am

    You have to use percentage formula

    var a:Number = 320;//this is the amount on the line - you have to calculate it taking the position of the scrubber in relation to the position of the line
    var b:Number = 640;//this is the 100%, 640 is the example and it will be the width of your "line"
    var max_loan:Number = 10000;
    var p:Number = a/b;//this is the percentage value, here it will be 320/640=0.5
    
    var available_loan:Number = max_loan * p;//this is what you will display, here it will be 5000;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As every developer wants, I wanted to make my code short and simple. but
Perhaps I'm missing something simple, as I believe that this is a common scenario...
I have to be missing something simple, but I'm really not sure what. I
I have to be missing something simple here but it escapes me. After the
I think i must be missing something simple here but I can't figure out
I've got to be missing something simple, but Google is not helping. My file
I think I'm just missing something simple here but here is what I am
I am fully prepared to admit that I am missing something simple here. I
I must be missing something very simple, but can't find the answer to this.
I hope I am not missing something very simple here. I have done a

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.