MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 318

Actionscript language reference
Table of Contents

Advertisement

LoadVars.contentType
Availability
Flash Player 6.
Usage
my_lv.contentType:String
Description
Property; the MIME type that is sent to the server when you call
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:LoadVars = new LoadVars();
trace(my_lv.contentType);
See also
LoadVars.send(),
LoadVars.decode()
Availability
Flash Player 7.
Usage
my_lv.decode(variables:String) : Void
Parameters
A URL-encoded query string containing name/value pairs.
variables
Returns
Nothing.
Description
Method; converts the variable string to properties of the specified LoadVars object.
This method is used internally by the
to call this method directly. If you override the
explicitly call
LoadVars.decode()
Example
The following example traces the three variables:
// Create a new LoadVars object
var my_lv:LoadVars = new LoadVars();
//Convert the variable string to properties
my_lv.decode("name=Mort&score=250000");
318
Chapter 6: ActionScript Core Classes
. The default is application/x-www-form-urlencoded.
// output: application/x-www-form-urlencoded
LoadVars.sendAndLoad()
LoadVars.onData
to parse a string of variables.
LoadVars.send()
event handler. Most users do not need
event handler, you can
LoadVars.onData
or

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents