DataType.getAsBoolean()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

dataTypeObject.getAsBoolean()

Parameters

None.

Returns

A Boolean value.

Description

Method; fetches the current value of the field and converts it to Boolean form, if necessary.

Example

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();

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00002695.html