LoadVars.sendAndLoad()
Availability
Flash Player 6; behavior changed in Flash Player 7.
Usage
my_lv.sendAndLoad(url:String
Parameters
A string; the URL to which to upload variables. If the SWF file issuing this call is running
url
in a web browser,
targetObject
A string; the
method
Returns
A Boolean value.
Description
Method; posts variables in the
is downloaded, parsed as variable data, and the resulting variables are placed in the
targetObject
Variables are posted in the same manner as
in the same manner as
targetObject
In SWF files running in a version of the player earlier than Flash Player 7,
same superdomain as the SWF file that is issuing this call. A superdomain is derived by removing
the left-most component of a file's URL. For example, a SWF file at www.someDomain.com can
load data from sources at store.someDomain.com, because both files are in the same superdomain
of someDomain.com.
In SWF files of any version running in Flash Player 7 or later,
domain (see "Flash Player security features" in Using ActionScript in Flash). For example, a SWF
file at www.someDomain.com can load data only from sources that are also at
www.someDomain.com. If you want to load data from a different domain, you can place a cross-
domain policy file on the server hosting the SWF file. For more information, see "About allowing
cross-domain data loading" in Using ActionScript in Flash.
This method is similar to
,
targetObject[, method:String]) : Boolean
must be in the same domain as the SWF file; for details, see "Description".
url
LoadVars; the LoadVars object that receives the downloaded variables.
or
method of the HTTP protocol.
GET
POST
object to the specified URL. The server response
my_lv
object.
XML.sendAndLoad()
LoadVars.send()
.
LoadVars.load()
.
. Variables are downloaded into
must be in the
url
must be in exactly the same
url
LoadVars.sendAndLoad()
397
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?