Actionscript 3.0 声音链
Actionscript 3.0 是否可以播放声音链(即几个 mp3)? 或者我应该手动开始播放第一个声音,等待 SOUND_COMPLETE 事件,然后开始第二个声音,依此类推?
Is it possible in actionscript 3.0 to play chain of sounds (i.e. several mp3s)?
Or should I manually start playing first sound, wait for SOUND_COMPLETE event, then start second sound and so on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用 SOUND_COMPLETE,但您应该注意 Flash 在播放声音时存在一些延迟问题。此外,如果您使用 mp3,则必须记住 mp3 文件格式本身在文件头部有一些空白,因此如果不使用 10.0+ 声音 API 仅提取文件的一部分,则不可能进行连续循环。包含实际声音的文件。
You'd need to use SOUND_COMPLETE, but you should be aware that Flash has some latency issues when it comes to playing sounds. Additionally, if you're using mp3s you have to remember that the mp3 file format itself has some blank space at the head of the file such that a continuous loop is not possible without using the 10.0+ Sound APIs to extract only the part of the file that contains actual sound.