User Guide
TypedValue class (Flash Professional only) 245
Example
The following example creates a new TypedValue object (a Boolean value), and then assigns
that value to a DataType object named
field. Any errors that occur are assigned to the
errors array.
import mx.data.binding.*;
var bool:TypedValue = new TypedValue (true, "Boolean");
var errors: Array = field.setTypedValue (bool);
See also
DataType.setTypedValue()
TypedValue class (Flash Professional
only)
ActionScript Class Name mx.data.binding.TypedValue
A TypedValue object contains a data value, along with information about the value’s data
type. TypedValue objects are provided as parameters to, and are returned from, various
methods of the DataType class. The data type information in the TypedValue object helps
DataType objects decide when and how they need to do type conversion.
For an overview of the classes in the mx.data.binding package, see “Classes in the
mx.data.binding package (Flash Professional only)” on page 208.
Property summary for the TypedValue class
The following table lists the properties of the TypedValue class.
NOTE
To make this class available at runtime, you must include the data binding classes in your
FLA file.
Property Description
TypedValue.type Contains the schema associated with the TypedValue object’s value.
TypedValue.typeName Names the data type of the TypedValue object’s value.
TypedValue.value Contains the data value of the TypedValue object.