DataType.getTypedValue()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

dataTypeObject.getTypedValue(requestedType)

Parameters

requestedType A string containing the name of a data type, or null.

Returns

A TypedValue object (see TypedValue class).

Description

Method; returns the value of the field in the specified form, if the field can provide its value in that form. If the field cannot provide its value in the requested form, the method returns null.

If null is specified as requestedType, the method returns the value of the field in its default type.

Example

The following example returns the value of the field converted to the Boolean data type. This is stored in the bool variable.

var bool:TypedValue = field.getTypedValue("Boolean");

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/00002698.html