MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 55

Actionscript 2.0 language reference
Table of Contents

Advertisement

The
function lets a SWF file communicate with a script in a web page.
fscommand()
However, script access is controlled by the web page's
this attribute in the HTML code that embeds the SWF file—for example, in the
for Internet Explorer or the
, a SWF file cannot access web page scripts. With Flash Player 7 and later, when
"never"
allowScriptAccess
allowScriptAccess
are in the same domain as the web page; scripting is always allowed with previous versions of
Flash Player. If
allowScriptAccess
default to
"sameDomain"
of version 7 and earlier.
Usage 1: To use
fscommand()
commands and parameters. The following table shows the values that you can specify for the
function's
fscommand()
files that are playing in Flash Player, including projectors. (A projector is a SWF file saved in a
format that can run as a stand-alone application—that is, without Flash Player.)
Command
quit
fullscreen
allowscale
showmenu
exec
trapallkeys
tag for Netscape. When
EMBED
is set to
, a SWF file can always access web page scripts. When
"always"
is set to
"sameDomain"
is not specified in an HTML page, the attribute is set by
for SWF files of version 8 and later, and to
to send a message to Flash Player, you must use predefined
and
command
parameters
Parameter
None
or
true
false
or
true
false
or
true
false
Path to application
or
true
false
allowScriptAccess
allowScriptAccess
, scripting is allowed only from SWF files that
parameters. These values control SWF
Purpose
Closes the projector.
Specifying
sets Flash Player to full-
true
screen mode. Specifying
player to normal menu view.
Specifying
false
SWF file is always drawn at its original size
and never scaled. Specifying
the SWF file to scale to 100% of the player.
Specifying
enables the full set of
true
context menu items. Specifying
all of the context menu items except About
Flash Player and Settings.
Executes an application from within the
projector.
Specifying
sends all key events,
true
including accelerator keys, to the
onClipEvent(keyDown/keyUp)
Flash Player.
setting. (You set
PARAM
is set to
for SWF files
"always"
returns the
false
sets the player so that the
forces
true
hides
false
handler in
Global Functions
tag
55

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF