LoadVars class
Availability
Flash Player 6.
Description
You can use the LoadVars class to obtain verification of successful data loading and to monitor
download progress. 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
not before.
The LoadVars class works much like the
sendAndLoad()
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.
For information about using the LoadVars class and example code, see
on page
69.
Method summary for the LoadVars class
Method
LoadVars.addRequestHeader()
LoadVars.decode()
LoadVars.getBytesLoaded()
LoadVars.getBytesTotal()
LoadVars.load()
LoadVars.send()
LoadVars.sendAndLoad()
LoadVars.toString()
handler to ensure that your application runs when data is loaded, and
to communicate with a server. The main difference between the LoadVars class
Description
Adds or changes HTTP headers for
Converts a variable string to properties of the specified LoadVars
object.
Returns the number of bytes downloaded by
LoadVars.sendAndLoad()
Returns the total number of bytes that will be downloaded by a
or
sendAndLoad
Downloads variables from a specified URL.
Posts variables from a LoadVars object to a URL.
Posts variables from a LoadVars object to a URL and downloads
the server's response to a target object.
Returns a URL-encoded string that contains all the enumerable
variables in the LoadVars object.
ActionScript Core Classes
XML
class; it uses the methods
.
method.
CHAPTER 6
,
load()
send()
"Using the LoadVars class"
operations.
POST
LoadVars.load()
LoadVars class
, and
or
load
315
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?