- Catalyst and Interactivity
- Embedding Media in Catalyst
- Defining Custom Player Controls
- Generating a Web Page
- Wrapping Up
Embedding Media in Catalyst
There are two basic elements of custom-player video (or audio): the media itself and the controls. The first part of the process of creating a custom player is embedding the media into a Flash Catalyst project. To do that, follow these steps:
- Create a new Flash Catalyst project. From the splash screen, click Adobe Flash Catalyst Project. If you already have another Flash Catalyst file open, choose File > New Project.
- In the New Project dialog, enter player in the Name box, and leave the default settings of 800 pixels (Width) by 600 pixels (Height). Change the background color to brown (see Figure 1).
- Click OK in the New Project dialog to generate the new Catalyst project.
- Choose File > Import > Video/Sound File. In the Import dialog, navigate to an FLV or FV4 video (or an MP3 audio file), and click Open. The video file (or a player for the audio file) appears on the Catalyst artboard. Click and drag to position the video (or audio player) where you want it.
- In the Properties panel for the selected video, expand the Common category and examine the options, including the self-explanatory Auto Play, Loop, and Muted checkboxes. (Don't check any of these options.) In the Accessible Text box, enter a description to be displayed in environments that don't support Flash. For example, in Figure 2 I've entered the accessible text Video, which will display in devices that don't support Flash. This message indicates to the visitor that a video goes there, even if it isn't playable in the user's browsing environment.
Figure 1 Defining the new project.
By default, two sets of prefab controls are available in the Video Controls list: Wireframe or Standard. Since we'll be defining custom video controls, select None.
Figure 2 Select None for preset video controls.
Feel free to experiment with other video properties, but the default settings work fine for purposes of this article. Our video is now embedded, but stripped of any player controls. We'll create those next.