ActionScript 2.0 Components Language Reference |
|
|
|
| Data binding classes > DataType.getAsBoolean() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
dataTypeObject.getAsBoolean()
None.
A Boolean value.
Method; fetches the current value of the field and converts it to Boolean form, if necessary.
In this example, a field named propName that belongs to a component named myComponent is retrieved as a Boolean value, and assigned to a variable:
var dataTypeObj:mx.data.binding.DataType = myComponent.getField("propName");
var propValue:Boolean = dataTypeObj.getAsBoolean();
|
|
|
|