;

PDA

Click to See Complete Forum and Search --> : Multiple Video Choice


RaggyCoan
05-14-2004, 12:13 PM
Hi All

I 've just started looking at video with MX 2004 Pro, using the MediaPlayback component. I can get videos to paly when I set the filename in the parameter, but how do I go about setting the required movie to play from say a range of buttons so that the user has the choice which video to play? I have named the component MovieView, but as I'm new to this, I require some help how to create a function that will pass the path and name of the movie to play to the MediaPlayback component. Had a look in the help files but dont seem to see any thing that will allow me to set the file name to play.

Heres hoping that you can help.

Raggy

Dene
05-14-2004, 07:11 PM
I've just had a scan of the Flash help docs and you're right there doesn't seem to be any info on loading movies in to the MediaDisplay component dynamically.

You could try a component I have made which has the function you are looking for. Say you've named an instance of the component 'myPlayer'. The following function can be used to load in new FLVs on the fly:

myPlayer.loadMovie("myVideo.flv");

The component is called FLV Stream Control (http:/meshybeats.com/components)

If you haven't created your FLV with macromedia's latest Exporter (http://www.macromedia.com/devnet/mx/flash/video.html), you should use the free flv duration (http://www.swfx.org/flv-duration/) tool on the FLV to make it fully controllable and compatible with the component.