Example
The following example creates a new TypedValue object (a Boolean value), and then assigns
that value to a DataType object named
array.
errors
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
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.
To make this class available at runtime, you must include the data binding classes in your
FLA file.
For an overview of the classes in the mx.data.binding package, see
mx.data.binding package (Flash Professional only)" on page
Property summary for the TypedValue class
The following table lists the properties of the TypedValue class.
Property
TypedValue.type
TypedValue.typeName
TypedValue.value
field
mx.data.binding.TypedValue
Description
Contains the schema associated with the TypedValue object's value.
Names the data type of the TypedValue object's value.
Contains the data value of the TypedValue object.
. Any errors that occur are assigned to the
"Classes in the
208.
TypedValue class (Flash Professional only)
245
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?