I wanted to clarify what I originally posted just in case that didn't make sense...
I need to have several FLVs play in one FLVplayback component. Here's what I've tried so far...
Created an FLA with the following layers:
- actions
- component
- customUIcomponents
- vidComponent
- interface
I added components to the following layers:
+ List component (instance named lbPicker) into the component layer
+ FLVplayback component (instance named cptPlayer) into the vidComponent layer
+ FLVplayback Custom UI components added into the customUIcomponents layer:
+ playPauseButton (instance named cptPlayPause)
+ stopButton (instance named cptStop)
+ seekBar (instance named cptSeek)
+ bufferingBar (instance named cptBuffer)
+ volumeBar (instance named cptVolume)
+ muteButton (instance named cptMute)
I added the following code to the actions layer:
Code:
import mx.video.FLVPlayback;
var cptPlayer:FLVPlayback;
cptPlayer.playPauseButton = cptPlayPause;
cptPlayer.stopButton = cptStop;
cptPlayer.seekBar = cptSeek;
cptPlayer.bufferingBar= cptBuffer;
cptPlayer.volumeBar = cptVolume;
cptPlayer.muteButton = cptMute;
function pickVideo(myVid:String): Void{
cptPlayer.contentPath = myVid;
}
lbPicker.change = function(evt:Object) {
pickVideo(evt.target.selectedItem.data);
}
I added the FLV filenames into the List (lbPicker) data parameter and the corresponding titles in the labels parameter...
When I compile and run the SWF, the information shows up in the List (lbPicker), but when I select one of the FLVs, it doesn't play
Any thoughts?