【发布时间】:2010-09-11 14:50:15
【问题描述】:
我有一个项目,其中包含一堆 SWF 的外部声音。我想播放它们,但每当我尝试将新 URL 加载到声音对象中时,它都会失败,
错误 #2068:声音无效
或使用
引发 ioError错误 #2032 流错误
// 尝试使用前缀为“http://..”、“file://..”、“//..”和“..”的路径)
var path:String = "http://../assets/the_song.mp3";
var url:URLRequest = new URLRequest( path );
var sound:Sound = new Sound();
sound.addEventListener( IOErrorEvent.IO_ERROR, ioErrorHandler);
sound.addEventListener( SecurityErrorEvent.SECURITY_ERROR, secHandler);
sound.load(url);
【问题讨论】:
标签: flash url actionscript audio urlrequest