Flex에서 by-the-book 사운드 재생을하고 있는데 그 소리를들을 수 없습니다.
나는이 시도 :var snd : Sound = new Sound();
snd.addEventListener(Event.COMPLETE, function(e : Event) : void
{
snd.play();
});
snd.addEventListener(IOErrorEvent.IO_ERROR, function(e : IOErrorEvent) : void
{
Log.format("Playing gong sound failed...\n{0}", e.toString());
});
snd.load(new URLRequest("http://localhost:8000/gong.wav"));
을 그리고 간단한 시도하지 :
var snd : Sound = new Sound(new URLRequest("http://localhost:8000/gong.wav"));
snd.play();
하지만 내가 듣고 아무것도. vlc에서 동일한 mp3 파일을 실행하면 정상적으로 재생됩니다. 네, 저의 스피커가 켜져 있습니다. :)
로딩되지 않습니다. 나는 그것이 40 킬로 바이트의 바이트를 실제로로드하는 것을 볼 수 있으며 잘못된 URL을 제공하면 을 수행한다. IOError를 얻는다. 마치 연주하고있는 것처럼 보이지만 아무 것도들을 수 없습니다. 플렉스 설명서에서 "Working with Sound"에서
+1 똑같은 내용을 입력했습니다. [사운드] 관련 문서 (http://help.adobe.com/ko_KR/FlashPlatform/reference/actionscript/3/flash/media/Sound.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6) –