Note: a version of this article was posted on the Adobe Developer Center in November 2007. That article is based heavily on this one – essentially I took the text here, and revised a few sentences and word choices for clarity. However, if you’re interested in the “latest” version, you can find it here: ”Detecting when data is edited in the DataGrid component.”
Suppose you’re creating a user interface with Flash CS3, using the new lightweight ActionScript 3.0 components. You’re using the DataGrid component to display – what else – a table of data. You want users to be able to edit the data, and you want to know when the user changes the data so that you can update the application.
For example, suppose you’re building something like this simple spreadsheet application: