all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Preload external audio


Preload external audio psychodeathbot
12/28/2004 9:08:21 PM
flash actionscript:
Hello... I'm preloading a number of external mp3 files into a swf for playback
and running into some problems. Here's the basic sequence: 1. Stop the player
and attach preloader clip (percentage/progress bar)2. Retrieve the list of
files to load and store in an array.3. Total up the number of bytes loaded for
all the files in the array4. Display the progress5. Once all audio data is
loaded, go to the content and start playing the first audio track.This works as
expected when I run it through the download simulator. When I view it on my
server, it behaves differenly: It runs the preloader but that first audio track
takes a bit longer to load that the preoader indicates so often the track isn't
played along with the rest of the content. Now once the page is cached in the
browser and reloaded, it works fine. Any insight is greatly appreciated. I've
posted my code http://www1.umn.edu/adcstest/eoaa/ Thanks! -Erik
Re: Preload external audio psychodeathbot
12/29/2004 1:59:21 PM
Re: Preload external audio psychodeathbot
12/29/2004 3:31:37 PM
Figured it out...

Instead of preloading the audio for each clip on the clip's timeline, I'm loading it on the main timeline. This also has the benefit of eliminating redundant code.

AddThis Social Bookmark Button