MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manual do Utilizador Página 91

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 90
88
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
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
Parameters
url A string; the URL to which to upload variables.
target The LoadVars object that receives the downloaded variables.
method A string; 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).
LoadVars.toString()
myLoadVars.toString()
Returns a string containing all enumerable variables in myLoadVars, in the MIME content encoding application/x-
www-form-urlencoded.
Availability
Flash Media Server 2
Returns
A string.
Example
The following example instantiates a new LoadVars() object, creates two properties, and uses toString() to return
a string containing both properties in URL-encoded format:
var my_lv = new LoadVars();
my_lv.name = "Gary";
my_lv.age = 26;
trace (my_lv.toString());
//output: age=26&name=Gary
Log class
The Log class lets you create a Log object that can be passed as an optional parameter to the constructor for the
WebService class.
Vista de página 90
1 2 ... 86 87 88 89 90 91 92 93 94 95 96 ... 171 172

Comentários a estes Manuais

Sem comentários