# preLoader Question

**URL:** <https://forum.kirupa.com/t/preloader-question/221433>\
**Category:** flash\
**Created:** [April 4, 2007, 10:12am UTC](https://forum.kirupa.com/t/preloader-question/221433 "2007-04-04T10:12:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr77](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dr77](https://forum.kirupa.com/u/dr77)\
**Post date:** [April 4, 2007, 10:12am UTC](https://forum.kirupa.com/t/preloader-question/221433/1 "2007-04-04T10:12:41Z")

</div>

Hello all…

I have been trying to use the progressBar component to display some information.

Rather than displaying bytes loaded, I would like it to display a simple variable as a percentage.

It’s a simple game of skill. The maximum number of skill points you can get is 100. So, if a player collected 50 skilll pts, the bar would move half way along and then trigger a function.

Is this possible?

I found this in Flash Help but not sure how to use it or whether it would work:

```auto

for (var i:Number = 1; i <= total; i++){    
// insert code to load file    
my_pb.setProgress(i, total);}

```

Thanks as always for any help,

David
