The following example creates a new LoadVars object that adds a request header called
FLASH-UUID. The header contains a variable that the server can check.
var my_lv = new LoadVars();
my_lv.addRequestHeader("FLASH-UUID", "41472");
my_lv.name = "Mort";
my_lv.age = 26;
my_lv.send("http://flash-mx.com/mm/cgivars.cfm", "_blank", "POST");
LoadVars.contentType
Availability
Flash Media Server 2.
Usage
myLoadVars.contentType
Description
Property; the MIME type that is sent to the server when you call the
or
LoadVars.send()
method. The default is application/x-www-urlform-encoded.
LoadVars.sendAndLoad()
Example
The following example creates a LoadVars object and displays the default content type of the
data that is sent to the server:
var my_lv = new LoadVars();
trace(my_lv.contentType);
// output: application/x-www-form-urlencoded
LoadVars.decode()
Availability
Flash Media Server 2.
Usage
myLoadVars.decode(queryString)
Parameters
A URL-encoded query string containing name/value pairs.
queryString
Returns
Nothing.
LoadVars class
91
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?