Hi, I’m relatively new to Flash and will most likely sound like an idiot while explaining my problem. I apologize for this in advance.
I’m trying to create a site that loads random streaming video clips as the central element when the homepage loads.
For each clip I
imported the video,
an flv is created,
i export the swf file.
each swf file is named in a numerical fashion, 1.swf, 2.swf, 3.swf etc.
Then in my main movie, I have a FLVPlayback component that I’ve placed this code on:
onClipEvent(load){
var numMovies = 2;
loadMovieNum( Math.ceil(Math.random()*numMovies)+".swf", 0);
}
This works just fine. I’m sure it’s not a very good way to do it, but for me, it’s just nice to see it working.
Ok, here is my question. There is most definitely a big one to two second or so long pause before each clip starts to play, and that’s with broadband. I was assuming that there would be a way for me to preload these clips (or rather the initial 36K file size of the swf file). I’ve built a bunch of preloaders that work great for images and regular clips, but the streaming video just seems to break them.
I would really appreciate any advice. Thanks so much in advance.