MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 238

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Example
This example attempts to get the value of a field (
XMLConnector component's
import mx.data.binding.DataType;
import mx.data.binding.TypedValue;
var f: DataType = myXmlConnector.getField("results", "productInfo.available");
var b: TypedValue = f.getAnyTypedValue(["Number", "String"]);
See also
ComponentMixins.getField()
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
retrieved as a Boolean value, and assigned to a variable:
var dataTypeObj:mx.data.binding.DataType = myComponent.getField("propName");
var propValue:Boolean = dataTypeObj.getAsBoolean();
DataType.getAsNumber()
Availability
Flash Player 6.
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.getAsNumber()
238
Chapter 6: Components Dictionary
productInfo.available
property first as a number or, if that fails, as a string.
results
that belongs to a component named
propName
) in an
is
myComponent

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents