The LoadVars class lets you send all the variables in an object to a specified URL and to load
all the variables at a specified URL into an object. It also lets you send specific variables, rather
than all variables, which can make your application more efficient. You can use the
handler to ensure that your application runs when data is loaded, and not
LoadVars.onLoad
before.
The LoadVars class works much like the XML class; it uses the
methods to communicate with a server. The main difference between the
sendAndLoad()
LoadVars class and the XML class is that LoadVars transfers ActionScript name and value
pairs, rather than an XML Document Object Model (DOM) tree stored in the XML object.
The LoadVars class follows the same security restrictions as the XML class.
Availability: ActionScript 1.0; Flash Player 6
See also
loadVariables function
Property summary
Modifiers
Property
contentType:String
loaded:Boolean
Properties inherited from class Object
constructor (Object.constructor
property),
prototype (Object.prototype
(Object.__resolve property)
Event summary
Event
onData
= function(src:String) {}
onHTTPStatus
=
function(httpStatus:Number) {}
onLoad
=
function(success:Boolean) {}
,
onLoad (LoadVars.onLoad handler)
Description
The MIME type that is sent to the server when you call
LoadVars.send() or LoadVars.sendAndLoad().
A Boolean value that indicates whether a load or
sendAndLoad operation has completed, undefined
by default.
property),
property),
Description
Invoked when data has completely downloaded from the
server or when an error occurs while data is
downloading from a server.
Invoked when Flash Player receives an HTTP status
code from the server.
Invoked when a LoadVars.load() or
LoadVars.sendAndLoad() operation has ended.
,
load()
send()
,
XML
__proto__ (Object.__proto__
__resolve
, and
LoadVars
693
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?