# Time preloader

**URL:** <https://forum.kirupa.com/t/time-preloader/12861>\
**Category:** Uncategorized\
**Created:** [February 5, 2003, 1:05pm UTC](https://forum.kirupa.com/t/time-preloader/12861 "2003-02-05T13:05:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashSwimmer](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@FlashSwimmer](https://forum.kirupa.com/u/FlashSwimmer)\
**Post date:** [February 5, 2003, 1:05pm UTC](https://forum.kirupa.com/t/time-preloader/12861/1 "2003-02-05T13:05:20Z")

</div>

i want to make a time preloader ( i mean the time to make the full dowload ).

i know how to create a bar preloader but i donno know how to do time preloader.

thanx C:-)

---

<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, 1:54pm UTC](https://forum.kirupa.com/t/time-preloader/12861/2 "2003-02-05T13:54:33Z")

</div>

you mean a percentage 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:** [February 5, 2003, 2:02pm UTC](https://forum.kirupa.com/t/time-preloader/12861/3 "2003-02-05T14:02:13Z")

</div>

If you mean that you want to display the amount of time left till the end of the download, the first thing you’ll have to do is calculate the bandwidth of the user. Then it’s a piece of cake 🙂

pom :cool:

---

<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, 2:05pm UTC](https://forum.kirupa.com/t/time-preloader/12861/4 "2003-02-05T14:05:47Z")

</div>

u make is sound sooo easy pom!! lol 😏

---

<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, 2:16pm UTC](https://forum.kirupa.com/t/time-preloader/12861/5 "2003-02-05T14:16:19Z")

</div>

yes that what i want to do Pom…:trout: but HOW :hangover:

---

<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, 3:08pm UTC](https://forum.kirupa.com/t/time-preloader/12861/6 "2003-02-05T15:08:02Z")

</div>

basic layout for preloader stuff:

```auto

percentLoaded = (getBytesLoaded()/getBytesTotal())*100;

kilobytesLoaded = getBytesLoaded()/1024;
kilobytesRemaining = (getBytesTotal()-getBytesLoaded())*1024;

// startTime = getTimer(); <-when you start the loading process
timeTaken = (getTimer() - startTime)/1000;
estimatedTimeRemaining = getBytesTotal()*(timeTaken/getBytesLoaded()) - timeTaken;

if (percentLoaded == 100) movieIsLoaded == true

```

---

<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, 3:20pm UTC](https://forum.kirupa.com/t/time-preloader/12861/7 "2003-02-05T15:20:38Z")

</div>

thanx man…:flower:  
i’ll check it and tell you :love:

---

<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, 3:30pm UTC](https://forum.kirupa.com/t/time-preloader/12861/8 "2003-02-05T15:30:46Z")

</div>

there is a tutorial on that kind of preloader on ultra shock!!

:: [http://www.ultrashock.com/](http://www.ultrashock.com/)

thats the file =)

---

<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 8, 2003, 10:15am UTC](https://forum.kirupa.com/t/time-preloader/12861/9 "2003-02-08T10:15:24Z")

</div>

thanx Dave i’ll check it now… 😛  
but senocular’s code i donno think that what i need.  
in [[color=red]this[/color]](http://www.alamalphan.com/music/card_display.asp?card_id=10) link what i need.

thanx

---

<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 9, 2003, 6:16pm UTC](https://forum.kirupa.com/t/time-preloader/12861/10 "2003-02-09T18:16:47Z")

</div>

Thats cool :bounce:

Hope it helps you!!
