EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Page 707

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 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 707
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
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");

Table of Contents

Related product manuals