
</mx:Canvas>
<mx:HBox>
<mx:Button id="btnPlay" label="Pause" click="onPlay()" />
<mx:Button label="Rewind" click="{cntlDisp.playheadTime =
0;}" />
</mx:HBox>
</mx:Application>
The UpdateUI
method monitors the position of the play head
and then shows or hides the overlay text depending on where
the movie is in its playback. The overlay itself has a black back-
ground with an alpha so that you can still see the video through
the overlay (see Figure 6-11).
Using the powerful states and transitions in Flex, you could
easily have the cue pop out from below the video and then
recede when the cue is no longer applicable.
Figure 6-11. A cue overlaid on top of the video display
Creating Better Movies | 99
Komentáře k této Příručce