getURL()
Availability
Flash 2. The
GET
Usage
getURL(url:String [, window:String [, "variables":String]]) : Void
Parameters
The URL from which to obtain the document.
url
An optional parameter specifying the window or HTML frame into which the
window
document should load. 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
A
variables
GET
parameter. The
GET
numbers of variables. The
used for sending long strings of variables.
Returns
Nothing.
Description
Function; loads a document from a specific URL into a window or passes variables to another
application at a defined URL. To test this function, make sure the file to be loaded is at the
specified location. To use an absolute URL (for example,
a network connection.
Example
In the following example,
myBtn_btn.onRelease = function(){
getURL("mailto:you@somedomain.com");
};
In the following ActionScript, JavaScript is used to open an alert window when the SWF file is
embedded in a browser window:
myBtn_btn.onRelease = function(){
getURL("javascript:alert('you clicked me')");
};
168
Chapter 5: ActionScript Core Language Elements
ActionScript Core Language Elements
and
options are available only in Flash Player 4 and later versions.
POST
or
method for sending variables. If there are no variables, omit this
POST
method appends the variables to the end of the URL, and is used for small
method sends the variables in a separate HTTP header and is
POST
is used to send an e-mail message:
getURL()
http://www.myserver.com
CHAPTER 5
), you need
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?