MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 293

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

Advertisement

@billable: String
@hours : Integer
@id : Integer
@rate : Integer
Suppose you want to treat the row node as a record within a grid, and you want the
attribute to be treated as a Boolean value and show a
or
. Getting the data into the grid is simple: You can simply bind the row schema field to the
OFF
property of the grid. The following procedure describes how to get the
dataProvider
attribute to be treated as a Boolean value and display a
To make the @billable attribute display a true or false value:
Select the XMLConnector component, click the Schema tab, and select the @billable schema
1.
field.
In the bottom pane of the Schema tab, set the
2.
Set the
3.
encoder
Select Encoder Options and enter on for strings that represent
4.
that represent
false
The encoder now takes the XML data in its raw form (String) and converts it into an
ActionScript Boolean value. Using the encoder options, it knows how to encode the string
values correctly.
Click Formatter, and select Boolean. Select Formatter Options. You now have a choice to define
5.
how a
and
true
Enter True for strings that mean
6.
The formatter now takes the ActionScript Boolean value and formats it into a String.
Setting the schema path
The
property for a schema field is an optional setting that is used in special circumstances
path
when the schema for your component is not appropriate. Using this setting, you can create a
virtual schema field (a field that exists in one location but pulls its value from another). The value
of this property is a path expression that is entered in one of the following formats:
For schemas that contain ActionScript data, the path follows the format
where
is equal to the name of a field (such as
field
For schemas that contain XML data, the path follows the format
standard XPath statement (such as
When data binding is performed, Flash checks to see if there is a path expression for a schema
field. If so, it uses the path expression to locate the correct value. For more information, see
"Virtual schemas" on page
Note: The path expression is always performed relative to the parent node of the schema field.
property to Boolean.
.
value should appear as a string.
false
true,
addressList/street
301.
or
true
false
or
true
false
property to Boolean.
data type
and enter False for strings that mean
addresslist.street
).
Advanced topics in data integration
@billable
value in the grid instead of
@billable
value.
and enter off for strings
true,
.
false
field [.field]...,
).
where
XPath,
XPath
ON
is a
293

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents