[Flashcoders] Q:Preloader when TOTAL size of assets not known
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
Re: [Flashcoders] Q:Preloader when TOTAL size of assets not known
You might also use a double percentage: e.g. one view showing loading for each file as a % (if you wanted) and the other simply showing a % of the number of files. Depending on you setup it also shouldn't be too difficult to write something server side to do something like scan the XML and insert file sizes into it (or report them via a second channel). [EMAIL PROTECTED] wrote: 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 -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ 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
Re: [Flashcoders] Q:Preloader when TOTAL size of assets not known
What I'd probably do with this is not worry about total amount loaded over total amount. Instead, I might worry about percentage loaded for each image, then average all the percentages. --- [EMAIL PROTECTED] wrote: 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 Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 ___ 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
RE: [Flashcoders] Q:Preloader when TOTAL size of assets not known
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