LoadVars

Availability
Flash Player 6.

Description
The LoadVars class is an alternative to the loadVariables() function of transferring variables between a Flash application and a server.

You can use the LoadVars class to get verification of successful data loading, progress indications, and stream data when it downloads. The LoadVars class works nearly the same as the XML class; it uses the methods load(), send(), and sendAndLoad() to communicate with a server. They are different in some way as well. The main difference between the LoadVars class and the XML class is that LoadVars transfers ActionScript name and value pairs, whereas an XML DOM tree is stored in the XML object.

The LoadVars class obeys the same security restrictions as the XML class.

Methods
addRequestHeader  getBytesLoaded  getBytesTotal  load  send  sendAndLoad  toString  LoadVars 

Events
onData  onLoad 

Properties
contentType  loaded 

LoadVars