BASIC AS2 CALCULATOR                                                          as2


    This tutorial shows how to create basic calculator in actionscript 2.0. This version contains following mathematical functions:
  • adding, subtraction, multiplying, dividing
  • trigonometry function (cos,sin,tan)
  • exponentiation, involving
  • evolution, logarithm
At the end we should get something like this :
     The easiest way to do this project is to download the source file and edit the *fla file, but basicly all we need is actionscript 2.0 flash document, all the buttons with instance names corresponding to the actionscript ( numbers buttons num1_btn to num9_btn, function buttons to divide_btn, minus_btn, plus_btn etc..). You can find the actionscript on this page below:


CLICK HERE TO SEE THE ACTIONSCRIPT CODE


     The 99% of the actionscript code are functions for every button, whether adding numbers or executing functions. The code is self-explanatory with a little bit of math knowledge.


DOWNLOAD SOURCE FILE