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
.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...