# Problem with Flash Preloader

**URL:** <https://forum.kirupa.com/t/problem-with-flash-preloader/11625>\
**Category:** Uncategorized\
**Created:** [January 20, 2003, 10:44am UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625 "2003-01-20T10:44:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindfire](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@blindfire](https://forum.kirupa.com/u/blindfire)\
**Post date:** [January 20, 2003, 10:44am UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625/1 "2003-01-20T10:44:28Z")

</div>

Okay, here’s the deal. I have this flash intro for a site of mine, but once I added music to the intro, it became a sizeable file and required a preloader. This is where I have run into problems. It seems that for some reason the expression I put in to make the movie wait to play goes unnoticed, and the movie continues right along, pausing in the middle because it didn’t finish preloading. ( I used

if(\_framesloaded \>= \_totalframes){  
gotoandplay(“start”)  
}

as my expression).

I then tried incorporating the preloader smart clip that I found as an example on the macromedia website. I saw how it worked, then changed the clip to use my art before the example movie, and it worked fine. Then, when I put it into my movie, the same non-load problem occured! What is going on here??

---

<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:** [January 20, 2003, 5:47pm UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625/2 "2003-01-20T17:47:59Z")

</div>

I am really not too font of the \_totalframes method of preloading movies. It doesn’t seem that accurate to me.

There are about 3 preloader tutorials on this site. You can use the text box in the upper right hand corner of this site to run a search for them, but if you do that, I warn you now… DO NOT USE THE PRELOADER COMPONENT… have a nice day 😛 :crazy:

---

<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:** [February 5, 2003, 4:09pm UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625/3 "2003-02-05T16:09:22Z")

</div>

I’m having the same problem as this person.

And for the record, I’m a little tired of people saying this or that isn’t a good way without giving an explanation why or at least another alternative besides “go check the search box” (which is what I just did to arrive at this).

It’s no wonder that this poor guy never came back.

When you’ve been trying to figure something out and you get very frustrated, an answer like this doesn’t help very much.

t2d

---

<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:** [February 5, 2003, 6:17pm UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625/4 "2003-02-05T18:17:34Z")

</div>

Explanation:

\_totalframes type preloaders go by what frame is loaded up to and therefore your whole file may not actually be loaded as far as bytes goes. This can cause lagging in your movie until your full movie actually loads. Where if you use a preloader that uses getBytesLoaded() and getBytesTotal() your preloader goes by your file size and not the frame amount.

Any help?

and BTW: I said to check the textbox search in the corner, you can search for preloaders or preload or whatever and come up with the multiple preloader tutorials that [kirupa.com](http://kirupa.com) has that offer different methods with explanations. And the search button on the forum will return a ton of results because we get about 52 preloader questions a day.

---

<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:** [February 6, 2003, 5:01am UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625/5 "2003-02-06T05:01:48Z")

</div>

I dnt use this method anymore either but this is it =)

on ur first frame

ifFrameLoaded (300) {  
gotoAndPlay(10);  
}

(assuming u have 300 frames and ur animation begins on the 10th frame)

Second Frame

gotoAndPlay(1);

=)

---

<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:** [February 6, 2003, 5:03am UTC](https://forum.kirupa.com/t/problem-with-flash-preloader/11625/6 "2003-02-06T05:03:31Z")

</div>

Yes, ifFramesLoaded is a possible answer for preloaders in Flash 5 (deprecated in Flash MX though).

But it works pretty much the same way as the \_totalframes method.
