Frame 2
function traced(b) {
trace("** bgm " + b);
}
function createBgmChannel(num) {
traced(("\u30B5\u30A6\u30F3\u30C9\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u4F5C\u6210 " + num) + "\uFF81\uFF6C\uFF9D\uFF88\uFF99");
i = 0;
while (i < num) {
createSoundID(i);
i++;
}
}
function createSoundID(no) {
traced("\u30B5\u30A6\u30F3\u30C9\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u751F\u6210\u3000\uFF81\uFF6C\uFF9D\uFF88\uFF99" + no);
this["bgm" + no] = new Sound(this);
}
function getBgm(ch) {
var _local1 = "bgm" + ch;
return(_local1.bgmID);
}
function bgmPlay(ch, bgmID, vol, fade) {
var _local2 = this["bgm" + ch];
if ((fade == 0) || (fade == undefined)) {
traced((((("BGM\u518D\u751F\u958B\u59CB \uFF81\uFF6C\uFF9D\uFF88\uFF99=" + ch) + " bgmID=") + bgmID) + " vol=") + vol);
_local2.stop();
_local2.bgmID = bgmID;
_local2.attachSound(_local2.bgmID);
_local2.setVolume(vol);
_local2.start(0, 99999);
} else {
traced((((((("BGM\u518D\u751F\u958B\u59CB \uFF81\uFF6C\uFF9D\uFF88\uFF99=" + ch) + " bgmID=") + bgmID) + " vol=") + vol) + " \uFF8C\uFF6A\uFF70\uFF84\uFF9E\uFF72\uFF9D=") + fade);
}
}
function bgmStop(ch, fade) {
traced((("BGM\u505C\u6B62\u3000\uFF81\uFF6C\uFF9D\uFF88\uFF99=" + soundID) + " \uFF8C\uFF6A\uFF70\uFF84\uFF9E\uFF71\uFF73\uFF84=") + fade);
if (soundID == 99) {
var _local2 = 0;
while (_local2 < totalChannel) {
this["bgm" + _local2].stop();
_local2++;
}
} else {
this["bgm" + ch].stop();
}
}
function setVolume(ch, v) {
var _local1 = "bgm" + ch;
trace((((("BGM\u97F3\u91CF\u5909\u66F4\u3000\uFF81\uFF6C\uFF9D\uFF88\uFF99=" + ch) + " \u5909\u66F4\u524D=") + _local1.getVolume()) + " \u5909\u66F4\u5F8C=") + _local1.getVolume());
_local1.setVolume(v);
}
this._lockroot = true;
System.security.allowDomain("nextframe.jp");
System.security.allowDomain("www.nextframe.jp");
var my_lc = new LocalConnection();
my_lc.allowDomain = function (sendingDomain) {
return(sendingDomain == "nextframe.jp");
};
var my_lc2 = new LocalConnection();
my_lc2.allowDomain = function (sendingDomain) {
return(sendingDomain == "www.nextframe.jp");
};
totalChannel = undefined;
traced("************************************************");
traced("Bgms.swf\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F");
this.createBgmChannel(10);
traced("************************************************\n");
this.stop();