A bug in Flash 8 simulated download?

Source: Internet
Author: User
I recently found it when I made a music box: Simulated download The loading and downloading of loadsound () is inconsistent with the actual situation.
When a sound object loads an MP3 file, there will be a download process. Actually used sound object. loadsound () load another MP3 file (2) before the current MP3 file (1) has not been downloaded, the downloaded part will be cached and the download will be stopped, loading and downloading (2). If you load (1) Again, continue to download Uncached parts (1; Simulated download In load (2), do not stop downloading (1) -- let's make a single download rate halved.
Is this a bug? Of course it is. I thought it was "pre-loaded waiting ". Algorithm "Don't use it (preload wait algorithm: an algorithm that improves user experience. A simple explanation is to avoid pauses in the playback process. Wait for a reasonable time ). Fortunately, the actual situation is not as bad as the simulation. The bad thing is that I still didn't use the algorithm later, just a word of laziness.
If we look at the MP3 online player made by flash based on the simulated situation, the next button will be equivalent (exaggerated, but it will be really bad). If there is n (n is a little big) for a song, I will try another song six or seven times in a row (for selection). This is good. You are now (this time is... When... Long) don't listen.
However, the download progress produced by loadsound () can be Simulated download And some external files such as FLV cannot simulate the download progress.
I don't know if this is an 8-bit bug. mx2004 was deleted early and cannot be tested.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.