ABSTRACT

The CutsceneManager extends the Sprite class, so it can easily be added to the Stage like any other DisplayObject. Because it uses video, it needs not only the Video class but the NetConnection and NetStream classes, as well. Some examples I’ve seen import the entire events package (import fl ash.events.*), but for this example I’ve added each of the necessary events manually. Finally, we’ll include the KeyboardEvent and Keyboard classes so we can bind a key to skip the video — a handy feature that prevents players from having to potentially sit through a video over and over again.