390
ActionScript classes
LoadVars
Object
|
+-LoadVars
public dynamic class
LoadVars
extends
Object
You can use the LoadVars class to obtain verification of successful data loading and to monitor
download progress. The LoadVars class is an alternative to the loadVariables() function for
transferring variables between a Flash application and a server.
The LoadVars class lets you send all the variables in an object to a specified URL and load all
the variables at a specified URL into an object. It also lets you send specific variables, rather
than all the variables, which can make your application more efficient. You can use the
LoadVars.onLoad handler to ensure that your application runs when data is loaded, and not
before.
The LoadVars class works much like the XML class; it uses the methods
load()
,
send()
, and
sendAndLoad()
to communicate with a server. The main difference between the LoadVars
class and the XML class is that LoadVars transfers ActionScript name and value pairs, rather
than an XML DOM tree stored in the XML object. The LoadVars class follows the same
security restrictions as the XML class.
Availability:
ActionScript 1.0; Flash Lite 2.0
See also
loadVariables function
,
onLoad (LoadVars.onLoad handler)
,
XML
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...