MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 236

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

DataType.encoder
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.encoder
Description
Property; provides a reference to the encoder object associated with this field, if one exists. You
can use this property to access any properties and methods defined by the specific encoder applied
to the field in the Component inspector's Schema tab.
If no encoder was applied to the field in question, then this property returns
For more information about the encoders provided with Flash MX Professional 2004, see
"Schema encoders" in Using Flash.
Example
The following example assumes that the field being accessed (
(
mx.data.encoders.Bool
contains a property named
values. The code below sets the
true
"Yes" and "Oui".
var myField:mx.data.binding.DataType = dataSet.getField("isValid");
myField.encoder.trueStrings = "Yes,Oui";
DataType.formatter
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.formatter
Description
Property; provides a reference to the formatter object associated with this field, if one exists. You
can use this property to access any properties and methods for the formatter object applied to the
field in the Component inspector's Schema tab.
If no formatter was applied to the field in question, this property returns
236
Chapter 6: Components Dictionary
). This encoder is provided with Flash MX Professional 2004 and
that specifies which strings should be interpreted as
trueStrings
trueStrings
) uses the Boolean encoder
isValid
property for a field's encoder to be the strings
undefined
.
undefined
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents