# Preloading an external Streaming Video

**URL:** https://forum.kirupa.com/t/preloading-an-external-streaming-video/201602
**Category:** flash
**Created:** [September 22, 2006, 10:00pm UTC](https://forum.kirupa.com/t/preloading-an-external-streaming-video/201602 "2006-09-22T22:00:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![willza](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@willza](https://forum.kirupa.com/u/willza)
#### Post date: [September 22, 2006, 10:00pm UTC](https://forum.kirupa.com/t/preloading-an-external-streaming-video/201602/1 "2006-09-22T22:00:41Z")

</div>

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.
