User Guide
228 Data binding classes (Flash Professional only)
■ A string that contains field names, separated by dots—for example, "a.b.c". This form is
permitted for any complex data (ActionScript or XML).
■ An array of strings, where each string is a field name—for example, ["a", "b", "c"].
This form is permitted for any complex data (ActionScript or XML).
Returns
A DataType object.
Description
Method; returns a DataType object whose methods you can use to get or set the data value in
the component property at the specified field location. For more information, see “DataType
class (Flash Professional only)” on page 233.
Example
This example uses the DataType.setAsString() method to set the value of a field located in
a component’s property. In this case the property (
results) is a complex data structure.
import mx.data.binding.*;
var field : DataType = myComponent.getField("results", "po.address.name1");
field.setAsString("Teri Randall");
See also
DataType.setAsString()
ComponentMixins.initComponent()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
mx.data.binding.ComponentMixins.initComponent(componentInstance)
Parameters
componentInstance A reference to a component instance.
Returns
Nothing.