Availability:
None of the commands described in the table are available in web players.
All of the commands are available in stand-alone applications, such as projectors.
Only
allowscale
The
command can contain only the characters A-Z, a-z, 0-9, period (.), and underscore
exec
(_). The
command runs in the subdirectory fscommand only. In other words, if you use
exec
the
command to call an application, the application must reside in a subdirectory named
exec
fscommand. The
exec
Usage 2: To use
fscommand()
web browser, you can pass any two parameters in the
These parameters can be strings or expressions, and they are used in a JavaScript function that
handles, or catches, the
In a web browser,
fscommand()
which resides in the webpage that contains the SWF file. For
the Flash object that you used for the
tag. If you assign the SWF file the name
OBJECT
myMovie_DoFScommand
In the web page that contains the SWF file, set the
deny the SWF file's ability to access the web page. (You set this attribute in the HTML code
that embeds the SWF file—for example, in the
tag for Netscape.) When
fails. When
allowScriptAccess
When it is set to
"sameDomain"
domain as the web page. If
for Flash Player 8, and to
"sameDomain"
When using this function, consider the Flash Player security model. For Flash Player 8, the
function is not allowed if the calling SWF file is in the local-with-file-system or
fscommand()
local-with-network sandbox and the containing HTML page is in an untrusted sandbox. For
more information, see the following:
Chapter 17, "Understanding Security," in Learning ActionScript 2.0 in Flash
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
56
ActionScript language elements
and
are available in test-movie players.
exec
command works only from within a Flash projector file.
to send a message to a scripting language such as JavaScript in a
function.
fscommand()
calls the JavaScript function
attribute of the
NAME
is called.
allowScriptAccess
is set to
"always"
, scripting is allowed only from SWF files that are in the same
allowScriptAccess
"always"
and
command
parameters
moviename_DoFScommand
moviename
tag or the ID property of the
EMBED
, the JavaScript function
myMovie
allowScriptAccess
tag for Internet Explorer or the
PARAM
is set to
, outbound scripting always
"never"
, outbound scripting always succeeds.
is not specified in a web page, it defaults to
for previous versions of Flash Player.
parameters.
,
, supply the name of
attribute to allow or
EMBED
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?