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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 68
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
66
Availability
Flash Media Server 2
Parameters
success A boolean value indicating whether the LoadVars.load() operation ended in success (true) or failure
(
false).
Example
The following example creates a new LoadVars object, attempts to load variables into it from a remote URL, and
prints the result:
myLoadVars = new LoadVars();
myLoadVars.onLoad = function(result){
trace("myLoadVars load success is " + result);
}
myLoadVars.load("http://www.someurl.com/somedata.txt");
LoadVars.send()
myLoadVars.send(url [, target, method])
Sends the variables in the myLoadVars object to the specified URL. All enumerable variables in the myLoadVars
object are concatenated into a string that is posted to the URL by using the HTTP
POST method.
The MIME content type sent in the HTTP request headers is the value of
LoadVars.contentType.
Availability
Flash Media Server 2
Parameters
url A string; the URL to which to upload variables.
target A File object. If you use this optional parameter, any returned data is output to the specified File object. If
this parameter is omitted, the response is discarded.
method A string indicating the GET or POST method of the HTTP protocol. The default value is POST. This
parameter is optional.
Returns
A boolean value indicating success (
true) or failure (false).
See also
LoadVars.sendAndLoad()
LoadVars.sendAndLoad()
myLoadVars.sendAndLoad(url, target[, method ])
Posts the variables in the myLoadVars object to the specified URL. The server response is downloaded and parsed
as variable data, and the resulting variables are placed in the
target object. Variables are posted in the same way as
LoadVars.send(). Variables are downloaded into target in the same way as LoadVars.load().
Availability
Flash Media Server 2
Vedere la pagina 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 154 155

Commenti su questo manuale

Nessun commento