title: Calculate amount depending on x of an object dragged across line?
body: <p>I am missing simple logic, or simple code. I want to make a loan calculator in flash as3 like 
  <a href="http://activeden.net/item/loan-payment-calculator-with-slider-as3/897727" rel="nofollow">http://activeden.net/item/loan-payment-calculator-with-slider-as3/897727</a></p>
  
  <p>I have a flash file that prints x of an object that is dragged across a line.</p>
  
  <pre><code>scrubber.x = _point.x;
  tf1.text = String(_point.x);
  </code></pre>
  
  <p>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.</p>