A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Multiple Video Choice

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    Doncaster, UK
    Posts
    6

    Multiple Video Choice

    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

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    London
    Posts
    361
    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:

    Code:
    myPlayer.loadMovie("myVideo.flv");
    The component is called FLV Stream Control

    If you haven't created your FLV with macromedia's latest Exporter, you should use the free flv duration tool on the FLV to make it fully controllable and compatible with the component.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center