flash as3中我想在影片剪辑(mc)上加载声音怎么做?我是个as3.0初学者,请详细点,谢谢! 10
2个回答
展开全部
最简单的在mc的第一帧上写如下代码:
var url:String = "MySound.mp3";
var song:SoundChannel;
var request:URLRequest = new URLRequest(url);
var soundFactory:Sound = new Sound();
soundFactory.load(request);
song = soundFactory.play();
var url:String = "MySound.mp3";
var song:SoundChannel;
var request:URLRequest = new URLRequest(url);
var soundFactory:Sound = new Sound();
soundFactory.load(request);
song = soundFactory.play();
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询