How to Embed Video on the Timeline in Adobe Flash CS6
For most purposes, linking to a video file is the best way to place a video in your movie in Adobe Flash CS6. However, on occasion you’d like your video to be more integrated with the rest of your content, such as when you’re timing an animation to match events in the video.
In these cases, you can place video directly on the Timeline as a movie clip or sequence of frames. The approach is similar to linking video, but you don’t work with the FLVPlayback component.
In this approach, video content is copied directly into your movie, which can add significant file size (and in turn loading time) to your final published SWF.
To import and embed video directly into your movie, follow these steps:
In a new or existing Flash document, choose File→Import→Import Video.
The Import Video dialog box appears.
Within the Import Video dialog box, leave the On Your Computer option selected and choose Embed FLV in SWF and Play in Timeline.
Click Browse, locate the video file you’d like to import, and click OK.
Just as with linked video, if you choose a non–Flash-compatible video file, you’ll be prompted to encode the file in the AME. If so, click the Launch Adobe Media Encoder button at the bottom of the dialog box to launch the AME and follow these steps:
The Adobe Media Encoder application launches. On the left side is the queue, where you’ll drag videos you’d like to encode for Flash.
On your local file system, locate the file you’re trying to import and drag it into the queue window.
In the queue, the target file format and settings are listed under the video file. Select FLV as the file format in the Format drop-down list on the far left of the line. Leave the remaining settings, which should read Match Source Attributes (High Quality).
Click the Start Queue button or simply press the Return/Enter key to start encoding the video.
Unlike linked video, it’s necessary to encode video in FLV format for embedding on the Timeline.
A chime should sound when encoding is successfully completed.
Switch back to Flash CS6.
The Import Video dialog box should still be open. If not, repeat Steps 1–3.
Once again, click Browse and locate the newly encoded FLV file, which should be in the same directory as the original. Click OK/Open and then click Next at the bottom of the dialog box.
On the Embedding screen, leave all check boxes selected. Under the Symbol Type drop-down list, make sure Embedded Video is selected.
You can also select Movie Clip if you’d like to place this video in more than one location in your movie, but you won’t see the length of the video represented on the main Timeline.
Click Next to advance to the Finish Video Import screen and then click Finish to complete the import.
You see the video spanned across the Timeline, much like a frame-by-frame animation. You can now insert layers on the Timeline and add more content, such as animations, if you’d like.