6.
Double-click the
encoder options
value for the
rowNodeKey
This property identifies which node within the XML file will be treated
as a record within the data set. It also defines which element or
attribute combination makes the row node unique, as well as the
schema field within the DataSet component that will represent it. See
"Updates sent to an external data source" in Using Flash (in Flash, select
Help > Using Flash).
In the sample XML file, the
is the unique identifier, and it will be mapped to the DataSet
component's ID schema field. This is defined with the following
expression:
datapacket/row[@id='?id']
7.
In the Component inspector, click the Bindings tab.
8.
Click the Add Binding button.
9.
In the Add Binding dialog box, click the
click OK.
10.
In the Component inspector Bindings tab, double-click the Bound To
property.
11.
In the Bound To dialog box, click the Data Set component, and then
click the
deltaPacket
This binding will copy the DeltaPacket component to the
XUpdateResolver component so that it can be manipulated before it is
sent to the server.
The data is copied after the DataSet component's
is called.
12.
Drag a TextArea component onto the Stage, and in the Property
inspector enter the instance name deltaText.
13.
Still in the Property inspector, set the Width to 360.
14.
Select the component, and then in the Component inspector, click the
Bindings tab.
15.
Click the Add Binding button.
property. When prompted for a
property, type datapacket/row[@id='?id']
attribute of the
id
deltaPacket
schema location and click OK.
node
datapacket/row
property and
method
applyUpdates()
.
Update the timesheet 291
Need help?
Do you have a question about the FLASH 8-FLASH and is the answer not in the manual?
Questions and answers