418
Data Integration (Flash Professional Only)
The String and Integer fields can be bound to UI components. The Array field Bird can be
bound to a DataSet component or to list-based UI components such as List, DataGrid, or
ComboBox, which all use the data provider interface. Or, you can directly bind UI
components to fields within certain records of the array, as shown in the example application
in
“Creating an indexed binding” on page 407
.
A typical workflow for an application that works with data would include binding an array
from the XMLConnector component to the DataSet component’s
dataProvider
property.
Or, you can directly bind UI components to fields within certain records of the array, as
shown in the example application in
“Creating an indexed binding” on page 407
. In this
scenario, the data set could be used to manage the data. The fields within the data set could
then be mapped to any of the UI components using data binding.
For more information on the XMLConnector component, including its properties, methods,
and events, see “XMLConnector component (Flash Professional only)” in the
Components
Language Reference
. For a common workflow using this component, see “Using the
XMLConnector component (Flash Professional only)” in the
Components Language Reference
.
You can also read the following tutorials on Macromedia DevNet: “Bike Trips Sample” at
www.macromedia.com/devnet/mx/flash/articles/xmlconnector.html
and “Data Integration
Using ASP” at
www.macromedia.com/devnet/mx/flash/articles/flashpro_asp.html
.
About data connectivity and security in Flash Player
Many developers are interested in using an industry standard such as SOAP web services
as the data-exchange mechanism between their client and server. One reason this approach is
gaining favor is the increasing number of popular servers that support exposure of logic
using SOAP.
There may be cases where you want the client software to use web services that are published
by third parties or hosted on servers that fall outside the Flash Player sandbox. Access to
external data through any connector component is subject to the sandbox security model in
Flash Player, for all Flash applications that run in a web browser. The sandbox security model
restricts a Flash document from accessing data from any domain other than the one in which
it originated (this includes public web services). There are a couple of ways to accomplish
what you want to do, while still preserving the user security and privacy that the Flash Player
sandbox provides:
■
Create a policy file that is hosted on the server containing the web service to be used. For
more information, see “Server-side policy files for permitting access to data” in
Learning
ActionScript 2.0 in Flash
and the security tech note 14213 at
www.macromedia.com/go/
tn_14213
.
Содержание 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 ...