
394
Data Integration (Flash Professional Only)
Workflow for an external database (non-XML or not a web service):
1.
Set up your data source; for example, in the ColdFusion environment, set up a ColdFusion
DataSource component to connect to your data source.
2.
Add components to the Stage:
■
DataSet component.
■
UI component for data display, such as DataGrid.
■
Resolver component.
3.
Bind the DataSet component to the UI component for data display.
4.
Set up DataSet component:
■
Set component parameters.
■
Set component properties on the Schema tab.
5.
Set up a connection to your data; for example, you could set it up through a ColdFusion
component with Flash Remoting services and your own ActionScript code.
6.
Bind the resolver component to the DataSet component.
7.
Set up the resolver component:
■
Set component parameters.
■
Set component properties on the Schema tab.
■
Write ActionScript code using methods of a resolver component class.
8.
Add additional UI components and ActionScript code for the resolver functionality
(that is, for adding, editing, or deleting data records). Bind UI components to
resolver components.
Data binding (Flash Professional only)
Data binding lets you map the properties of one component to another component. A
binding is simply a statement that says “When property X of component A changes, copy the
new value to property Y of component B.”
For rich internet applications, you can map data from external data sources to Flash
components. The external data source is represented in your application by a component;
items in the data source’s schema are represented as properties of the component. You can
define component properties to meet your business needs; these properties, which contain
dynamic data that you want to manipulate, are referred to as
bindable
properties.
The most powerful use of data binding in Flash is to define the flow of data between UI
components, data management components, and connector components that access external
data sources such as web services, XML documents, and relational databases.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...