fscommand()
Availability
Flash Player 3.
Usage
fscommand("command", "parameters")
Parameters
A string passed to the host application for any use, or a command passed to
command
Flash Player.
A string passed to the host application for any use, or a value passed to
parameters
Flash Player.
Returns
Nothing.
Description
Function; lets the SWF file communicate with either Flash Player or the program hosting Flash
Player, such as a web browser. You can also use the
Macromedia Director, or to Visual Basic, Visual C++, and other programs that can host
ActiveX controls.
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
function 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
ActionScript Language Reference
fscommand()
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)
CHAPTER 2
function to pass messages to
and
parameters
file
is always
handler in Flash Player.
fscommand()
true
305
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers