Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Flex Mashups > Creating a Proxy

10.3. Creating a Proxy

The lack of crossdomain.xml can create a scenario where your Flex application works fine on your local machine but not on your server. The solution for the lack of a crossdomain.xml file is to use a proxy to connect to the data source and have Flash connect to the proxy instead of the data source directly. By connecting to a proxy instead of the service, you can access services that don't allow direct access for Flash. Web pages can access other open APIs and expose the data for the Flash player. The reason that using proxy works is that the Flash player allows accessing services from the same domain without the need to install a cross-domain policy.

There are a few ways to use proxies; one is to create a server-side script to connect to the data source.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial