
I can select the movie I want to see, and then use the Play and
Pause
buttons to start and stop the playback. It is really this
easy to get started with video. From here you will likely want
to add controls to move the playback point around, and re-
spond to start and stop events generated by the control. But
that requires only a little more code and a few more controls.
Creating Better Movies
The previous movie viewer had only Play and Pause buttons.
Because video is such an important part of Flash work, I want
to present a few more examples of how to use the VideoDis
play component.
This next example will show how to have a single Play/Pause
button, how to build a scrubber to control the play head, and
how to add a Rewind button. The code for this appears in
Example 6-11.
Example 6-11. Bettermovie.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
Figure 6-9. The simple multimovie player
Creating Better Movies | 95
Comentários a estes Manuais