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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...