MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 60

Actionscript 2.0 language reference
Table of Contents

Advertisement

Parameters
- The URL from which to obtain the document.
url:String
[optional] - Specifies the window or HTML frame into which the document
window:String
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
[optional] - A
method:String
variables, omit this parameter. The
and is used for small numbers of variables. The
HTTP header and is used for sending long strings of variables.
Example
This example loads an image into a movie clip. When the image is clicked, a new URL is
loaded in a new browser window.
var listenerObject:Object = new Object();
listenerObject.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRelease = function() {
getURL("http://www.macromedia.com/software/flash/flashpro/", "_blank");
};
};
var logo:MovieClipLoader = new MovieClipLoader();
logo.addListener(listenerObject);
logo.loadClip("http://www.helpexamples.com/flash/images/image1.jpg",
this.createEmptyMovieClip("macromedia_mc", this.getNextHighestDepth()));
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 (please note that when calling JavaScript with getURL(),
the url parameter is limited to 508 characters):
myBtn_btn.onRelease = function(){
getURL("javascript:alert('you clicked me')");
};
60
ActionScript language elements
or
method for sending variables. If there are no
GET
POST
method appends the variables to the end of the URL,
GET
is used to send an e-mail message:
getURL()
method sends the variables in a separate
POST

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?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF