MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 50

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

[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");
};
You can also use
GET
variables to a URL:
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
myBtn_btn.onRelease = function() {
getURL("http://www.macromedia.com", "_blank", "GET");
};
The following ActionScript uses
test your documents in a browser window, because otherwise your variables are sent using
:
GET
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
getURL("http://www.macromedia.com", "_blank", "POST");
See also
loadVariables function
method)
50
ActionScript language elements
or
GET
POST
method appends the variables to the end of the URL,
GET
is used to send an e-mail message:
getURL()
or
for sending variables. The following example uses
POST
to send variables in the HTTP header. Make sure you
POST
,
send (XML.send method)
method for sending variables. If there are no
method sends the variables in a separate
POST
,
sendAndLoad (XML.sendAndLoad
to append
GET

Advertisement

Table of Contents
loading

Table of Contents