# Sequential preloaders for thumbs

**URL:** <https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119>\
**Category:** Uncategorized\
**Created:** [May 30, 2003, 1:19pm UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119 "2003-05-30T13:19:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdzines](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kdzines](https://forum.kirupa.com/u/kdzines)\
**Post date:** [May 30, 2003, 1:19pm UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119/1 "2003-05-30T13:19:57Z")

</div>

hey everyone,

I am currently working on a fashion website.

In my collection section, i want to load the thumbs sequentially and i am trying to figure out a good script to let me do this.

I looked over an fla from [actionscript.org](http://actionscript.org), but it’s not quite suitable - and i can’t figure it all out!

you can see this at:  
[http://www.actionscript.org/showMovie.php?id=355](http://www.actionscript.org/showMovie.php?id=355)

So on the stage i want to have 25 container clips (called holder1, holder2, holder3, etc) and when the playhead enters that frame, i want it to load pic0.jpg into holder1, then pic1.jpg into holder2 and so on.

Can anybody help? It’s important that all the code is in the main movie so i don’t need to make swfs of all the pix.

i don’t want to use createEmptyMovieClip or duplicate mc.

i reckon there are two ways.

1. create an array for all the pix
2. set-up some kind of counter which adds 1 everytime the previous jpg has fully loaded.

Can anyone help? I want a nice, tight code and i’m not interested in a load bar or % (besides that is easy to add later).

You can see something like this at:

> **[Stella McCartney - Designer RTW, Bags & accessories, Lingerie, Adidas by...](https://www.stellamccartney.com/us)**
>
> Enter Stella's world and shop the latest collection at the official online store. Read the latest news about the brand and discover our online exclusives.

go to AW2003 \> the collection and you’ll see the thumbs load sequentially.

Please help if you can,

cheers,

Kd

---

<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:** [May 31, 2003, 7:07am UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119/2 "2003-05-31T07:07:46Z")

</div>

Maybe not exactly what you want, but check out  
[http://www.flashcomponents.net/component.cfm?nav=2&id=173](http://www.flashcomponents.net/component.cfm?nav=2&id=173)  
anyway, it’s a component, so drag’n’drop and some customization is all you gotta do…

---

<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:** [May 31, 2003, 11:34am UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119/3 "2003-05-31T11:34:08Z")

</div>

thanks eyez,

The component looks pretty good, but i really need to do this with my own script, as i will be applying as to the loaded thumbs to achieve further animation.

but thanks for the effort, this component might come in handy somewhere else.

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:** [May 31, 2003, 2:24pm UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119/4 "2003-05-31T14:24:54Z")

</div>

There’s a guy who has a real elaborate componant out and he just may have the tweak you’re looking for… the current vers. can be seen at

[http://www.actionscriipt.org](http://www.actionscriipt.org) ( \>find \> “image weaver”)

and at his site he often answers ?'s about mods to it ::

[http://www.buggedcom.co.uk/forum/](http://www.buggedcom.co.uk/forum/)

---

<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:** [May 31, 2003, 3:58pm UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119/5 "2003-05-31T15:58:43Z")

</div>

This thread might be of help, it has a preloader (as a class and as a component) that you can apply to any object:

[http://www.flashkit.com/board/showthread.php?threadid=453087](http://www.flashkit.com/board/showthread.php?threadid=453087)

---

<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:** [June 2, 2003, 1:26pm UTC](https://forum.kirupa.com/t/sequential-preloaders-for-thumbs/22119/6 "2003-06-02T13:26:46Z")

</div>

thanks for your help guys.

I don’t see why this would be soo hard! I don’t want to use components at all (don’t like them very much).

I just need to figure out a way to implmenent a counter of some sort with an array.

To be honest with you, i think my biggest problem is that i am really unconfident using getBytesLoaded and getBytesTotal.

I mean if i could just target each holder mc with getBytes, then it would be no problem.

To explain what i mean:

onClipEvent(load ){  
count = 0;  
}

onClipEvent(enterFrame){

\_root.holder[count].loadMovie (“pic” + count + “jpg”);

if(count\<25){

if (\_root.holder[count].getBytesLoaded == \_root.holder[count].getBytesTotal){

count++;  
}  
}  
}

i know the syntax is wrong (that’s kinda the problem), but do you see my thought process? Dunno if someone can write this code for me properly so it does what it should?

Your help is really appreciated,

thanks,

kd
