EasyManua.ls Logo

MACROMEDIA FLASH 8-USING FLASH - Page 443

MACROMEDIA FLASH 8-USING FLASH
678 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Advanced topics in data integration 443
You can create custom data types. The number of data types allowed is unlimited. Data types
are defined by XML files found in the Flash Professional 8 Configuration/DataTypes folder.
The definition includes the following metadata:
An ActionScript class that will be instantiated for validation and type conversion
A Validation Options dialog box
The name of the standard formatter, which you can override using the formatter
property
Initial values for required, read-only, and default values
When to edit schema item settings
You can edit anything within the Schema Attributes pane, even schemas that come from an
external source, such a web service WSDL file. You can always change any value for any field
of any schema, with the following restrictions:
If you change the type, all the other schema item attributes are reset to the default values
for the new data type.
If you select to completely reload the schema for a component property, you will lose all
the edits that had previously been made within the Schema Attributes pane.
When you build an application using data components and/or data binding, you need to
apply schema item settings to some, but not necessarily all, fields of the components in your
application. The following table summarizes the most common uses of schema item settings
and can help you determine when these settings need to be edited:
NOTE
There are several ways to reload the schema for a component property, including
entering a new WSDL URL, selecting a different operation for a web service, or
importing a new XML schema from a sample XML file.
Component Property/field Settings When to use
Any connector params (and its
sub-fields)
Validation Options,
Read-Only, Required
If validation is desired.
results (and its
sub-fields)
Formatter, Formatter
Options
For fields that need
formatting for display as
text.
Default value For fields whose value is
sometimes undefined.

Table of Contents

Related product manuals