You can use my PreloadAssetManager class for this sort of thing:
http://www.greensock.com/actionscript/preloadassetmanager/

Basically, it reads in just enough of each asset to figure out the total
size then dumps it and moves onto the next one until it has the total size
of all of the assets (could be images, SWFs, or FLVs), then loads each of
them completely. All you've gotta do is create an instance, tell it the URLs
of the assets to preload, and then you can poll its percentLoaded_num
property to update your progress bar on screen. There's some brief
documentation at the url above. Hope it helps.

Jack Doyle

-----Original Message-----
Date: Thu, 25 Jan 2007 13:15:48 -0800
From: [EMAIL PROTECTED]
Subject: [Flashcoders] Q:Preloader when TOTAL size of assets not known
To: flashcoders@chattyfig.figleaf.com
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Hi
Using a XML config file to load in a number of image assets.
i was wondering what approach is best taken when you want to create some
type of a 'percent loaded' display, not knowing the combined total size of
all assets...

Is there an easy solution to this without 'faking' it or hardcoding the
total size?

Perhaps using PHP on the back end?

Thanks

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to