MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 57

Actionscript 2.0 language reference
Table of Contents

Advertisement

Usage 3: The
fscommand()
messages are interpreted by Lingo (the Director scripting language) as strings, events, or
executable Lingo code. If a message is a string or an event, you must write the Lingo code to
receive the message from the
more information, see the Director Support Center at www.macromedia.com/support/
director.
Usage 4: In VisualBasic, Visual C++, and other programs that can host ActiveX controls,
sends a VB event with two strings that can be handled in the environment's
fscommand()
programming language. For more information, use the keywords "Flash method" to search
the Flash Support Center at www.macromedia.com/support/flash.
Note: If you are publishing for Flash Player 8 or later, the ExternalInterface class provides
better functionality for communication between JavaScript and ActionScript (Usage 2) and
between ActionScript and VisualBasic, Visual C++, or other programs that can host ActiveX
controls (Usage 4). You should continue to use
Player (Usage 1) and Macromedia Director (Usage 3).
Availability: ActionScript 1.0; Flash Player 3
Parameters
- A string passed to the host application for any use, or a command passed
command:String
to Flash Player.
parameters:String
Flash Player.
Example
In the following example,
monitor screen size when the
this.fullscreen_btn.onRelease = function() {
fscommand("fullscreen", true);
};
this.unfullscreen_btn.onRelease = function() {
fscommand("fullscreen", false);
};
The following example applies
a JavaScript message box in an HTML page. The message itself is sent to JavaScript as the
parameter.
fscommand
function can send messages to Macromedia Director. These
fscommand()
- A string passed to the host application for any use, or a value passed to
sets Flash Player to scale the SWF file to the full
fscommand()
fullscreen_btn
fscommand()
function and carry out an action in Director. For
for sending messages to Flash
fscommand()
or
unfullscreen_btn
to a button in Flash for the purpose of opening
button is released:
Global Functions
57

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?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF