Usage 1: To send a message to Flash Player, you must use predefined commands and parameters.
The following table shows the values you can specify for the
parameters of the
(including projectors):
Command
quit
fullscreen
allowscale
showmenu
exec
trapallkeys
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 the
exec
fscommand exec
named fscommand.
Usage 2: To use the
in a web browser, you can pass any two parameters in the
These parameters can be strings or expressions and are used in a JavaScript function that
"catches," or handles, the
In a web browser, the
in the HTML page containing the SWF file. The
assigned by the
NAME
assign the Flash Player the name
myDocument_DoFScommand
Usage 3: The
fscommand
by Lingo as strings, events, or executable Lingo code. If the message is a string or an event, you
must write the Lingo code to receive the message from the
action in Director. For more information, see the Director Support Center at
www.macromedia.com/support/director.
Usage 4: In Visual Basic, Visual C++, and other programs that can host ActiveX
controls, fscommand sends a VB event with two strings that can be handled in the environment's
programming language. For more information, use the keywords Flash method to search the Flash
Support Center at www.macromedia.com/support/flash.
386
Chapter 12: ActionScript Dictionary
action to control a SWF file playing in Flash Player
fscommand
Parameters
Purpose
Closes the projector.
None
or
Specifying
true
false
Specifying
or
Specifying
true
false
drawn at its original size and never scaled. Specifying
forces the SWF
or
Specifying
true
false
Specifying
Flash Player.
Executes an application from within the projector.
Path to
application
or
Specifying
true
false
to the
command to call an application, the application must reside in a subdirectory
action to send a message to a scripting language such as JavaScript
fscommand
action.
fscommand
action calls the JavaScript function
fscommand
attribute of the
EMBED
myDocument
.
action can send messages to Macromedia Director that are interpreted
command
sets Flash Player to full-screen mode.
true
returns the player to normal menu view.
false
sets the player so that the SWF
false
file
to scale to 100% of the player.
enables the full set of context menu items.
true
dims all the context menu items except About
false
sends all key events, including accelerator keys,
true
onClipEvent(keyDown/keyUp)
command
is the name of the Flash Player as
moviename
tag or the ID property of the
, the JavaScript function called is
fscommand
and
parameters
file
is always
true
handler in Flash Player.
and
parameters.
parameters
moviename_DoFScommand
tag. If you
OBJECT
action and carry out an
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?