MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 95

Server-side actionscript language reference
Table of Contents

Advertisement

Example
The following example loads a text file and writes information to the log file when the
operation completes:
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
trace("LoadVars loaded successfully: "+this.loaded);
};
my_lv.load("http://www.helpexamples.com/flash/params.txt");
See also
LoadVars.onLoad
LoadVars.onData
Availability
Flash Media Server 2.
Usage
myLoadVars.onData(src){}
Parameters
A string or
; the raw (unparsed) data from a
or
src
undefined
LoadVars.load()
method call.
LoadVars.sendAndLoad()
Description
Event handler; invoked when data has 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 can be used to call a custom parsing routine instead of the one built in to Flash
Player. The value of the
parameter passed to the function assigned to
src
LoadVars.onData
can be either undefined or a string that contains the URL-encoded name-value pairs
downloaded from the server. If the
parameter is undefined, an error occurred while
src
downloading the data from the server.
The default implementation of
invokes
. You can
LoadVars.onData
LoadVars.onLoad
override this default implementation by assigning a custom function to
,
LoadVars.onData
but
is not called unless you call it in your implementation of
LoadVars.onLoad
.
LoadVars.onData
LoadVars class
95

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents