
LoadVars.send() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
586
|
ActionScript Language Reference
trace("No variables were found");
}
}
The onLoad( ) handler alleviates the need to write custom polling code that waits for data
to arrive after invoking load( ) or sendAndLoad( ). For a complete example showing
onLoad( ) and variable preloading techniques, see LoadVars.getBytesLoaded( ) and Load-
Vars.sendAndLoad( ).
See Also
LoadVars.getBytesLoaded( ), LoadVars.load( ), LoadVars.onData( ), LoadVars.
sendAndLoad( )
LoadVars.send() Method
transfer URL-encoded variables to a server-side application or script
Flash 6
loadVarsObject.send(url, target)
loadVarsObject.send(url, target, method)
Arguments
url A string specifying the absolute or relative location of the external script or
application that receives the variables.
target A string specifying the name of the browser window or frame into which to load
results. Can be a custom name or one of the four presets:
"_blank", "_parent",
"_self", or "_top".
method An optional string specifying the HTTP method by which to send the proper-
ties of
loadVarsObject to an external script—either "GET" or "POST".If
omitted, it defaults to
"POST". The Standalone Flash Player for Windows
always uses the
"GET" method, regardless of the method specified. See
Appendix F for details on support for GET and POST. ...