DataType.setAsBoolean()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.setAsBoolean(newBooleanValue)
Parameters
newBooleanValue
Returns
Nothing.
Description
Method; sets the field to the new value, which is given as a Boolean value. The value is converted
to, and stored as, the data type that is appropriate for this field.
Example
The following example sets a variable named
value referenced by
var bool: Boolean = true;
field.setAsBoolean (bool);
DataType.setAsNumber()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.setAsNumber(newNumberValue)
Parameters
newNumberValue
Returns
Nothing.
Description
Method; sets the field to the new value, which is given as a number. The value is converted to,
and stored as, the data type that is appropriate for this field.
242
Chapter 6: Components Dictionary
A Boolean value.
to
.
field
true
A number.
to the Boolean value
bool
. It then sets the
true
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?