MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuel d'utilisateur Page 111

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 148
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 110
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
Vue de la page 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 147 148

Commentaires sur ces manuels

Pas de commentaire