O'Reilly logo

Learning ActionScript 3.0 by Zevan Rosser, Rich Shupe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Captions

Captions, also referred to in some contexts as subtitles, consist of text that is displayed synchronously during video playback. Captions are very useful for providing alternate language tracks to bring your video to a wider audience. Captions are also appreciated by the deaf and hearing impaired, as they provide a much needed accessible alternative for audio tracks when it comes to dialog and descriptive audio services.

The United States government passed a law, commonly known as Section 508 (because it is Section 508 of the Rehabilitation Act of 1973), which introduced certain accessibility mandates for content developed for government use. Many private entities, particularly those serving the educational markets, also require accessible content. As the demand for this requirement increases, captions will play an increasingly more important role in digital video.

Flash supports captioning via the FLVPlaybackCaptioning component, when used in conjunction with the FLVPlayback component. Adding the FLVPlaybackCaptioning component to the stage at authoring time, or dynamically at runtime with ActionScript, opens the door for caption use.

The simplest way to display captions is to use the FLVPlayback component itself. In fact, with only one FLVPlayback instance on stage at a time, the default behavior of the captioning component is to automatically detect the playback component, and target its internal text element as the destination for the captions. You can also manually specify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required