|
|
|
[
Permlink
| « Hide
]
Trevor McCauley - [10/29/08 03:09 PM ]
added workaround
I have found that the best fix for this bug is to re-write the sound functionality in AS 3.0:
import flash.media.Sound; import flash.media.SoundChannel; import flash.net.URLRequest; var song = "demo.mp3"; var snd:Sound = new Sound(); var channel:SoundChannel = new SoundChannel(); function playMusic(songSource:String){ var req:URLRequest = new URLRequest(song); snd = new Sound(); snd.load(req); channel = new SoundChannel(); channel = snd.play(); } function stopMusic() { channel.stop(); } For more information you can visit my blog, http://www.blackcj.com/blog/2009/01/30/flash-player-10-48khz-sound-playback-bug/ Cheers, Chris A fix for this without a rewrite would be most appreciated.
A fixed version of the player will be released today - www.get.adobe.com/flashplayer
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||