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.
Working with external data in Flash - LoadVars Class (Page 3 of 6 )
The LoadVars Class can be used in lieu of loadVariables() and loadVariablesNum() methods. It has three methods that use the HTTP or HTTPS protocol to send and load information in URL-encoded format.
This class 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 or text files.
When compared to loadVariables() and loadVariablesNum() methods, LoadVars class has many advantages.
Example:
The following example instantiates a LoadVars object, assigns a couple of variables to it and sends those variables to a PHP page with http POST method.