为什么用LoadMoive导入SWF后那个SWF没声音

来源:百度知道 编辑:UC知道 时间:2024/06/01 15:07:14
yl_mc.onRollOver = function() {
loadMovie("sound1.swf", bj_mc);
}; 我的命令如上...把一个叫sound1.swf的文件导入到BJ_MC的剪辑里.
不过播放的时候没声音
我那个SWF的命令是这样的 var a:Sound = new Sound();
a.attachSound("a");
a.start(0, 999);
m_mc.onPress = function() {
m_mc.startDrag(false, this._x, -100, this._x, 100);
};
m_mc.onRelease = m_mc.onReleaseOutside=function () {
m_mc.stopDrag();
};
m_mc.onEnterFrame = function() {
a.setVolume(this._y+100);
};

估计会FLASH的都知道是什么意思

具体要看那个SWF的结构

把这句写在 主swf文件场景中

而且对应音频文件也导进主SWF场景库中 做好链接标识
var a:Sound = new Sound();
a.attachSound("a");
a.start(0, 999);