
ADOBE DIRECTOR 11.0
User Guide
211
To display the Flash Settings panel, use the following script:
sprite(flashSpriteReference).settingsPanel(integerWhichTabToDisplay)
For more information about the parameters for this method, see the Scripting Reference topics in the Director Help
Panel.
You can invoke the Settings panel by allowing the user to click a button on the Stage that opens the panel. In this case,
use the
settingsPanel()
method in a
mouseUp
or
mouseDown
handler attached to the button sprite. You can use
the
settingsPanel()
method at any other time to open the panel, depending on how you want to make the
panel available.
Emulating the Flash Player context menu in Shockwave Player
To allow users to access the Settings panel by right-clicking (Windows) or Control-clicking (Mac) on your Flash
sprite when your movie is playing in a browser, you must first disable the context menu that is built into the
Shockwave Player. After the Shockwave Player context menu is disabled, trigger the Flash Settings panel by right-
clicking (Windows) or Control-clicking (Mac).
1
Select File > Publish Settings.
2
Click the Html tab.
3
Deselect the Display Context Menu in Shockwave option. This sets a parameter named
swContextMenu
in the
Shockwave
<Object>
and
<Embed>
tags to
FALSE
.
4
Click OK.
5
Save your movie. Your Publish Settings are saved with the movie.
Once you have disabled the Shockwave Player context menu, you can attach a
mouseUp
handler to your Flash sprite
that tests for the
rightMouseDown
property or the
controlDown
property. In Windows, you can choose to write an
on rightMouseUp
handler.
The handler might look like the following:
on mouseUp
if the rightMouseDown or the controlDown then
sprite(1).settingsPanel(0)
end if
end
or
on rightMouseUp
sprite(1).settingsPanel(0)
end
You can also choose to use ActionScript in your Flash content to enable the Settings panel. For more information,
see the Flash documentation.
Playback performance tips for Flash content
Performance of Flash content can vary greatly depending on the options in effect and the playback environment. Use
the following tips to obtain optimal playback performance from Flash:
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...