EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Page 403

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LoadVars 403
The Flash test environment always uses the GET method. To test using the POST method, be
sure you are attempting to use it from within a browser.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
url:String - A string; the URL to which to upload variables.
target:String - A string; the browser window or frame in which any response will appear.
You can enter the name of a specific window or select from the following reserved target
names:
"_self" specifies the current frame in the current window.
"_blank" specifies a new window.
"_parent" specifies the parent of the current frame.
"_top" specifies the top-level frame in the current window.
method:String [optional] - A string; the GET or POST method of the HTTP protocol. The
default value is
POST.
Returns
Boolean - A Boolean value; false if no parameters are specified, true otherwise.
Example
The following example copies two values from text fields and sends the data to a CFM script,
which is used to handle the information. For example, the script might check if the user got a
high score and then insert that data into a database table.
var my_lv:LoadVars = new LoadVars();
my_lv.playerName = playerName_txt.text;
my_lv.playerScore = playerScore_txt.text;
my_lv.send("setscore.cfm", "_blank", "POST");
See also
sendAndLoad (LoadVars.sendAndLoad method), send (XML.send method)

Table of Contents

Related product manuals