# Preloading an external flv

**URL:** <https://forum.kirupa.com/t/preloading-an-external-flv/141857>\
**Category:** Uncategorized\
**Created:** [March 23, 2005, 7:31pm UTC](https://forum.kirupa.com/t/preloading-an-external-flv/141857 "2005-03-23T19:31:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![innovations](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/innovations/32/1200_2.png) [@innovations](https://forum.kirupa.com/u/innovations)\
**Post date:** [March 23, 2005, 7:31pm UTC](https://forum.kirupa.com/t/preloading-an-external-flv/141857/1 "2005-03-23T19:31:02Z")

</div>

I would like (truly, I desperately need) to preload an external flv file into my main swf movie. I am using the NetConnecction thingy to trick Flash into thinking that I an streaming from the flash comunication server. This way I do not have to use mm’s large media display component. Here is my code:

```auto
//tell the preloader to start preloading this timeline
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(3);
vid.attachVideo(ns);
ns.play("flashvideo_movie.flv");
vidlength=8.17; // set the duration in seconds of your flv
playStatus = true;

```

How can I make a preloader to load this external flv? Can I make the main site movieClip preloader also preload the external flv (that would be even better)?

Here is the website that I am designing:  
[http://hourofthewitch.com](http://hourofthewitch.com)

Thanks for your help, I hope I meet my deadlines on this one!

Aaron
