# Loading a large file

**URL:** <https://forum.kirupa.com/t/loading-a-large-file/4447>\
**Category:** flash\
**Created:** [August 9, 2002, 7:02pm UTC](https://forum.kirupa.com/t/loading-a-large-file/4447 "2002-08-09T19:02:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VixenLady](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@VixenLady](https://forum.kirupa.com/u/VixenLady)\
**Post date:** [August 9, 2002, 7:02pm UTC](https://forum.kirupa.com/t/loading-a-large-file/4447/1 "2002-08-09T19:02:29Z")

</div>

Here we go again …

Okay so I have a main movie (intro page) and I want it to go load the external .swfs while playing through the intro.

Is this possible?

Here is what I have done so far:  
I linked the main swf to load the swf and then put a preloader on each external swf. But I hate that. Because you load the site and then get in the middle and have to load again.

I would rather have them move through the site while it is loading in the background.

Make sense?

Anyways thanks in advance,  
Vixie … who is not sure I worded that right 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2002, 7:52pm UTC](https://forum.kirupa.com/t/loading-a-large-file/4447/2 "2002-08-09T19:52:24Z")

</div>

Well you could load the external movies into movie clips that have the **\_visible = false;** script sent to it. But again this may affect your intro quality in matters of speed. Get what I am trying to say?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2002, 8:37pm UTC](https://forum.kirupa.com/t/loading-a-large-file/4447/3 "2002-08-09T20:37:32Z")

</div>

I DO understand it 🙂

Could I not then load each external .swf at different time intervals? So lets say that one loads and then 200 frames later another one loads and so on and so on … making each one invisable until I want to make them visable.

Right?

Vixie

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2002, 8:55pm UTC](https://forum.kirupa.com/t/loading-a-large-file/4447/4 "2002-08-09T20:55:09Z")

</div>

Sure…thats simple, lets say you want to load 3 external movies every 200 frames (named ‘movie\_1.swf’, ‘movie\_2.swf’, and ‘movie\_3.swf’), just make an empty movie clip and use this script on that clip:

```auto
**onClipEvent(load) {
     frame_counter = 1;
     movie_loader = 1;
}

onClipEvent(enterFrame) {
     if(i >= 200) {
          loadMovie("movie_" + movie_loader + ".swf", your_target);
          frame_counter = 1;
          movie_loader = 1;
     } else {
          frame_counter++;
     }
}**

```

Reply back to tell me if that description was good enough if not I’ll try again!
