2008-11-29 | flash8 关于声音
类别(教程习题) | 评论(0) | 阅读(19) | 发表于 23:44

s = new Sound();
s.attachSound("aaaa");
s.start(0,1);

s :Sound= new Sound();
s.attachSound("aaaa");   // 不能用=
s.start(0,1);

var song_sound:Sound = new Sound();
song_sound.attachSound("aaaa");
S.onRelease = function() {
    song_sound.start();
};
SS.onRelease = function() {
    song_sound.stop();
};

0

评论Comments