Adobe Flash

Edit the data

Now you will modify the application so that you can edit data through the DataGrid component.

On the Stage, select the DataGrid component. Then click the Parameters tab in the Component inspector.

Set the editable property to true.

Run the application.

You can now edit the data within the grid.

Data Integration: Using XUpdate to Update the Timesheet (Flash Professional Only)

Prerequisite: "Data Integration: Using XML for a Timesheet (Flash Professional Only)"

This tutorial starts where the "Data Integration: Using XML for a Timesheet (Flash Professional Only)" tutorial left off. Now that the DataSet component is managing the data, it is tracking changes that are made to the data into the DeltaPacket property. A resolver is needed to send the changes back to the server in an optimized way. The XUpdateResolver component is the best choice for updating an XML source, because it generates XUpdate statements that can be sent to the server to update the data.

In this tutorial, you will complete the following task:

Update the timesheet

This tutorial uses a public web service and therefore requires that you have an Internet connection. In addition, the tutorial won't work in a browser because of sandbox restrictions, but will work in the Flash authoring environment or Flash Player.


The use of a public web service in this tutorial does not imply that you should use one for real-world applications. In fact, Macromedia does not recommend using public web services directly from within any client-side application. For more information, see "About data connectivity and security in Flash Player" in Flash Help.

For this tutorial, you will need to the data.xml file provided in the Tutorial Assets folder. This file can be found in one of the following locations:

  • In Windows, browse to boot drive \Program Files\Macromedia\ Flash 8\Samples and Tutorials\Tutorial Assets\Data Integration\ Using XML for a Timesheet\data.xml.

  • On the Macintosh, browse to Macintosh HD /Applications/ Macromedia Flash 8/Samples and Tutorials/Tutorial Assets/ Data Integration/Using XML for a Timesheet/data.xml.


For demonstration purposes, you will access the XML data from your hard disk and display the DeltaPacket property within your screen. In the real world, the XUpdate would be sent to the server for processing.