You can use this formula to get an overall percentage:
totalPercentDone = (swfsDone / totalSwfs) + (currentSwfPercentDone / totalSwfs)

to find the current star to be showing:
currentStar = round(totalPercentDone * numberOfStars);

to find the percent of the current star to be animating:
currentStarPercent = (totalPercentDone - (currentStar/totalStars)) * totalStars;

Just some basic algebra, really. I hope i've understood your question correctly.

hope this helps,
David R

On 6/30/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I´m redesigning my RIA´s preloader. The graphic´s artist came with a nice
> idea, but with this idea came the difficulties, let me try to explain it
> better:
>
> I have several SWF´s that I have to load in the main preloader as well as
> the ApplicationForm.swf. The artist thought in "splitting" the load percent
> feedback in differnet parts - in the different stars (see the screenshot).
> I would need to somehow totalize the swf´s download percentage and only show
> 0-20% on the first star, 20%-40% on the star and so on...I want all the
> swf´s download percentage to be treated as if it was only one... and to show
> the feedback in "parts"... the problem is that I really don´t how how could
> I do that. I´m currently using pixlib LibStack to load my swf libraries.
>
> You can see a screenshot here:
> http://chapeco-online.com.br/flash.JPG, and hopefully you
> will get a better idea on what I want to do ;)
>
> Thanks,
>
> Marcelo.
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to