Working with external data overview

In Macromedia Flash MX 2004 and Macromedia Flash MX Professional 2004, you can use ActionScript to load data from external sources into a SWF file. You can also send data from a SWF file for processing by an application server (such as Macromedia ColdFusion MX or Macromedia JRun) or another type of server-side script, such as PHP or Perl. Flash Player can send and load data over HTTP or HTTPS or from a local text file. You can also create persistent TCP/IP socket connections for applications that require low latency—for example, chat applications or a stock quote services.

Data that you load into or send from a SWF file can be formatted as XML (Extensible Markup Language) or as name-value pairs.

Flash Player can also send data to and receive data from its host environment—a web browser, for example—or another instance of Flash Player on the same computer.

By default, a SWF file can only access data that resides in the same domain (for example, www.macromedia.com) that the Flash movie originated from. (For more information, see Flash Player security features.)