Geturl (Movieclip.geturl Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

Returns
- An integer that specifies the Flash Player version that was targeted when the SWF
Number
file loaded into the movie clip was published.
Example
The following example creates a new container and outputs the value of
then uses MovieClipLoader to load an external SWF file that was published to Flash Player 7
and outputs the value of
var container:MovieClip = this.createEmptyMovieClip("container",
this.getUpperEmptyDepth());
var listener:Object = new Object();
listener.onLoadInit = function(target:MovieClip):Void {
trace("target: " + target.getSWFVersion()); // target: 7
}
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(listener);
trace("container: " + container.getSWFVersion()); // container: 8
mcLoader.loadClip("FlashPlayer7.swf", container);

getURL (MovieClip.getURL method)

public getURL(url:String, [window:String], [method:String]) : Void
Loads a document from the specified URL into the specified window. The
can also be used to pass variables to another application defined at the URL by using a
method.
POST
Web pages that host Flash movies must explicitly set the
allow or deny scripting for the Flash Player from the HTML code (in the
Internet Explorer or the
When
allowScriptAccess
When
allowScriptAccess
When
allowScriptAccess
version 8 ), outbound scripting is allowed if the SWF file is from the same domain as the
hosting web page.
If
allowScriptAccess
for version 8 SWF files, and it defaults to
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
after the
getSWFVersion()
tag for Netscape Navigator):
EMBED
is
, outbound scripting always fails.
"never"
is
, outbound scripting always succeeds.
"always"
is
"sameDomain"
is not specified by an HTML page, it defaults to
handler is triggered.
onLoadInit
allowScriptAccess
(supported by SWF files starting with
for earlier version SWF files.
"always"
. It
getSWFVersion()
method
getURL()
or
GET
attribute to
tag for
PARAM
"sameDomain"
MovieClip
473

Advertisement

Table of Contents
loading

Table of Contents