User Guide

Data binding classes (Flash Professional only) 243
Example
The following example sets a variable named num to the Number value of 32. It then sets the value
referenced by
field to num.
var num: Number = 32;
field.setAsNumber (num);
DataType.setAsString()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.setAsString(newStringValue)
Parameters
newStringValue
A string.
Returns
Nothing.
Description
Method; sets the field to the new value, which is given as a string. The value is converted to, and
stored as, the data type that is appropriate for this field.
Example
The following example sets the variable stringVal to the string "The new value". It then sets
the value of
field to the string.
var stringVal: String = "The new value";
field.setAsString (stringVal);
DataType.setTypedValue()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.setTypedValue(newTypedValue)
Parameters
newTypedValue
A TypedValue object value to set in the field.