Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: open
I need to take all these videos and set it up so that they will play one after another, and when it gets to the end of the last video it loops to the beginning and plays again. I'd like to set it up in a way that is flexible enough to add/remove/change a video without a lot of extra work or working on multiple files if I do make changes to a specific video.
I'm just not sure the best way to approach this. Suggestions? Is there a free script out there that will let me do this - that would be ideal. Otherwise, I have no problem putting it together myself, I just need some direction.
All you need is to have a flvplayback object on the stage... then with actionscript you can load each video and using the VideoEvent or VideoState, I can't remember which you can detect when the video is done playing at which time you load the next video.
Then using some recursion you should be able to loop to the start once all the videos have played.
I don't know of a defaulted script that does this but if you have more questions about making your own I will try to help.
I'm just not sure the best way to approach this.
You have one serious problem with stringing together video actually placed in the Flash - the entire thing must load (or at least a buffer full) before it will play. Your page is now weighted by the total size of the combined videos, instead of a 100K page, it will be multiple megabytes.
So I would suggest taking an externally loading Flash player and modify it to "loop" through your list of videos. When it gets to the end, depending on how you code this, you would either reset a counter to 0 or use goToAndPlay(1) to start at the first frame again.
EDIT: thought I had a mini-tut here, but it was for a slide show. The loop can be picked up from the concepts in the slide show, located here [webmasterworld.com], but you'd need to construct the external viewer into this.