MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 66

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 65
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
63
Example
The following code defines an
onLoad() handler function that signals when data is returned:
application.onConnect = function(client){
this.acceptConnection(client);
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
if (success) {
trace(this.toString());
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load("http://www.helpexamples.com/flash/params.txt");
};
LoadVars.loaded
myLoadVars.loaded
A boolean value that indicates whether a LoadVars.load() or LoadVars.sendAndLoad() operation has
completed (
true) or not (false).
Availability
Flash Media Server 2
Example
The following example loads a text file and writes information to the log file when the operation is complete:
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()
myLoadVars.onData(src){}
Invoked when data has completely downloaded from the server or when an error occurs while data is downloading
from a server.
Availability
Flash Media Server 2
Parameters
src A string or undefined; the raw (unparsed) data from a LoadVars.load() or LoadVars.sendAndLoad()
method call.
Vedere la pagina 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 154 155

Commenti su questo manuale

Nessun commento