Advanced topics in data integration
437
ds.addEventListener('calcFields', calculatedFunct);
}
See the
DataSet.calcFields
event in the
Components Language Reference.
AutoTrigger
This kind can be applied to any property of any component but is mainly
useful for connector component properties. When a new value is assigned to the property
through data binding, the trigger method of the component is called. For more information,
see
WebServiceConnector.trigger()
and
XMLConnector.trigger()
in
Components
Language Reference
.
You can create custom kinds. The number of kinds allowed is unlimited. Kinds are defined by
XML files found in the Flash Professional 8 Configuration/Kinds folder. The definition
includes the following metadata:
■
An ActionScript class that will be instantiated to mediate access to the data
■
A Kind Options dialog box
Schema encoders
An encoder determines how a schema item for your component should be encoded/decoded
at runtime. Sometimes you might want a component property to have a different data type
that what is actually stored inside the component. For example, an XMLConnector
component results property is stored as an XML document, which contains only strings. You
might want a certain field in the results to appear as a Boolean value instead.
To do this, you set the field’s data type to Boolean, which tells the data binding mechanism to
expect Boolean values in that field; and you set the field’s encoder to Boolean, which performs
the translation between the underlying string value and the Boolean value that data binding
expects the property to have. See the example in
“Using kinds and encoders” on page 434
.
The following encoders come with Flash Professional 8:
None
The default encoder. No encoding/decoding occurs.
Boolean
Converts data of the String type into the ActionScript Boolean type. You must
specify (using the Encoder Options property) one or more strings, separated by commas, that
will be interpreted as
true
, and one or more strings that will be interpreted as
false
. The
settings are case-sensitive.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...