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:
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