MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 403

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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
- A string; the URL to which to upload variables.
url:String
- A string; the browser window or frame in which any response will appear.
target:String
You can enter the name of a specific window or select from the following reserved target
names:
specifies the current frame in the current window.
"_self"
specifies a new window.
"_blank"
specifies the parent of the current frame.
"_parent"
specifies the top-level frame in the current window.
"_top"
[optional] - A string; the
method:String
default value is
.
POST
Returns
- A Boolean value;
Boolean
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)
or
GET
if no parameters are specified,
false
method of the HTTP protocol. The
POST
true
,
send (XML.send method)
otherwise.
LoadVars
403

Advertisement

Table of Contents
loading

Table of Contents