lufy's legend

标题: 音乐,LSound()的使用 [打印本页]

作者: 987212385    时间: 2014-5-5 22:17
标题: 音乐,LSound()的使用
init(30,"legend",480,480,main);
var backLayer;
var sound;
var nowTime;
function main(){
    LGlobal.setDebug(true);
    sound = new LSound();
    sound.addEventListener(LEvent.COMPLETE,gameInit);
    var url = "[size=1em]http://lufylegend.com/media/LSound/kfighter.";
    sound.load(url+"mp3,"+url+"wav,"+url+"ogg");
}
function gameInit(e){
    sound.play();
}
function main_1(){
    LGlobal.setDebug(true);
    sound_1 = new LSound();
    sound_1.addEventListener(LEvent.COMPLETE,gameInit_1);
    var url = "[size=1em]http://lufylegend.com/media/LSound/kfighter.";
    sound_1.load(url+"mp3,"+url+"wav,"+url+"ogg");
}
function gameInit_1(e){
    sound_1.play();
}

为什么想这样不能重复应用两次




作者: 987212385    时间: 2014-5-5 23:51
懂了.000000000000000




欢迎光临 lufy's legend (http://lufylegend.com/forum/) Powered by Discuz! X2.5