Official website for Web Designer - defining the internet through beautiful design
FOLLOW US ON:
Author: Mark Billen
2nd February 2010

Flash Week | Day #2 – Flash Captions

06 A new Flash document

06 A new Flash document

Flash Week | Day #2 – Flash Captions

Open Flash CS4 and create a new ActionScript 3.0 Flash file. In the Properties panel click on the Edit button next to the size to change the dimensions to 720 pixels wide by 490 pixels high, then click OK. Open the components window and drag the “FLVPlaybackCaptioning” component to the stage.

07 Position the component

Flash Week | Day #2 – Flash Captions

This component is invisible when published so it doesn’t really matter where we place this. However, so that we can get easy access to it later on position it just off the stage on the right. This component automatically connects itself to any video in any FLVplayback component on the stage.

08 Add the video

Flash Week | Day #2 – Flash Captions

Go to the File menu and choose Import>Import video. The Import video window will pop up on your screen, click the Browse button and choose the file “caption_demo.mov”. Click Continue and you will be prompted for a skin, choose “skinUnderPlaySeekCaption.SWF” then click Continue again and this will import the video.

09 Position on the stage

Flash Week | Day #2 – Flash Captions

With the video on the stage selected, change its position to 0 pixels in the x and y axis from the Properties panel. On the stage select caption component and in the component inspector change the source to “captions.xml”. Now save the Flash file in the same folder as mentioned in step one.

10 Publish the file

Flash Week | Day #2 – Flash Captions

Press Ctrl+Return on the keyboard to test the SWF. You should see the captions being displayed at the bottom of the video while the video is playing. If you managed to get the timing right, it should be very successful. The only slight drawback is that the text is very small, so let’s change that.

Pages: 1 2 3

  • Tell a Friend
  • Follow our Twitter to find out about all the latest web development, news, reviews, previews, interviews, features and a whole more.

    What's your opinion?

    Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

    Be nice. Keep it clean. Stay on topic. No spam.

    * Required fields