EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 430

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
430 Chapter 12: ActionScript Dictionary
LoadVars.loaded
Availability
Flash Player 6.
Usage
my_lv.loaded
Description
Property; undefined by default. When a LoadVars.load() or LoadVars.sendAndLoad()
operation is started, the
loaded property is set to false; when the operation completes, the
loaded property is set to true. If the operation has not yet completed or has failed with an error,
the
loaded property remains set to false.
This property is similar to the
XML.loaded property.
LoadVars.onData
Availability
Flash Player 6.
Usage
my_lv.onData = function(src) {
// your statements here
}
Parameters
src
The raw (unparsed) data from a LoadVars.load() or LoadVars.sendAndLoad()
method call.
Returns
Nothing.
Description
Event handler; invoked when data has been completely downloaded from the server, or when an
error occurs while data is downloading from a server. This handler is invoked before the data is
parsed and therefore can be used to call a custom parsing routine instead of the one built in to
Flash Player. The value of the
src parameter passed to the function assigned to
LoadVars.onData can either be undefined, or a string that contains the URL-encoded name-
value pairs downloaded from the server. If the returned value is
undefined, an error occurred
while downloading the data from the server.
The default implementation of
LoadVars.onData invokes LoadVars.onLoad. You can override
this default implementation by assigning a custom function to LoadVars.onData, but
LoadVars.onLoad will no longer be called unless you call it in your implementation of
LoadVars.onData.

Table of Contents

Related product manuals