The LoadVars object offers a cleaner, easier way to carry out the task of exchanging data with a server. Adi Reddy Mora explains how this object, introduced in Flash Player 6, can help you to more easily transfer variables between a Flash movie and a server.
The LoadVars object was introduced in Flash Player 6 to provide a cleaner, much more object-oriented interface for the common task of exchanging data with a server.
It is an alternative to the loadVariables action with more flexibility for transferring variables between a Flash movie and a server.*
*Here after "server" refers to any of the server-side scripting technology (ASP/ASP.NET/PHP/JSP/ColdFusion/etc)
You can use the LoadVars object to obtain verification of successful data loading, progress indications, and stream data while it downloads. The LoadVars object works much like the XML object; it uses the methods load, send, and sendAndLoad to communicate with a server. The main difference between the LoadVars object and the XML object is that LoadVars transfers ActionScript name and value pairs, rather than an XML DOM tree stored in the XML object.
It also lets you send only the variables that are required by the server instead of sending all the variables, as in the case of loadVariables or loadVariablesNum.
The LoadVars object is supported by Flash Player 6 and later.