# Probably the 1000000000th preloader question

**URL:** <https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522>\
**Category:** flash\
**Created:** [August 3, 2003, 5:19pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522 "2003-08-03T17:19:57Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![skidpanda](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@skidpanda](https://forum.kirupa.com/u/skidpanda)\
**Post date:** [August 3, 2003, 5:19pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/1 "2003-08-03T17:19:57Z")

</div>

Hi there, hopefully someone can help me with this,

What I’ll have eventually is a main.swf, and about 8 external.swf’s loadmove-ing into the main.swf. But I want to preload the external swf’s.

1. So the main.swf loads.
2. The user presses a menu button. For example an ‘about’ section.
3. The about.swf will preload (the loadbar will appear), then start playing the movie once loaded.
4. The movie will fade in the picture and then stop.
5. When the user picks another menu option, I want the current movie to start playing so it fades out.
6. Then the new external.swf will preload and then play.

Its just basically so I can have my sections load in, then load out once another selection has been made. I can already do this with code I have but not to work with a preloader bar.

I’ve tried to get it to work but the preloader bar doesnt appear.

I had a look at claudios example, but its not really what i’m after. I’ve searched the board for help too.

Heres my file of what i’ve tried so far, [http://www.hubl.co.uk/preloader.zip](http://www.hubl.co.uk/preloader.zip)

I know its alot to ask but hopefully someone can have a quick look and tell me where i’m going wrong.

Cheers 🙂

---

<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 3, 2003, 5:24pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/2 "2003-08-03T17:24:18Z")

</div>

I wrote a tutorial on the exact effect that you want, but I’m only not sure if the preloader that I added will work. So this is a great chance to test if the preloader from my tutorial works. You can find it [here](http://users.pandora.be/voetsjoeba/kirupa/trans.htm). And if the preloader doesn’t work, you’d still have the effect =)

[EDIT] Oh, bummer, you already have the effect :P[/EDIT]

---

<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 3, 2003, 5:28pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/3 "2003-08-03T17:28:40Z")

</div>

The preloader in your FLA works fine for me =)

---

<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 3, 2003, 5:53pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/4 "2003-08-03T17:53:52Z")

</div>

Yeah but then click the other button which loads another section, the preloader doesnt appear for the 2nd button you press.

The bar is supposed to re-appear and preload the 2nd section then play it.

Thanks alot for checkin it out

---

<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 3, 2003, 6:16pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/5 "2003-08-03T18:16:33Z")

</div>

I think I got it to work.

---

<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 3, 2003, 6:21pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/6 "2003-08-03T18:21:54Z")

</div>

Yeah that works, but the currently loaded movie doesnt play out. When a user loads the first movie it fades in. Then when they press the other button, the movie should just fade out, then preloader the new movie and fade it in.

See what I mean? If not i’ll try explain better,

Cheers!🙂

---

<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 3, 2003, 6:54pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/7 "2003-08-03T18:54:46Z")

</div>

Oh, sorry. Lemme see about that.

[EDIT] I know the problem, but to solve it I’d need the FLA’s of the external swf’s. I’m gonna use the external SWF that came with the zip.

Almost done …[EDIT]

---

<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 3, 2003, 7:19pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/8 "2003-08-03T19:19:11Z")

</div>

Done =) It works perfectly now, although the preloader will only show up for a split second because of the low filesize of the external SWF’s.

---

<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 3, 2003, 7:29pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/9 "2003-08-03T19:29:06Z")

</div>

Thats superb, thanks very much!!

---

<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 3, 2003, 7:32pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/10 "2003-08-03T19:32:16Z")

</div>

You’re welcome 😉

---

<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 3, 2003, 7:44pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/11 "2003-08-03T19:44:03Z")

</div>

Hello again haha, i’m maybe chancing my luck a bit but…

The zip you provided is great if there are only 2 menu options, but I want to be able to have many menu options, as I stated in my inital post.

‘What I’ll have eventually is a main.swf, and about 8 external.swf’s’

When it comes to the end of one of the external.swf’s the actionscript points to the other swf. But if there were more than two externals? Do you see my problem?

Sorry about this, all your help is much appreciated! I dont mean to be ungrateful.

Cheers

---

<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 3, 2003, 8:26pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/12 "2003-08-03T20:26:00Z")

</div>

Workin’ on it 🙂

[EDIT]  
It’s working, now all is left is routine work.

– Done. Zipping files …  
[/EDIT]

---

<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 3, 2003, 8:40pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/13 "2003-08-03T20:40:55Z")

</div>

Here it is 🙂 Can I turn this into a tutorial ? Then it would be a “Advanced Full Flash Site” :beam:

---

<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 3, 2003, 8:47pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/14 "2003-08-03T20:47:05Z")

</div>

Yeah go for it!

Just so long as you mention me & ‘oldnewbie’ from the flashkit forums, I altered his code to make the original zip file you saw.

So in this new version, is it simple enough to add more than 8 externals if need be? Im just having a look at it just now, so i’ll probably find out! looks good, well done!

🙂

EDIT: Oh and just a tiny tiny thing, how about if you didnt want an external file to load initially, only on the first button press?

---

<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 3, 2003, 8:50pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/15 "2003-08-03T20:50:01Z")

</div>

Very simple ! All you have to do is create a new SWF (with the set-up of the other ones) copy a button, and change two numbers. =)

G2G !

---

<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 3, 2003, 8:54pm UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/16 "2003-08-03T20:54:50Z")

</div>

Yeah i had a look, great work! People having been asking how to load external swfs with a loadbar for a while now, finally there is an answer!

:thumb:

---

<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 4, 2003, 7:21am UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/17 "2003-08-04T07:21:17Z")

</div>

That’s why I wanted to create a tutorial about it =)

> 

EDIT: Oh and just a tiny tiny thing, how about if you didnt want an external file to load initially, only on the first button press?

Only takes a little adjustment … I’m gonna attach the modified FLA in a minute 🙂

---

<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 4, 2003, 7:36am UTC](https://forum.kirupa.com/t/probably-the-1000000000th-preloader-question/27522/18 "2003-08-04T07:36:37Z")

</div>

Here it is =) Ah, something I forgot to tell you: when you have a look at the FLA you’ll see that on the buttons, there’s this AS:

[AS]  
\_root.curmovie = “external1”;  
[/AS]

This is a name given to the first external movie. You have to make sure that the filename of the swf you want to load has to be this variable.swf. So if you’d change this value to “home”, you have to change the filename of your swf to “home.swf”. If you stick to that, it’ll work fine =)
