Hi Paul,

Does your screen length (time) affect the sound or is it the sound that
determines the length of a screen ? Firsthand, it sounds like a synch
problem to me. Is there any other places where you call stopAllSounds() or
playSound() ? This might as well affect the cut off.

HTH

A.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Coupe
(LINE)
Sent: 9 novembre 2006 12:14
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] MP3 sound cutting out

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
_______________________________________________
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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 2006-11-09
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 2006-11-09
 

_______________________________________________
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

Reply via email to