398 Data Integration (Flash Professional Only)
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.
There are several ways to define the schema for a component. Here are the most common
ways:
■ For an XMLConnector component, you can import an XML sample file to define the
schema. See “Connecting to XML data with the XMLConnector component (Flash
Professional only)” on page 416.
■ For a WebServiceConnector component, you can import the WSDL for a web service to
define the schema. See “Connecting to web services with the WebService connector
component (Flash Professional only)” on page 413.
■ For a DataSet component, which is typically the intermediary component between your
connector components and UI components, you define the schema using the
Schema panel. See “Adding a component property to a schema” on page 398 and “Adding
a schema field to a schema item” on page 400.
■ For UI components, the schema is predefined within the component. You can modify the
schema to create additional bindable properties, as shown in “Adding a component
property to a schema” on page 398.
Adding a component property to a schema
You typically add component properties to a schema for the following reasons:
■ To make an existing component property bindable. You can make any component
property bindable if you add it to the schema.
■ To define the fields of a DataSet component to describe expected data fields. Most
commonly, you need to define the data type for an expected field, but there are numerous
other properties you can set. For more information, see the examples in “Accessing the
data” on page 424 and “Schema item settings” on page 431.