title: addition flash actionscript 2.0
body: <p>I have a dynamic text with a variable name and instance name of "total". I need it to display the  total price of every button clicked.</p>
  
  <p>I have this code in the button:</p>
  
  <pre><code>var vaseprice = 400;
  total = price + vaseprice;
  </code></pre>
  
  <p>price is a variable on the frame. My problem is that it doesn't display the total price. What should I do?</p>