Data

Data can come in many formats. It can be a text file, XML file located on a file system, or dynamic data/XML generated by a server at run-time.

In ActionScript you can load data from external sources into an SWF file. You can also send data from an SWF file for processing by an application server (such as Microsoft IIS, Macromedia ColdFusion MX, Macromedia JRun, IBM Websphere, BEA Weblogic, and so on) or another type of server-side script, such as ASP, PHP or Perl.

Macromedia Flash Player can send and load data over HTTP or HTTPS, or load from a local text file or XML file. You can also create persistent TCP/IP socket connections for real time messaging applications.

The following are the different ways that you can exchange data that are available in ActionScript.

  1. getURL(), loadVariables(), loadVariablesNum(), loadMovie(), and loadMovieNum() methods
  2. LoadVars Class
  3. MovieClipLoader class
  4. XML Class
  5. XMLSocket Class