# \[F8\] preloader question

**URL:** <https://forum.kirupa.com/t/f8-preloader-question/204657>\
**Category:** flash\
**Created:** [October 22, 2006, 3:29am UTC](https://forum.kirupa.com/t/f8-preloader-question/204657 "2006-10-22T03:29:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dark\_Cloud](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@Dark\_Cloud](https://forum.kirupa.com/u/Dark_Cloud)\
**Post date:** [October 22, 2006, 3:29am UTC](https://forum.kirupa.com/t/f8-preloader-question/204657/1 "2006-10-22T03:29:46Z")

</div>

i have a preloader with 3 frames.

frame 1 has the preloader mc with the actionscript:

```
Code:
[LEFT]totalBytes = Math.round(getBytesTotal()/1024);

```

loadedBytes = Math.round(getBytesLoaded()/1024);  
percentDone = Math.round((loadedBytes/totalBytes)\*100);  
if (\_root.\_framesloaded\>=\_root.\_totalframes) {  
gotoAndPlay(“start”);  
}[/LEFT]

the second frame has the mc again and has the actionscript:

```
Code:
[LEFT]gotoAndPlay(4);[/LEFT]

```

then the third frame is just blank with the frame label “start” and no actionscript.

**[SIZE=5]For my question:[/SIZE]**

If i put two dynamic text boxes in the MC with the instance names totalBytes and loadedBytes would they show how many are there are total and how many are loaded?

and what about percentDone?

just wondering before i post my game to a site.

thanks

DC

---

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [October 23, 2006, 2:55am UTC](https://forum.kirupa.com/t/f8-preloader-question/204657/2 "2006-10-23T02:55:36Z")

</div>

Change the instance names to whatever you want. They can be named anything.
