LoadVars class
Availability
Flash Player 6.
Description
The LoadVars class is an alternative to the
between a Flash application and a server.
You can use the LoadVars class to obtain verification of successful data loading, progress
indications, and stream data while it downloads. The LoadVars class works much like the
class; it uses the methods
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.
Method summary for the LoadVars class
Method
LoadVars.addRequestHeader()
LoadVars.getBytesLoaded()
LoadVars.getBytesTotal()
LoadVars.load()
LoadVars.send()
LoadVars.sendAndLoad()
LoadVars.toString()
Property summary for the LoadVars class
Property
LoadVars.contentType
LoadVars.loaded
Event handler summary for the LoadVars class
Event handler
LoadVars.onData
LoadVars.onLoad
loadVariables()
,
, and
load()
send()
Description
Adds or changes HTTP headers for
Returns the number of bytes downloaded by
LoadVars.sendAndLoad()
Returns the total number of bytes that will be downloaded by a
or
method.
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.
Description
Indicates the MIME type of the data.
A Boolean value that indicates whether a
operation has completed.
Description
Invoked when data has been completely downloaded from the server,
or when an error occurs while data is downloading from a server.
Invoked when a
load
function for transferring variables
to communicate with a server.
sendAndLoad()
POST
.
or
operation has completed.
sendAndLoad
XML
operations.
or
LoadVars.load()
load
or
load
sendAndLoad
LoadVars class
425
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?