User Guide
314 DataHolder component (Flash Professional only)
■ You might have a data value that results from a complex indexed data binding, as shown in
the following diagram.
In this case it is convenient to bind the data value to a DataHolder component (called
DataModel in this illustration) and then use that for bindings to the user interface.
Creating an application with the
DataHolder component
(Flash Professional only)
In this example, you add an array property to a DataHolder component’s schema (an array)
whose value is determined by ActionScript code that you write. You then bind that array
property to the
dataProvider property of a DataGrid component by using the Bindings tab
in the Component inspector.
To use the DataHolder component in a simple application:
1. In Flash, create a new file.
2. Open the Components panel, drag a DataHolder component to the Stage, and name it
dataHolder.
NOTE
The DataHolder component is not meant to implement the same control over your
data as the DataSet component. It does not manage or track data, nor does it have
the ability to update data. It is a repository for holding data and generating events
when that data has changed.
Web Service Method
getMovies
DataModel
myDataModel
UI ListBox
movieList
Results
data.movieTitle
data.movieRating
data.movieTimes
UI TextField
title
UI TextField
rating
UI ListBox
times
Results[movieList.selectedIndex]