MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 707

Actionscript 2.0 language reference
Table of Contents

Advertisement

When using this method, consider the Flash Player security model:
For Flash Player 8, the method is not allowed if the calling SWF file is in an untrusted
local sandbox.
For Flash Player 7 and later, the method is not allowed if the calling SWF file is a local file.
For more information, see the following:
Chapter 17, "Understanding Security," in Learning ActionScript 2.0 in Flash
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
Availability: ActionScript 1.0; Flash Player 6
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");
or
GET
if no parameters are specified,
false
method of the HTTP protocol. The
POST
true
otherwise.
LoadVars
707

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF