MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guida Utente Pagina 108

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 256
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 107
108 Retrieve and Display Data
Set up your project
Before you begin this lesson, perform the following tasks:
If you have not already done so, create the Lessons project in Adobe Flex Builder. For
more information, see “Create the Lessons project” on page 101.
Ensure that the automatic build option is enabled in Flex Builder. This option is enabled
by default in the standalone configuration of Flex Builder but not in the plug-in
configuration. To enable it, select Project > Build Automatically.
Review your access to remote data
sources
For security reasons, applications running in Flash Player on a client computer can only access
remote data sources if one of the following conditions is met:
Your applications compiled SWF file is in the same domain as the remote data source.
You use a proxy and your SWF file is on the same server as the proxy.
Adobe Flex Data Services provides a complete proxy management system for Flex
applications. You can also create a simple proxy service using a web scripting language
s u c h a s C o l d F u s i o n , J S P, P H P, o r A S P. F o r m o re information on creating your own proxy,
see the following TechNote on the Adobe website at www.adobe.com/go/16520#proxy.
A crossdomain.xml (cross-domain policy) file is installed on the web server hosting the
data source.
The crossdomain.xml file permits SWF files in other domains to access the data source.
For more information on configuring crossdomain.xml files, see the following TechNote
on the Adobe website at www.adobe.com/go/14213.
The data sources used in this lesson are located in a domain that has a crossdomain.xml setup.
Therefore, Flash Player can access the remote data.
Insert and position the blog reader
controls
In this section, you create the layout of your blog-reader application.
Vedere la pagina 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 255 256

Commenti su questo manuale

Nessun commento