Hi,

I've got a template-based e-learning application which plays a dynamic
mp3 voiceover file (typically around 200k in size) once a screen has
loaded. 

The problem I've got is that on a few screens, the audio more often than
not cuts off before it has finished - in a random place each time. Other
screens that are fine have exactly the same type of MP3 compression, and
swapping in the MP3 file from a screen that does work doesn't solve the
problem. I've noticed the problem is much worse in Player 9, doesn't
happen as much in Player 7, and even less if I simply run the .swf
outside the browser. Anybody got any ideas? It's driving me nuts!

The sound code is simply:

private static function playSound(soundToPlay):Void
{
        // stop any currently playing sound     
        stopAllSounds();

        var mySound = new Sound();
        mySound.onLoad = function(success:Boolean)
        {
                if (success) 
                {
                        mySound.start();
                } else {
                        trace("Sound failed");
                }
        };
        
        mySound.loadSound(soundToPlay, true);
}


Thanks for any help,
 
Paul Coupe
Lead Developer
  
LINE Communications 
_______________________________________________
[email protected]
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