ds.addEventListener('calcFields', calculatedFunct);
}
See the
DataSet.calcFields
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()
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
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
settings are case-sensitive.
event in the Components Language Reference.
and
, and one or more strings that will be interpreted as
true
XMLConnector.trigger()
"Using kinds and encoders" on page
Advanced topics in data integration
in Components
434.
. The
false
437
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?
Questions and answers