Select the
10.
@billable
Notice that the field's data type was automatically set to Boolean by the authoring tool, which
looks for certain patterns to guess the type of an XML element. However, you need to modify
the Encoder Options for the field. For Boolean data types, the encoder options specify strings
that indicate true and false values.
With the
11.
@billable
In the Boolean Encoder dialog that appears, enter true in the String That Mean True text box
12.
and enter false in the Strings That Mean False text box.
Select the
13.
@duration
Notice that the field's data type was automatically set to Integer. This is because the sample
XML field contained only whole number values for this attribute.
Select the Data Type setting for the
14.
it is not limited to integer values.
In the Component inspector, click the Bindings tab and create a binding between the
15.
and the DataSet component's
and set it to Out.
The DataBinding component copies each object within the
(transfer object) within the DataSet component. It applies the settings you selected as the data
is copied, so that the DataSet component receives ActionScript Date, Boolean, and Number
fields for the
@date
Next, you will create fields for the DataSet component that match those in the
XMLConnector component.
On the Stage, select the DataSet component. In the Component inspector, click the Schema
16.
tab.
Click the Add a Component Property (+) button and enter id for Field Name and Integer for
17.
Data Type.
Using the same method, create the following new fields:
18.
Field Name = billable, Data Type = Boolean
Field Name = date, Data Type = Date
Field Name = duration, Data Type = Number
Field Name = rate, Data Type = Number
14
XML Tutorial: Timesheet (Flash Professional Only)
schema field.
schema field still selected, double-click the Encoder Options field.
schema field.
@duration
dataProvider:Array
,
and
@billable
@duration
schema field and change it to Number so that
property. Select the Direction property
array into a new record
row
attributes.
array
row
Need help?
Do you have a question about the FLASH MX 2004-DATA and is the answer not in the manual?
Questions and answers