MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 537

Director scripting reference
Table of Contents

Advertisement

Description
Flash sprite command; invokes the Flash Settings dialog box to the specified panel index. This is
the same dialog box that can be opened by right-clicking (Windows) or Control-clicking
(Macintosh) on a Flash movie playing in a browser.
The Settings dialog box will not be displayed if the Flash sprite's rectangle is not large enough to
accommodate it.
If you want to emulate the Flash Player by invoking the Settings dialog box when a user right-
clicks (Windows) or Control-clicks (Macintosh), you can use this command in a
handler that tests for the
In order to emulate the Flash Player by enabling the Settings dialog box in a Director movie
running in a browser, you must first disable the Shockwave Player context menu that is available
by right-clicking (Windows) or Control-clicking (Macintosh) on a movie with Shockwave
content playing in a browser. For information on how to disable this menu, see the Using
Director topics in the Director Help Panel.
Parameters
integerPanelIndex
Valid values are 0, 1, 2, or 3. A value of 0 opens the dialog box showing the Privacy tab, a value of
1 opens it showing the Local Storage tab, a value of 2 opens it showing the Microphone tab, and
a value of 3 opens it showing the Camera tab. The default panel index is 0.
Example
This statement opens the Flash Settings panel with the Local Storage tab active:
-- Lingo syntax
sprite(3).settingsPanel(1)
// JavaScript syntax
sprite(3).settingsPanel(1);
See also
on mouseDown (event
setPref()
Usage
-- Lingo syntax
_player.setPref(stringPrefName, prefString)
// JavaScript syntax
_player.setPref(stringPrefName, prefString);
Description
Player method; writes the string specified by
on the computer's local disk.
The
stringPrefName
all platforms, use no more than eight alphanumeric characters for the file name.
After the
setPref()
created in the Plug-In Support folder. The
rightMouseDown
Optional. Specifies which panel to activate when the dialog box is opened.
handler), rightMouseDown,
argument must be a valid filename. To make sure the filename is valid on
method runs, if the movie is playing in a browser, a folder named Prefs is
setPref()
property or the
controlDown
controlDown
in the file specified by
prefString
method can write only to that folder.
mouseDown
property.
stringPrefName
setPref()
537

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents