Click to See Complete Forum and Search --> : Playing Multiple Movies in Flash


jamesleslie
02-06-2007, 11:39 AM
Hi,

This is probably a dumb question as i really don't know flash (i work with css primarily) but i have a series of short avi files that i want to embed on a web page as swfs.
There is a 'main' video that i want to loop that is about 3 secs long, and then a series of different introductions videos that are around 1-1.5secs long.
What i really want to do is get it so that i can load a swf in that will call an introduction to play through once and then loop the 'main' movie afterwards.

Is this feasible to do, and do i need to actionscript it? is there any way i can use the cached 'main' movie (it will load on the page the first time it is opened as a default state) for the loop or will i have to create an swf with each introduction followed by the main movie individually?

Many thanks for any responses, i hope it makes sense!

infinityspiral
03-03-2007, 09:44 PM
The least technical way would be to first add the intro video to each other video in an editing program and then use Flash Video Encoder to output each of these files to flv format. You can then use flash to create a player for each one of these videos. This really isn't very scalable or effecient, but it's a brute force approach that's easy and it works.

The better method is to set a cue point at the end of your intro video when using Flash Video Encoder that you'd later link up with some actionscript that would trigger the loading of the desired video. If you assign the desired video filename to a variable within the html you will only have to create one swf and you can load the 3 trailing videos in just using your html.

Chris
www.infinityspiral.com (http://www.infinityspiral.com/)

jamesleslie
03-05-2007, 05:22 AM
Thanks Chris.
I managed to get this up and running by playing converting to flv, playing one and then checking for when it had finished and looping the second. Seems to be working properly now.
Thanks for the help though :)

infinityspiral
03-05-2007, 08:02 AM
Great. Send a link when you get a chance :)