ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > Using the FLVPlayback component > Creating an application with the FLVPlayback component | |||
You can include the FLVPlayback component in your application in the following ways:
contentPath parameter. attachMovie() method to dynamically create an FLVPlayback instance on the Stage, assuming the component is in the library.
To drag the FLVPlayback component from the Components panel:contentPath parameter in the Parameters tab of the Component inspector, and enter a string that specifies one of the following:
For information on how to create an XML file to describe one or more FLV files, see Using a SMIL file.
|
NOTE |
In the first two cases, a preview of the skin appears in the viewing pane above the pop-up menu. |
To use the Video Import wizard:|
WARNING |
Do not select the Embed Video option. The FLVPlayback component plays only external streaming video. This option will not place an FLVPlayback component on the Stage. |
|
NOTE |
In the first two cases, a preview of the skin appears in the viewing pane above the pop-up menu. |
To create an instance dynamically using ActionScript:install_drive to the drive on which you installed Flash and modify the path to reflect the location of the Skins folder for your installation:
import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:320, height:240, x:100, y:100});
my_FLVPlybk.skin = "file:///install_drive|/Program Files/Adobe/Adobe Flash CS3/en/Configuration/FLVPlayback Skins/ActionScript 2.0/ClearOverPlaySeekMute.swf"
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
The attachMovie() method belongs to the MovieClip class. You can use it create an instance of the FLVPlayback component because the FLVPlayback class extends the MovieClip class.
|
NOTE |
Without setting the |
|
|
|
|