Hello, I'm having a heck of a time trying to get a number of external SWFs loaded into one main SWF in successive order, the next one playing after the other has ended. To complicate matters, the external SWFs have FLV files in them.
using Flash CS3
So, here's essentially what I'm looking to do:
- I have one main SWF file (call it main.swf)
- load several SWF files into this file so they play in order (let's call them movie1.swf, movie2.swf, movie3.swf, and so on)
- these external SWF files all have FLV progressive downloads (not embedded, becuase then my audio doesn't sync up)
- I want movie1.swf to load and play in the main file, then detect when the movie is complete, and unload that audio/video then load in movie2.swf, and so on.
This script seemed promising, but loads all of my SWFs on top of each other, making for some ::interesting:: audio...
(i have it pasted in actions on first frame in main.swf)
var a:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf");
tl["ldr_"+index].x=index*1000; // or whatever
Maybe there's some code that can be pasted in the individual SWFs? i dunno... please help!!
Any help is GREATLY APPRECIATED!!!! Thanks!
Is there any reason these FLV's all have to be in their own SWF? If not just load the FLV's into the same player one after another.
doghouseJim, thanks for the quick response.
The reason for the separate SWFs is because the individual SWFs are being pulled from a XML menu list individually so visitors can pick their video. But my client wants a "play all" feature to run through all of the SWFs if the visitor so chooses. Also, there's an animation at the beginning of each SWF, then to continue with the FLV, which also over-complicates things...