Datatype.formatter - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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
.
undefined
For more information about the encoders provided with Flash, see "Schema encoders" in
Using Flash.
Example
The following example assumes that the field being accessed (
) uses the Boolean
isValid
encoder (
). This encoder is provided with Flash and contains a
mx.data.encoders.Bool
property named
that specifies which strings should be interpreted as
trueStrings
true
values. The code below sets the
property for a field's encoder to be the strings
trueStrings
"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
.
undefined
For more information about the formatters provided with Flash, see "Schema formatters" in
Using Flash.
DataType.formatter
235

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents