[Flashcoders] Preloading mp3 - onLoad vs GetBytesLoaded()
Hello list, I have a question on preloading mp3's. When I start preloading the mp3 I set the isstreaming to false. Then I check the bytesloaded compared to bytestotal en when that is 100% procent it means all is loaded When I start preloading the sound, I also delegate the function onLoad of the sound Object. I put a trace inside this delegated onLoad method and that fires much later after the 100% loaded is fired? I noticed that when the mp3 is 100% loaded according to the BytesLoaded, and I start the sound by creating a new sound object and using the same url as the preloaded mp3, but setting the streaming flag to true, it stills takes some time, as it seems to buffer the sound. Shouldn't is start immediatedly, as it was preloaded before and is resisiding in the browser cache? How is this possible and what is the best way then to preload a mp3. Many thanx Jiri ___ 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] Preloading mp3 - onLoad vs GetBytesLoaded()
I've the same problem last week. To ensure that my game don't bug with these problem i've checked the two events: 100% + load in my mvc app. More infos to make the code cleaner would be apreciate ;) here is the game (in french): http://www.dontwalkalone.com/index.php?page_id=103#battle -- Laurent Untereiner skype : laurentuntereiner aim : luntereiner icq : 294429730 msn : [EMAIL PROTECTED] http://www.untereiner.com mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116 Selon Jiri Heitlager | dadata.org [EMAIL PROTECTED]: Hello list, I have a question on preloading mp3's. When I start preloading the mp3 I set the isstreaming to false. Then I check the bytesloaded compared to bytestotal en when that is 100% procent it means all is loaded When I start preloading the sound, I also delegate the function onLoad of the sound Object. I put a trace inside this delegated onLoad method and that fires much later after the 100% loaded is fired? I noticed that when the mp3 is 100% loaded according to the BytesLoaded, and I start the sound by creating a new sound object and using the same url as the preloaded mp3, but setting the streaming flag to true, it stills takes some time, as it seems to buffer the sound. Shouldn't is start immediatedly, as it was preloaded before and is resisiding in the browser cache? How is this possible and what is the best way then to preload a mp3. Many thanx Jiri ___ 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 ___ 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