Working with external data in Flash
(Page 1 of 6 )
Because data for a website comes in many formats, it helps to have a variety of ways to handle this data. This article covers the different methods available in ActionScript for exchanging data.
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.
getURL(), loadVariables(), loadVariablesNum(), loadMovie(), and loadMovieNum() methods
LoadVars Class
MovieClipLoader class
XML Class
XMLSocket Class
Next: getURL(), loadVariables(),loadVariablesNum(), loadMovie(), and loadMovieNum() methods >>
More Flash Articles
More By Adi Reddy Mora