User Guide

Data binding (Flash Professional only) 261
The following illustration shows the Schema tab for the XMLConnector component used in
“Creating a simple application” on page 256. The top pane shows the bindable properties for the
xmlConn instance, with the food:Array property selected, and the bottom pane shows the
settings for the
food:Array property.
A components schema describes the structure and type of data but is independent of how the
data is actually stored. For example, the results from a WebServiceConnector component or an
XMLConnector component could have identical schemas, even though the web service results
are stored as ActionScript data structures (objects, arrays, strings, Boolean values, and numbers),
and the XMLConnector component results are stored as XML objects. When you use data
binding to access fields within a components schema, you use the same procedure regardless of
how the data is stored.
A component identifies which of its properties are bindable. These bindable properties appear in
the Schema panel as top-level schema items (component properties). A component property can
have its own internal schema that defines additional schema fields that can be bound to other
component properties within your application; for example, when you introspect a WSDL for a
WebServiceConnector component. The WSDL definition describes the parameters and the
results for a web service. The WebServiceConnector component contains two bindable properties
(
params and results). When the WebServiceConnector component introspects the WSDL,
Flash automatically creates the schema for the
params and results properties so it mirrors the
schema defined within the WSDL.
Bindable properties
Schema settings for the selected property
Import sample schema button