MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 298

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

Advertisement

The
fieldnameN
of the following:
The name of a field in the original record
A string, enclosed in single quotes ('), that contains a mix of text and tags. A tag is the name of
a field in the original array, enclosed in < and >.
A single dot (.), which represents the entire original record
For example, suppose you want to assign an array to the
component using data binding. The objects within the array do not have a
(which the list uses if available). You could use this formatter to create a new array through data
binding that replicates the objects within your original array and adds a
object using the values you define. The following template would achieve this (this would be on a
binding between your array and the List component's
label='My name is <firstName> <lastName>;'
firstName=firstName;
lastName=lastName;
This syntax assumes that the object has two properties, called
property will be added to each object within the new array.
label
Note: This formatter can be used on any binding from a component property that is of the Array type
to another component property of the Array type. Also note that the Rearrange Fields formatter
doesn't work if you access if in the Schema panel, but does work if you access it in the Bindings
panel.
Number Formatter
appears when a number is converted to text.
You can create custom formatters. The number of formatters allowed is unlimited. Formatters are
defined by XML files found in the Flash MX Professional 2004 Configuration/Formatters folder.
The definition includes the following metadata:
The ActionScript class that will be instantiated to perform the formatting
A Formatter Options dialog box
Schema data types
A data type is an object that represents all the runtime logic needed to support a particular data
type. A data type can be a scalar type, such as integer, string, date, currency amount, or ZIP code.
It can also be a complex type, with subfields and so on. A data type can test a data value to
determine if it is valid for that data type. The following data types come with Flash MX
Professional 2004:
Array
No validation options.
Attribute
XML attribute. No validation options.
Boolean
No validation options.
298
Chapter 14: Data Integration (Flash Professional Only)
are the names of the fields in the new array or records. The
This formatter allows you to specify the number of fractional digits that
property of a List
DataProvider
label
label
property):
DataProvider
and
firstName
is one
definitionN
property
property to each
. The
lastName

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents