A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: one flash player multiple flv files

  1. #1
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101

    one flash player multiple flv files

    Hey guysm need some help with this one.

    My partner has asked if she can upload our babies video's to his website http://www.babybagley.co.uk

    She wants to be able to do the same thing as she does with the gallery, upload the file and when they click on it the overlay appears and the image is shown. Now this part is easy for me but what i need is this.

    I need to be able to have 1 swf file that holds the movie player, then whenever someone clicks on a movie it sends a request to a php file with the id number of that video, this is then fetched from a mysql backend and loaded into the film.

    The php and mysql backend is easy for me to do but I dont know how to alter the video players source as in where it plays the flv file from anyone got any ideas

  2. #2
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101
    I have managed to figure this one out, just use the built in FLV player, drag an instance of it onto the screen and give it an instance name of something like my_video.

    Then create an action layer and in the first frame add the following
    PHP Code:
    import fl.video.VideoPlayer;
    my_video.source "water.flv"
    Of course you would then change water.flv for an _root variable that is set on runtime to load a dynamic flv file in.

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