Game Development Reference
In-Depth Information
a menu can be much more dynamic and hold players
visual interest
enough to get them into the game. Because these two uses of video
are passive, or noninteractive, it makes the most sense to load the
video files externally rather than embedding them in the game SWF.
ll now discuss how to encode the video and after that how we
load that video and play it as a cutscene using ActionScript.
Encoding a Cutscene
Adobe has replaced the Flash Video Encoder that came with earlier
versions of Flash with the far more robust and completely rede-
signed Media Encoder. It takes any video, audio, or image sources
and converts them into one of the basic Flash-compatible video for-
mats. It can be intimidating to use at first, as there are many options
to consider. Luckily, most of the presets will work well for our needs,
some with only minor modifications. We
ll now walk through the
process of encoding a couple of videos using different settings,
based on how we would use the video in a game.
To walk through this example, you
ll need the video support files
for this chapter from this topic
s Web site. Since it comes with
Flash CS5 and CS5.5, I
ll assume you have the Media Encoder.
Launch the program and drag the video file named
into the program. This will add it to the list of media to be encoded.
columns of settings. Second from the left is the Format column. If it is
not already set to FLV/F4V, toggle it to that setting now. To the right
Figure 9.2 The Adobe Media
Encoder offers a wide range of
presets so that you don't have
to tweak every setting by
hand, unless you want to.
Search Nedrilad ::

Custom Search