Packageorg.axiis.utils
Classpublic class NumericExpression
InheritanceNumericExpression Inheritance flash.events.EventDispatcher

NumericExpression provides a convenient place to store the results of numeric calculations used in multiple places within an MXML document. By binding the results of a complex numeric computation to a NumericExpression's value property, you allow other objects to bind on that value without the overhead of re-running the original computation.

For example, this markup will populate two labels with the text "1.57079633" but Math.PI / 2 will only have been evaluated once.

	                 
	 <axiis:NumericExpression id="ne0" value="{Math.PI / 2}" />
	 <mx:Label value="{ne0.expression}" />
	 <mx:Label value="{ne0.expression}" />
	 
	              



Public Properties
 PropertyDefined By
  value : Number
The stored Number.
NumericExpression
Public Methods
 MethodDefined By
  
Constructor.
NumericExpression
Events
 Event Summary Defined By
  Dispatched when the value property has changed.NumericExpression
Property Detail
valueproperty
value:Number  [read-write]

The stored Number. By using binding to set this property and then binding other properties to it, you can reduce needless computations.

This property can be used as the source for data binding.


Implementation
    public function get value():Number
    public function set value(value:Number):void
Constructor Detail
NumericExpression()Constructor
public function NumericExpression()

Constructor.

Event Detail
valueChanged Event

Dispatched when the value property has changed.