Using fscommand()
Use the
fscommand()
The
fscommand()
the stand-alone version of Flash Player, you must use predefined commands and arguments. For
example, the following action sets the stand-alone player to scale the SWF file to the full monitor
screen size when the button is released:
on(release){
fscommand("fullscreen", "true");
}
The following table shows the values you can specify for the
of
fscommand()
Command
quit
fullscreen
allowscale
showmenu
exec
To use
fscommand()
browser, you can pass any two parameters in the
parameters can be strings or expressions and will be used in a JavaScript function that "catches,"
or handles, the
fscommand()
An
fscommand()
HTML page that embeds the SWF file, where
by the
attribute of the
NAME
assigned the name
186
Chapter 10: Working with External Data
function to send a message to whichever program is hosting Flash Player.
function has two parameters:
to control a SWF file playing in the stand-alone player (including projectors):
Arguments
Purpose
None
Closes the projector.
or
Specifying
true
false
Specifying
or
Specifying
true
false
drawn at its original size and never scaled. Specifying
forces the SWF file to scale to 100% of the player.
or
Specifying
true
false
Specifying
Settings and About Flash Player.
Path to
Executes an application from within the projector.
application
to send a message to a scripting language such as JavaScript in a web
function.
function invokes the JavaScript function
tag or the
EMBED
, the JavaScript function invoked is
myMovie
and
command
arguments
command
sets Flash Player to full-screen mode.
true
returns the player to normal menu view.
false
sets the player so that the SWF file is always
false
enables the full set of context menu items.
true
dims all the context menu items except
false
and
command
arguments
moviename_DoFSCommand
is the name of Flash Player as assigned
moviename
attribute of the
ID
OBJECT
myMovie_DoFSCommand
. To send a message to
and
parameters
arguments
true
parameters. These
in the
tag. If Flash Player is
.
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers