Chapter 11
312
Emulating the Flash Player context menu in Shockwave
You might decide that you want to allow users to access the Settings panel by right-clicking
(Windows) or Control-clicking (Macintosh) on your Flash sprite when your movie is playing in a
browser. To do this, you must first disable the context menu that is built into the Shockwave
Player. After the Shockwave context menu is disabled, you can trigger the Flash Settings panel by
right-clicking or Control-clicking.
To disable the Shockwave context menu:
1
Select File > Publish Settings.
2
Click the Shockwave Save 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 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 just 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 movie to enable the Settings panel. For
more information, see the Macromedia Flash MX documentation.
Playback performance tips for Flash movies
Performance of Flash movies can vary greatly, depending on the options in effect and the playback
environment. The following are tips for getting optimal playback performance from Flash:
•
If adequate for your needs, use the Low quality setting rather than High. Using Low turns off
anti-aliasing, which speeds up Flash animation rendering. A handy technique is to switch the
quality of the sprite to Low while displaying a fast-moving animation sequence (such as a
spinning logo), and then switch the quality back to High on the fly as the animation slows
down or comes to a stop. This way, performance can be improved during the part of the
sequence where it would be more difficult to perceive the improved quality anyway, without
sacrificing quality in the end result.
•
Experiment with different system color depths to see what provides the best performance. For
example, some graphics, such as gradients, display faster at 16 bits.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...