Using ActionScript 3.0 Components |
|
|
|
| Using the FLVPlayback Captioning Component > Using the FLVPlaybackCaptioning component > Adding captioning to the FLVPlayback component | |||
You can add the FLVPlaybackCaptioning component to any FLVPlayback component. For information on adding FLVPlayback components to your application, see Creating an application with the FLVPlayback component.
To add the FLVPlaybackCaptioning component from the Components panel:|
NOTE |
Adobe provides two samples to help you learn the FLVPlaybackCaptioning component quickly: caption_video.flv (a FLVPlayback sample) and caption_video.xml (a captioning sample). Access these files at http://www.helpexamples.com/flash/video. |
|
NOTE |
To enable the CaptionButton component, you must drag it to the same stage as the FLVPlayback and FLVPlaybackCaptioning components. |
showCaptions to true.source of the Timed Text XML file to download.|
TIP |
While working in Flash to test your captions, you should set the |
Other parameters are available to help you customize the FLVPlaybackCaptioning component. For more information, see Customizing the FLVPlaybackCaptioning component and the ActionScript 3.0 Language and Components Reference.
To create an instance dynamically using ActionScript:|
NOTE |
The following example is for Adobe Flash CS3 for Windows. The location of FLVPlayback Skins on the Macintosh is Macintosh HD/Applications/Adobe Flash CS3/ Configuration/FLVPlayback Skins/ActionScript 3.0/SkinUnderPlaySeekCaption.swf. |
|
NOTE |
If you create an FLVPlayback instance with ActionScript, you must also assign a skin to it dynamically by setting the skin property with ActionScript. When you apply a skin with ActionScript, it is not automatically published with the SWF file. Copy the skin SWF file and the application SWF file to your server, or the skin SWF file won't be available when a user executes it. |
|
|
|
|