# I am in a muddle about this preloader

**URL:** <https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570>\
**Category:** Uncategorized\
**Created:** [November 15, 2003, 12:26pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570 "2003-11-15T12:26:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![buzzby](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@buzzby](https://forum.kirupa.com/u/buzzby)\
**Post date:** [November 15, 2003, 12:26pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/1 "2003-11-15T12:26:57Z")

</div>

please someone help me. i am stuck. i have a movie that is 1 frame long. all actions, attachments and so on happen on that 1 frame. everything is loaded into \_level0. i need a preloader for the movie. the preloaders i have used all show when 90% of the movie has already been loaded. i there4 need a to develop a separate movie to call the main movie. the separate movie is to be the preloader movie.

please help me in developing this movie. i know i need to use ‘loadmovienum’ parameter. i also want to use the ‘getbytes’ parameter aswell.  
what do i need to do in order for this 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:** [November 15, 2003, 1:26pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/2 "2003-11-15T13:26:57Z")

</div>

Whats your code for your preloader?? There are lots in the tutorial section and all over the site if all you need is how to make a preloader…

---

<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:** [November 15, 2003, 1:55pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/3 "2003-11-15T13:55:45Z")

</div>

this is the code for my preloader movie

frame 1  
loadMovieNum(“index2.swf”, 1);

frame 2  
nothing

frame 3  
actBytes = \_level1.getBytesLoaded() || 0;  
totBytes = \_level1.getBytesTotal() || 100;  
percent = Math.round(actBytes \* 100 / totBytes);

if( totBytes - actBytes \> 10){  
bar.\_xscale = percent;  
gotoAndPlay(2)  
}

frame 4  
stop();

as you can see the preloader is suppose to load the main movie (index.swf). while it is doing so the preloader should do its thing

[http://www.dcobbinah.co.uk/bridgette](http://www.dcobbinah.co.uk/bridgette)

some say it works others say it doesnt. when i test it it doesnt work. not sure if it only works mx 2004 actionscript 2.0 and flash player 7

i m using mx with flash player 6 and it doesnt seem 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:** [November 15, 2003, 2:01pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/4 "2003-11-15T14:01:06Z")

</div>

Who says the preloader works?? It shouldn’t because there isn’t a stop sign from frame 3 to 4, so it should just go straight to 4. Anyways, like i said:

preloader tutorials here at kirupa:

[http://search.atomz.com/search/?sp-a=00040c2f-sp00000000&sp-f=iso-8859-1&sp-q=preloader](http://search.atomz.com/search/?sp-a=00040c2f-sp00000000&sp-f=iso-8859-1&sp-q=preloader)

and lots on the forum search…

---

<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:** [November 15, 2003, 2:33pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/5 "2003-11-15T14:33:20Z")

</div>

no where in that link you gave does it have a tute about a preloader loading a different swf. it talks about loading movie on the next frame. different types of loading and thats it. notihng to say 'this is a tutorial to teach you how to have one swf/file be a preloader for another swf/file.

anyone who can point me in that particular direction i would be most grateful

---

<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:** [November 15, 2003, 2:38pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/6 "2003-11-15T14:38:10Z")

</div>

Then you could’ve tried typing something else in the search…

[http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)

---

<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:** [November 15, 2003, 3:47pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/7 "2003-11-15T15:47:18Z")

</div>

> \*Originally posted by buzzby \*  
> \*\*  
> anyone who can point me in that particular direction i would be most grateful \*\*

I think that this is what you are after.

[http://www.kirupaforum.com/forums/attachment.php?s=&postid=359643](http://www.kirupaforum.com/forums/attachment.php?s=&postid=359643)

---

<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:** [November 15, 2003, 3:57pm UTC](https://forum.kirupa.com/t/i-am-in-a-muddle-about-this-preloader/35570/8 "2003-11-15T15:57:42Z")

</div>

thanks for your help on this.

i just cleared out my cache and looked at this. FANTASTIC MATE. it works.  
it has been baffling me for so long

your help is much appreciated
