# Preloader Question

**URL:** <https://forum.kirupa.com/t/preloader-question/29406>\
**Category:** Uncategorized\
**Created:** [August 26, 2003, 2:44pm UTC](https://forum.kirupa.com/t/preloader-question/29406 "2003-08-26T14:44:51Z")\
**Posts on this page:** 12\
**Page:** 2

<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 28, 2003, 3:05pm UTC](https://forum.kirupa.com/t/preloader-question/29406/21 "2003-08-28T15:05:47Z")

</div>

Your play() action is _in_ the preloader’s code, so you are not going to need another one. ie

```auto

if (getBytesLoaded == getBytesTotal){
gotoAndPlay(3);
//there it is!
}

```

That should be on the code of your first frame, the second frame should just say gotoAndPlay(1); so that it goes in a loop and asks if the preloader code is done yet, or not.

Other than that. Check if your external movies preloader codes have \_root on them. If so, \_root means the main timeline so when it checks to see if the MAIN movie is loaded, of course it will be - then it will ignore your preloader altogether.

Check that stuff out then get back to us!! Good luck!!

---

<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 29, 2003, 2:20pm UTC](https://forum.kirupa.com/t/preloader-question/29406/22 "2003-08-29T14:20:31Z")

</div>

Your right i do have \_root in the other movies  
What do i replace \_root with so that it doesnt check the main time line??

---

<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 29, 2003, 6:44pm UTC](https://forum.kirupa.com/t/preloader-question/29406/23 "2003-08-29T18:44:40Z")

</div>

just take them all out. That way Flash will go to the timeline that has the code - no where else. Just make sure you get rid of them all.

---

<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 29, 2003, 8:22pm UTC](https://forum.kirupa.com/t/preloader-question/29406/24 "2003-08-29T20:22:06Z")

</div>

Oh you have scenes ! OMG I totally missed that ! Sorry 😊

---

<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 29, 2003, 9:19pm UTC](https://forum.kirupa.com/t/preloader-question/29406/25 "2003-08-29T21:19:39Z")

</div>

I understand what your saying Freddy but i need a preloader to start all of the files!! Not only the first one.

So can i still just take the \_root out and xpect it to work where ever its placed??

---

<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 29, 2003, 9:41pm UTC](https://forum.kirupa.com/t/preloader-question/29406/26 "2003-08-29T21:41:14Z")

</div>

I haven’t looked at your fla, so I don’t know what Voetsjoeba is talking about, but I did look at the link to the site. Yes, if you are loading in seperate movies, you don’t have to replace \_root. with anything. This is how I do it and it always works.

Speaking of Voetsjoeba - what’s that picture of on your footer, I can’t figure 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 30, 2003, 1:13am UTC](https://forum.kirupa.com/t/preloader-question/29406/27 "2003-08-30T01:13:40Z")

</div>

Ok, i’ll give that a try and see what happens.

I think his footer has something to do with ICE??

---

<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 30, 2003, 6:11am UTC](https://forum.kirupa.com/t/preloader-question/29406/28 "2003-08-30T06:11:03Z")

</div>

Lol, they’re bells of air under water =)

---

<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 31, 2003, 4:59am UTC](https://forum.kirupa.com/t/preloader-question/29406/29 "2003-08-31T04:59:29Z")

</div>

OK guys,

Its still not working. I tried removing the \_root from files and it didnt do a thing.

Could it be cause im using scenes?

Oh boy this is starting to get frustrating

---

<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 31, 2003, 5:26am UTC](https://forum.kirupa.com/t/preloader-question/29406/30 "2003-08-31T05:26:23Z")

</div>

On your externals, on 1st frame instead of:[AS]if (this.getBytesLoaded()\>= this.getBytesTotal()) {  
\_root.gotoAndPlay(“loaded”);  
}[/AS]  
You should use:[AS]if (this.getBytesLoaded()\>= this.getBytesTotal()) {  
**this**.gotoAndPlay(“loaded”);  
}[/AS]And on frame 2 use:[AS] **this**.gotoAndPlay(“check”);[/AS]

---

<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:** [September 1, 2003, 2:44pm UTC](https://forum.kirupa.com/t/preloader-question/29406/31 "2003-09-01T14:44:56Z")

</div>

Ok guys, i tried claudio suggestion but that didnt work either!!

Could it be the scenes?  
Is there any other way i can try this???

---

<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:** [September 3, 2003, 12:22am UTC](https://forum.kirupa.com/t/preloader-question/29406/32 "2003-09-03T00:22:31Z")

</div>

Has everyone run out of ideas???

[Previous page](https://forum.kirupa.com/t/preloader-question/29406.md?page=1)
