DataSet.calcFields
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
on(calcFields) {
// insert your code here
}
listenerObject = new Object();
listenerObject.calcFields = function (eventObj) {
// insert your code here
}
dataSet.addEventListener("calcFields", listenerObject)
Description
Event; generated when values of calculated fields for the current item in the collection need to be
determined. A calculated field is one whose Kind property is set to Calculated on the Schema tab
of the Component inspector. The
required calculation and set the value for the calculated field.
This event is also called when the value of a noncalculated field (that is, a field with its Kind
property set to Data on the Schema tab) is updated.
For more information on the Kind property, see "Schema kinds" in Using Flash.
Caution: Do not change the values of any of noncalculated fields in this event, because this will result
in an "infinite loop." Set only the values of calculated fields within the
DataSet.changesPending()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.changesPending()
Parameters
None.
Returns
A Boolean value.
312
Chapter 6: Components Dictionary
event listener that you create should perform the
calcFields
event.
calcFields
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers