ActiveDen

Spark Calculator Component

You get:

  1. Calculator user-interface component, built upon the Flex Spark component framework.
  2. The base AS3 classes that perform the calculation, and which you can use in any Flex or Flash project.

This component enables the user to calculate a result from a freely entered textual mathematical expression. Also, a CalculatorError event is dispatched for programmatical handling of the result and possible errors.

Supported operations and syntax:

  • addition: operand1 + operand2
  • subtraction: operand1 - operand2
  • multiplication: operand1 * operand2
  • division: operand1 / operand2
  • power: base ^ exponent
  • nth root: degree root operand
  • logarithm: base log operand
  • natural logarithm: ln operand
  • common logarithm: (base 10) lg operand
  • sine: sin operand
  • cosine: cos operand
  • tangent: tan operand
  • cotangent: ctan operand
  • arcsine: asin operand
  • arccosine: acos operand
  • arctangent: atan number
  • and, of course, parentesis for changing presedence: ( operand )

A Flash Proffesional version of this component is available

by
by
by
by
by