Packageorg.axiis.utils
Classpublic class BooleanExpression
InheritanceBooleanExpression Inheritance flash.events.EventDispatcher

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

For example, this markup will populate two labels with the text "true" but (a || b || c || d || e || true) will only have been evaluated once.

	                 
	 <BooleanExpression id="be0" value="{a || b || c || d || e || true}" />
	 <mx:Label text="{be0.value}" />
	 <mx:Label text="{be0.value}" />
	 
	              



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

The stored Boolean value. 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():Boolean
    public function set value(value:Boolean):void
Constructor Detail
BooleanExpression()Constructor
public function BooleanExpression()

Constructor.

Event Detail
valueChanged Event

Dispatched when the value property has changed.