Frame 1
function undefinedVal() {
tellTarget ("_root/config") {
nefDocument = "";
slaveMode = false;
graphic1 = "";
graphic2 = "";
totalBlocks = "0";
clearBlocks = "p100";
clearJump = "clear";
if (_root.nextConfig.length <= 0) {
life = "10";
keyboardMode = "false";
soundMode = "true";
blockMode = "false";
effectMode = "true";
liteMode = "true";
edgeBackMode = "true";
timerVisible = "true";
rankingEnable = "false";
blockMask = "1";
ballSpeedRate = "1";
barSpeedRate = "1";
defaultName = "B2";
rankingTxt = "hiscore.txt";
soundThrow = "default";
soundHit = "default";
soundBreak = "default";
soundBorder = "default";
soundUpside = "";
soundSmash = "default";
soundPaddle = "default";
soundMiss = "default";
soundGameover = "default";
soundStart = "default";
soundBgm = "default";
soundClear = "default";
soundItem = "default";
soundShot = "default";
soundThrowVol = 100;
soundHitVol = 100;
soundBreakVol = 100;
soundBorderVol = 100;
soundUpsideVol = 100;
soundSmashVol = 100;
soundPaddleVol = 100;
soundMissVol = 100;
soundGameoverVol = 100;
soundStartVol = 100;
soundBgmVol = 100;
soundClearVol = 100;
soundItemVol = 100;
soundShotVol = 100;
scoreBlock1 = 10;
scoreBlock2 = 20;
scoreBlock3 = 30;
scoreBlock4 = 0;
scoreBlock5 = 10;
scoreBlock6 = 10;
scoreBlock7 = 10;
scoreSmash = 100;
scoreTime0 = 5000;
scoreTime1 = 10;
scoreLife = 300;
scoreCombo = 20;
scoreCombonum = 5;
rankingPath = "hiscore.cgi";
ballColor = "white";
barRapid = "true";
barHeavy = "false";
barInc = "false";
barCtrl = "false";
itemLabel = ["boost", "Ctrl", "Shot", "Wide", "Rapid", "Bomb", "Short", "Panic", "Guard", "Grav", "1up", "pts", "speedup", "speeddown", "timeplus", "xxx"];
itemEncount = [0, 1, 0, 2, 2, 0, 2, 2, 0, 1, 0, 3, 1, 1, 1, 0];
itemGaugeMax = [80, 250, 5, 400, 20, 1, 300, 300, 300, 400, 0, 0, 400, 400, 0, 0];
itemScore = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
itemSE = ["default", "default", "default", "default", "default", "default", "default", "default", "default", "default", "default", "default", "default", "default", "default", "default"];
itemSEVol = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
itemValue = ["3", "3", "1", "1.5", "2", "3", "0.5", "0", "0", "15,45,10", "0", "0", "10", "6", "60", "0"];
itemFromBlocks = [0, 0, 0, 0];
itemAtTimes = [0, 0, 0, 0];
defaultItem = 1;
defaultItemRestore = 0.5;
baseSpeed = [16, 0, 0, 0, 0];
itemSpeed = [5, 0, 0, 0, 0];
}
timerReverse = false;
itemGuide = false;
};
}
_root.program = "b2";
_root.version = "ver. 1.08e3hack";
_root.cnfpath = "";
System.useCodepage = true;
Stage.showmenu = false;
if (cnf.length) {
_root.cnfpath = _root.cnf.substr(0, _root.cnf.lastIndexOf("/") + 1);
}
if (nextConfig.length <= 0) {
loadVariables (cnf, "config");
_root.defaultConfig = _root.cnf;
} else {
config.version = "";
loadVariables (_root.cnfpath + nextConfig, "config");
}
config._visible = true;
configURL._visible = false;
playStatus = "load";
first = true;
tempTimer = new Date();
timer0Temp = tempTimer.getTime();
if (configTimeout.length <= 0) {
configTimeout = 5000;
}
undefinedVal();
Instance of Symbol 122 MovieClip "status" in Frame 1
onClipEvent (enterFrame) {
timer = new Date();
life = _root.life;
score = _root.score;
bBlock = _root.bBlock;
tBlock = _root.tBlock;
if (_root.timerReverse) {
t = ((_root.scoreTime0 / _root.scoreTime1) * 1000) - _root.timer;
} else {
t = _root.timer;
}
timeMin = Math.floor(t / 60000) % 60;
timeSec = Math.floor(t / 1000) % 60;
if (timeSec < 10) {
timeSec = "0" + timeSec;
}
time10Millisec = Math.floor(t / 10) % 100;
if (time10Millisec < 10) {
time10Millisec = "0" + time10Millisec;
}
_root.timerNow = timer.getTime();
if (_root.playStatus == "play") {
_root.timerBak = _root.timer;
_root.timer = _root.timer + (_root.timerNow - _root.timerOld);
_root.timerB = _root.timerB + (_root.timerNow - _root.timerOld);
}
_root.timerOld = _root.timerNow;
}
onClipEvent (load) {
function timerVisble() {
if (!_root.timerVisible) {
gotoAndStop (2);
return(undefined);
}
gotoAndStop (1);
}
}
Frame 6
if (config.version != "B2") {
prevFrame();
play();
}
var tempTimer = new Date();
var timerNowTemp = tempTimer.getTime();
if ((((config.version != "B2") && (nextConfig.length <= 0)) && (_root.cnf.length <= 0)) && ((timerNowTemp - timer0Temp) >= configTimeout)) {
configURL._visible = true;
}
Frame 7
function bool(a) {
if (a == "true") {
return(true);
}
return(false);
}
function barMaking(rate) {
g.bar._y = g.border._height - (g.bar._height * 2);
g.bar.body._width = (barWidth * rate) - (g.bar.edgeWidth * 2);
g.bar.edgel._width = g.bar.edgeWidth;
g.bar.edger._width = g.bar.edgeWidth;
g.bar.edgel._x = -(((barWidth / 2) * rate) - (g.bar.edgeWidth / 2));
g.bar.edger._x = ((barWidth / 2) * rate) - (g.bar.edgeWidth / 2);
}
g.gotoAndPlay(1);
config.configBlack._visible = true;
nefDocument = config.nefDocument;
if (nefDocument != "") {
host.loadMovie(_root.cnfpath + "nef.swf");
}
slaveMode = bool(config.slaveMode);
clearBlocks = config.clearBlocks;
clearJump = config.clearJump;
rankingPath = config.rankingPath;
if (rankingPath.substr(rankingPath.length - 4, 4) != ".cgi") {
if (rankingPath.substr(rankingPath.length - 1, 1) == "/") {
rankingPath = rankingPath + "hiscore.cgi";
} else {
rankingPath = rankingPath + "/hiscore.cgi";
}
}
graphicWidth = config.graphicWidth * 1;
graphicHeight = config.graphicHeight * 1;
barSpace = config.barSpace * 1;
g.graphic.loadMovie(_root.cnfpath + config.graphic1);
g.graphic2.loadMovie(_root.cnfpath + config.graphic2);
g.border._width = graphicWidth;
g.border._height = graphicHeight + barSpace;
g.ball.minRadian = 0.174532925199 * config.minRadian;
g.ball.maxRadian = 0.174532925199 * config.maxRadian;
g.ball.baseSpeed = new Array();
g.ball.baseSpeed = config.baseSpeed.split(",");
g.ballSize = config.ballSize * 1;
g.ball.precision = config.precision * 1;
g.ball._width = g.ballSize;
g.ball._height = g.ballSize;
g.bar.xSpeed = config.xSpeed * 1;
barWidth = config.barWidth * 1;
g.bar._height = config.barHeight * 1;
g.bar.criticalWidth = config.criticalWidth * 1;
g.bar.edgeWidth = config.edgeWidth * 1;
g.vx = 0;
barMaking(1);
g.block.block._width = config.blockWidth * 1;
g.block.block._height = config.blockHeight * 1;
g.blockx = math.ceil(g.border._width / g.block.block._width);
g.blocky = math.ceil(g.border._height / g.block.block._height);
g.blocky2 = math.ceil(g.border._height / g.block.block._height);
g.block2.block._width = g.block.block._width;
g.block2.block._height = g.block.block._height;
g.hits = 1;
g.hit._visible = false;
if (nextConfig.length <= 0) {
life = config.life * 1;
score = 0;
scoreSpecial = 0;
timer = 0;
timerB = 0;
maxcombo = 0;
keyboardMode = bool(config.keyboardMode);
soundMode = bool(config.soundMode);
liteMode = bool(config.liteMode);
timerVisible = bool(config.timerVisible);
rankingEnable = bool(config.rankingEnable);
ballSpeedRate = config.ballSpeedRate * 1;
barSpeedRate = config.barSpeedRate * 1;
defaultName = config.defaultName;
rankingTxt = config.rankingTxt;
} else {
life++;
}
blockMode = bool(config.blockMode);
effectMode = bool(config.effectMode);
edgeBackMode = bool(config.edgeBackMode);
blockMask = config.blockMask * 1;
ballColor = config.ballColor;
_root.g.ball.color = ballColor;
g.ball.setColor();
soundThrow = config.soundThrow;
soundHit = config.soundHit;
soundBreak = config.soundBreak;
soundBorder = config.soundBorder;
soundUpside = config.soundUpside;
soundSmash = config.soundSmash;
soundPaddle = config.soundPaddle;
soundMiss = config.soundMiss;
soundGameover = config.soundGameover;
soundStart = config.soundStart;
soundBgm = config.soundBgm;
soundClear = config.soundClear;
soundItem = config.soundItem;
soundShot = config.soundShot;
soundThrowVol = config.soundThrowVol * 1;
soundHitVol = config.soundHitVol * 1;
soundBreakVol = config.soundBreakVol * 1;
soundBorderVol = config.soundBorderVol * 1;
soundUpsideVol = config.soundUpsideVol * 1;
soundSmashVol = config.soundSmashVol * 1;
soundPaddleVol = config.soundPaddleVol * 1;
soundMissVol = config.soundMissVol * 1;
soundGameoverVol = config.soundGameoverVol * 1;
soundStartVol = config.soundStartVol * 1;
soundBgmVol = config.soundBgmVol * 1;
soundClearVol = config.soundClearVol * 1;
soundItemVol = config.soundItemVol * 1;
soundShotVol = config.soundShotVol * 1;
scoreBlock1 = config.scoreBlock1 * 1;
scoreBlock2 = config.scoreBlock2 * 1;
scoreBlock3 = config.scoreBlock3 * 1;
scoreBlock4 = config.scoreBlock4 * 1;
scoreBlock5 = config.scoreBlock5 * 1;
scoreBlock6 = config.scoreBlock6 * 1;
scoreBlock7 = config.scoreBlock7 * 1;
scoreSmash = config.scoreSmash * 1;
scoreTime0 = config.scoreTime0 * 1;
scoreTime1 = config.scoreTime1 * 1;
scoreLife = config.scoreLife * 1;
scoreCombo = config.scoreCombo * 1;
scoreCombonum = config.scoreCombonum * 1;
bBlock = 0;
tBlock = config.totalBlocks * 1;
barRapid = bool(config.barRapid);
barHeavy = bool(config.barHeavy);
barInc = bool(config.barInc);
barCtrl = bool(config.barCtrl);
itemLabel = new Array();
itemEncount = new Array();
itemGaugeMax = new Array();
itemScore = new Array();
itemSE = new Array();
itemValue = new Array();
itemGet = new Array();
item = new Array();
item = config.item.split(",");
i = 0;
no = 1;
maxItemNo = 10;
while (i < item.length) {
if (item[i].charAt(0) == "#") {
no = item[i].substr(1) * 1;
i++;
if (maxItemNo < no) {
maxItemNo = no;
}
if (item[i].charAt(0) != "#") {
itemLabel[no] = item[i];
i++;
}
if (item[i].charAt(0) != "#") {
itemEncount[no] = item[i] * 1;
i++;
}
if (item[i].charAt(0) != "#") {
itemGaugeMax[no] = item[i] * 1;
i++;
}
if (item[i].charAt(0) != "#") {
itemScore[no] = item[i] * 1;
i++;
}
if (item[i].charAt(0) != "#") {
itemSE[no] = item[i];
i++;
}
if (item[i].charAt(0) != "#") {
itemSEVol[no] = item[i] * 1;
i++;
}
while ((item[i].charAt(0) != "#") && (i < item.length)) {
itemValue[no] = itemValue[no] + (item[i] + ",");
i++;
}
} else {
i++;
}
}
itemFromBlocks = new Array();
itemFromBlocks = config.itemFromBlocks.split(",");
var i = 0;
while (i < 4) {
itemFromBlocks[i] = itemFromBlocks[i] * 1;
i++;
}
itemAtTimes = new Array();
itemAtTimes = config.itemAtTimes.split(",");
var i = 0;
while (i < 4) {
itemAtTimes[i] = itemAtTimes[i] * 1;
i++;
}
defaultItem = config.defaultItem * 1;
defaultItemRestore = config.defaultItemRestore * 1;
itemSpeed = new Array();
itemSpeed = config.itemSpeed.split(",");
var i = 0;
while (i < 5) {
itemSpeed[i] = itemSpeed[i] * 1;
i++;
}
itemGuide = bool(config.itemGuide);
timerReverse = bool(config.timerReverse);
status.timerVisble();
block = new Array(g.blockx * g.blocky2);
block = config.block.split(",");
i = block.length;
while (i <= (g.blockx * g.blocky2)) {
block[i] = 0;
i++;
}
com.command = new Array(10000);
com.command = config.command.split(",");
throwSound.throwSound = new Sound(_root.throwSound);
if (soundThrow != "default") {
throwSound.throwSound.loadSound(_root.cnfpath + soundThrow, false);
throwSound.throwSound.setVolume(soundThrowVol);
}
hitSound.hitSound = new Sound(_root.hitSound);
if (soundHit == "default") {
hitSound.hitSound.attachSound("hit");
hitSound.hitSound.setVolume(50);
} else {
hitSound.hitSound.loadSound(_root.cnfpath + soundHit, false);
hitSound.hitSound.setVolume(soundHitVol);
}
breakSound.breakSound = new Sound(_root.breakSound);
if (soundBreak == "default") {
breakSound.breakSound.attachSound("break");
breakSound.breakSound.setVolume(80);
} else {
breakSound.breakSound.loadSound(_root.cnfpath + soundBreak, false);
breakSound.breakSound.setVolume(soundBreakVol);
}
borderSound.borderSound = new Sound(_root.borderSound);
if (soundBorder == "default") {
borderSound.borderSound.attachSound("paddle");
borderSound.borderSound.setVolume(40);
} else {
borderSound.borderSound.loadSound(_root.cnfpath + soundBorder, false);
borderSound.borderSound.setVolume(soundBorderVol);
}
upsideSound.upsideSound = new Sound(_root.upsideSound);
if (soundUpside != "") {
upsideSound.upsideSound.loadSound(_root.cnfpath + soundUpside, false);
upsideSound.upsideSound.setVolume(soundUpsideVol);
}
smashSound.smashSound = new Sound(_root.smashSound);
if (soundSmash == "default") {
smashSound.smashSound.attachSound("smash");
smashSound.smashSound.setVolume(100);
} else {
smashSound.smashSound.loadSound(_root.cnfpath + soundSmash, false);
smashSound.smashSound.setVolume(soundSmashVol);
}
paddleSound.paddleSound = new Sound(_root.paddleSound);
if (soundPaddle == "default") {
paddleSound.paddleSound.attachSound("paddle");
paddleSound.paddleSound.setVolume(40);
} else {
paddleSound.paddleSound.loadSound(_root.cnfpath + soundPaddle, false);
paddleSound.paddleSound.setVolume(soundPaddleVol);
}
missSound.missSound = new Sound(_root.missSound);
if (soundMiss != "default") {
missSound.missSound.loadSound(_root.cnfpath + soundMiss, false);
missSound.missSound.setVolume(soundMissVol);
}
gameoverSound.gameoverSound = new Sound(_root.gameoverSound);
if (soundGameover != "default") {
gameoverSound.gameoverSound.loadSound(_root.cnfpath + soundGameover, false);
gameoverSound.gameoverSound.setVolume(soundGameoverVol);
}
startSound.startSound = new Sound(_root.startSound);
if (soundStart != "default") {
startSound.startSound.loadSound(_root.cnfpath + soundStart, false);
startSound.startSound.setVolume(soundStartVol);
}
bgmSound.bgmSound = new Sound(_root.bgmSound);
if (soundBgm != "default") {
bgmSound.bgmSound.loadSound(_root.cnfpath + soundBgm, false);
bgmSound.bgmSound.setVolume(soundBgmVol);
}
clearSound.clearSound = new Sound(_root.clearSound);
if (soundClear != "default") {
clearSound.clearSound.loadSound(_root.cnfpath + soundClear, false);
clearSound.clearSound.setVolume(soundClearVol);
}
itemSound.itemSound = new Sound(_root.itemSound);
if (soundItem == "default") {
itemSound.itemSound.attachSound("item");
itemSound.itemSound.setVolume(40);
} else {
itemSound.itemSound.loadSound(_root.cnfpath + soundItem, false);
itemSound.itemSound.setVolume(soundItemVol);
}
shotSound.shotSound = new Sound(_root.shotSound);
if (soundShot != "default") {
shotSound.shotSound.loadSound(_root.cnfpath + soundShot, false);
shotSound.shotSound.setVolume(soundShotVol);
}
var i = 1;
while (i <= maxItemNo) {
_root.attachMovie("sound", "itemSE" + i, i);
_root["itemSE" + i].sound = new Sound();
if (itemSE[i] == "default") {
if (itemLabel[i] == "shot") {
_root["itemSE" + i].sound.attachSound("shot");
_root["itemSE" + i].sound.setVolume(40);
} else if (itemLabel[i] == "bomb") {
_root["itemSE" + i].sound.attachSound("bomb");
_root["itemSE" + i].sound.setVolume(100);
} else if (itemSE[i]) {
_root["itemSE" + i].sound.loadSound(_root.cnfpath + itemSE[i], false);
_root["itemSE" + i].sound.setVolume(itemSEVol[i] * 1);
}
} else if (itemSE[i]) {
_root["itemSE" + i].sound.loadSound(_root.cnfpath + itemSE[i], false);
_root["itemSE" + i].sound.setVolume(itemSEVol[i] * 1);
}
i++;
}
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
g.ball._visible = false;
g.bar._visible = false;
Instance of Symbol 222 MovieClip "nameEntry" in Frame 7
onClipEvent (load) {
if ((!_root.rankingEnable) || (_root.entryName.length > 0)) {
this._visible = false;
} else {
this.entryName = _root.defaultName;
}
}
Instance of Symbol 224 MovieClip "com" in Frame 7
onClipEvent (enterFrame) {
count = 0;
com();
}
onClipEvent (load) {
function autoModel(s) {
var _local3 = "";
var _local4 = 0;
while (_local4 < s.length) {
if (s.substr(_local4, 2) == "//") {
return(s * 1);
}
var _local1 = s.substr(_local4, 1);
if ((_local1 >= "0") && (_local1 <= "9")) {
_local3 = _local3 + _local1;
} else if (!((_local1 == " ") || (_local1 == newline))) {
if ((_local1 == ".") || (_local1 == "-")) {
_local3 = _local3 + _local1;
} else {
return(s);
}
}
_local4++;
}
return(_local3 * 1);
}
function getParameter(string, a) {
a1 = (a2 = (a3 = (a4 = (a5 = (a6 = (a7 = (a8 = (a9 = (a10 = (a11 = (a12 = 0)))))))))));
p1 = (p2 = (p3 = (p4 = (p5 = (p6 = (p7 = (p8 = (p9 = (p10 = (p11 = (p12 = 0)))))))))));
p2 = 0;
a1 = a.indexOf("|", 0);
if (a1 == -1) {
p1 = a.substring(a.indexOf(string) + string.length);
if (!strPara1) {
p1 = p1 * 1;
}
if (p1 == NaN) {
p1 = 0;
}
return(undefined);
}
p1 = a.substring(a.indexOf(string) + string.length, a1);
if (!strPara1) {
p1 = p1 * 1;
}
var _local2 = 2;
for(;;){
if (_local2 > 12) {
return(undefined);
}
this["a" + _local2] = a.indexOf("|", this["a" + (_local2 - 1)] + 1);
if (this["a" + _local2] == -1) {
this["p" + _local2] = a.substring(this["a" + (_local2 - 1)] + 1);
if (!this["strPara" + _local2]) {
this["p" + _local2] = this["p" + _local2] * 1;
}
if (this["p" + _local2] == NaN) {
this["p" + _local2] = 0;
}
return(undefined);
}
this["p" + _local2] = a.substring(this["a" + (_local2 - 1)] + 1, this["a" + _local2]);
if (!this["strPara" + _local2]) {
this["p" + _local2] = this["p" + _local2] * 1;
}
_local2++;
};
}
function comIf(a, i, j, flag) {
return(flag);
}
function comexec(a) {
strPara1 = (strPara2 = (strPara3 = (strPara4 = (strPara5 = (strPara6 = (strPara7 = (strPara8 = (strPara9 = (strPara10 = (strPara11 = (strPara12 = false)))))))))));
if (a.indexOf("allBlocksReset") >= 0) {
getParameter("allBlocksReset", a);
var _local6 = 0;
while (_local6 < _root.g.blocky) {
var _local4 = 0;
while (_local4 < _root.g.blockx) {
a = (_local6 * _root.g.blockx) + _local4;
_root.g.block["block" + a].removeMovieClip();
_local4++;
}
_local6++;
}
if (p1 > 0) {
_root.g.block.block._width = p1;
}
if (p2 > 0) {
_root.g.block.block._height = p2;
}
_root.g.blockx = math.ceil(_root.g.border._width / _root.g.block.block._width);
_root.g.blocky = math.ceil(_root.g.border._height / _root.g.block.block._height);
_root.g.block2.block._width = _root.g.block.block._width;
_root.g.block2.block._height = _root.g.block.block._height;
_root.block = new Array(_root.g.blockx * _root.g.blocky);
_root.block = _root.config.block.split(",");
_root.tBlock = 0;
_root.g.block.gotoAndPlay(1);
}
if (a.indexOf("ballBe") >= 0) {
strPara1 = true;
getParameter("ballBe", a);
if (p1.charAt(0) == "#") {
p1 = p1.substr(1) * 1;
_root.option.weapon.weaponReset(p1);
if (_root.soundMode) {
_root.itemSound.itemSound.start();
}
} else {
p1 = p1 * 1;
_root.g.ball.ball.gotoAndStop(p1);
if ((p1 == 2) && (_root.soundMode)) {
_root.smashSound.smashSound.start();
}
}
}
if (a.indexOf("blockBe") >= 0) {
getParameter("blockBe", a);
_root.block[(p2 * _root.g.blockx) + p1] = p3;
_root.g.block2.block.duplicateMovieClip("block" + ((p2 * _root.g.blockx) + p1), (p2 * _root.g.blockx) + p1);
_root.g.block2["block" + ((p2 * _root.g.blockx) + p1)]._x = p1 * _root.g.block2.block._width;
_root.g.block2["block" + ((p2 * _root.g.blockx) + p1)]._y = p2 * _root.g.block2.block._height;
}
if (a.indexOf("drawRect") >= 0) {
getParameter("drawRect", a);
_root.g.rect._x = p1;
_root.g.rect._y = p2;
_root.g.rect._width = p3;
_root.g.rect._height = p4;
_root.g.rect._visible = true;
_root.g.rect.g.gotoAndStop(p5);
_root.g.rect.timer = p6;
if (p6 > 0) {
_root.g.rect.gotoAndPlay(2);
}
}
if (a.indexOf("comexec") >= 0) {
strPara1 = true;
getParameter("comexec", a);
if (p2 == 2) {
_root.g.graphic.comexec(p1);
} else {
_root.g.graphic2.comexec(p1);
}
}
if (a.indexOf("flagSet") >= 0) {
getParameter("flagSet", a);
this["flag" + p1] = p2;
}
if (((a.indexOf("gameClear") >= 0) && (_root.nextConfig.length <= 0)) && (_root.jump.length <= 0)) {
_root.bgmSound.bgmSound.stop();
if (_root.soundMode) {
_root.clearSound.clearSound.start();
}
getParameter("gameClear", a);
_root.jump = "clear";
tellTarget ("_root") {
gotoAndPlay ("scoreBonus");
};
}
if (a.indexOf("gameOver") >= 0) {
getParameter("gameOver", a);
_root.jump = "gameover";
tellTarget ("_root") {
gotoAndPlay ("scoreBonus");
};
}
if (a.indexOf("jumpURL") >= 0) {
_root.bgmSound.bgmSound.stop();
if (_root.soundMode) {
_root.clearSound.clearSound.start();
}
strPara1 = true;
getParameter("jumpURL", a);
while ((p1.substr(0, 1) == " ") || (p1.substr(0, 1) == "%20")) {
p1 = p1.substr(1);
}
_root.message.gotoAndStop(1);
_root.playStatus = "pause";
_root.stop();
_root.jump = "/plugin/redirect/?" + p1;
tellTarget ("_root") {
gotoAndPlay ("scoreBonus");
};
}
if (a.indexOf("loadPic") >= 0) {
strPara1 = true;
getParameter("loadPic", a);
if ((p1 * 1) != 0) {
p1 = p1 * 1;
_root.g.pics["pic" + p1]._x = p2;
_root.g.pics["pic" + p1]._y = p3;
_root.g.pics["pic" + p1]._visible = true;
}
}
if (a.indexOf("nextLevel") >= 0) {
_root.bgmSound.bgmSound.stop();
if (_root.soundMode) {
_root.clearSound.clearSound.start();
}
strPara1 = true;
getParameter("nextLevel", a);
while ((p1.substr(0, 1) == " ") || (p1.substr(0, 1) == "%20")) {
p1 = p1.substr(1);
}
if (p2 == 1) {
_root.g.pics.pic.g.loadMovie(_root.cnfpath + _root.config.graphic2);
}
_root.nextConfig = p1;
_root.configURL.url = p1;
_root.message.gotoAndStop(1);
_root.ballColor = _root.g.ball.color;
if (p2 == 1) {
tellTarget ("_root") {
gotoAndPlay ("next");
};
} else {
tellTarget ("_root") {
gotoAndPlay ("start");
};
}
}
if (a.indexOf("preLoad") >= 0) {
strPara1 = true;
getParameter("preLoad", a);
while ((p1.substr(0, 1) == " ") || (p1.substr(0, 1) == "%20")) {
p1 = p1.substr(1);
}
_root.g.pics["pic" + p2].g.loadMovie(_root.cnfpath + p1);
_root.g.pics["pic" + p2]._visible = false;
}
if (a.indexOf("picNumber") >= 0) {
getParameter("picNumber", a);
var _local5 = 1;
while (_local5 <= p1) {
_root.g.pics.pic.duplicateMovieClip("pic" + _local5, _local5);
_root.g.pics["pic" + _local5]._x = 0;
_root.g.pics["pic" + _local5]._y = 0;
_root.g.pics["pic" + _local5]._visible = false;
_local5++;
}
_root.picNumber = _local5 - 1;
}
if (a.indexOf("removePic") >= 0) {
getParameter("removePic", a);
_root.g.pics["pic" + p1]._visible = false;
}
if (a.indexOf("resetTimer") >= 0) {
getParameter("resetTimer", a);
_root.timer = p1;
}
if (a.indexOf("setFlag") >= 0) {
getParameter("setFlag", a);
this["flag" + p1] = p2;
}
if (a.indexOf("stop") >= 0) {
getParameter("stop", a);
_root.playStatus = "pause";
}
if (a.indexOf("text") >= 0) {
strPara1 = true;
getParameter("text", a);
_root.g.text.text = p1;
_root.g.text._x = p2;
_root.g.text._y = p3;
_root.g.text._width = p4;
_root.g.text._height = p5;
_root.g.text._visible = true;
_root.g.text.timer = p6;
if (p6 > 0) {
_root.g.text.gotoAndPlay(2);
}
}
}
function com() {
i = 0;
var _local3 = false;
while (command[i].length > 0) {
a = command[i];
strPara1 = (strPara2 = (strPara3 = (strPara4 = (strPara5 = (strPara6 = (strPara7 = (strPara8 = (strPara9 = (strPara10 = (strPara11 = (strPara12 = false)))))))))));
var _local4 = 0;
if (a.substr(0, 2) == "On") {
_local4 = 2;
}
if (a.substr(0, 3) == "And") {
_local4 = 3;
}
if ((_local4 == 2) || ((_local4 == 3) && (_local3))) {
_local3 = false;
if (a.substr(_local4, 6) == "Amount") {
strPara1 = true;
getParameter("Amount", a);
if (p1.indexOf("p") < 0) {
p1 = p1 * 1;
_local3 = _root.bBlock >= p1;
if (_local3) {
if (_local4 == 2) {
var _local5 = "On";
} else {
var _local5 = "And";
}
if (p2 == 0) {
command[i] = _local5 + "False";
} else {
command[i] = (((_local5 + "Amount") + (p1 + p2)) + "|") + p2;
}
}
} else {
p1 = p1.substr(p1.indexOf("p") + 1) * 1;
_local3 = _root.bBlock >= ((_root.tBlock * p1) / 100);
if (_local3) {
if (_local4 == 2) {
var _local5 = "On";
} else {
var _local5 = "And";
}
if (p2 == 0) {
command[i] = _local5 + "False";
} else {
command[i] = (((_local5 + "Amountp") + (p1 + p2)) + "|") + p2;
}
}
}
}
if (a.substr(_local4, 5) == "Combo") {
getParameter("Combo", a);
_local3 = _root.com.comboFlag;
}
if (a.substr(_local4, 4) == "Flag") {
getParameter("Flag", a);
_local3 = this["flag" + p1] == p2;
}
if (a.substr(_local4, 3) == "Hit") {
getParameter("Hit", a);
_local3 = ((((p3 == 0) && (breakBlock)) || ((p3 == 1) && (hitBlock))) && (hitX == p1)) && (hitY == p2);
}
if (a.substr(_local4, 8) == "LifeRest") {
getParameter("LifeRest", a);
if (p2 == 0) {
_local3 = Miss && ((_root.life - p1) == 0);
} else {
_local3 = Miss && (((_root.life - p1) % p2) == 0);
}
}
if (a.substr(_local4, 7) == "PreGame") {
getParameter("PreGame", a);
_local3 = _root.playStatus == "load";
if (_local3) {
if (_local4 == 2) {
var _local5 = "On";
} else {
var _local5 = "And";
}
command[i] = _local5 + "False";
}
}
if (a.substr(_local4, 11) == "Probability") {
getParameter("Probability", a);
if ((((p2 == 0) && (breakBlock)) || ((p2 == 1) && (hitBlock))) || (p2 == 2)) {
_local3 = (Math.random() * 100) < p1;
}
}
if (a.substr(_local4, 5) == "Score") {
getParameter("Score", a);
_local3 = _root.score >= p1;
if (_local3) {
if (_local4 == 2) {
var _local5 = "On";
} else {
var _local5 = "And";
}
if (p2 == 0) {
command[i] = _local5 + "False";
} else {
command[i] = (((_local5 + "Score") + (p1 + p2)) + "|") + p2;
}
}
}
if (a.substr(_local4, 5) == "Smash") {
_local3 = _root.com.smashFlag;
}
if (a.substr(_local4, 5) == "Timer") {
getParameter("Timer", a);
if (_root.timer >= p1) {
if (p2 == 0) {
if (_root.timerBak <= p1) {
_local3 = true;
}
} else {
var _local7 = (_root.timer - p1) % p2;
var _local6 = _root.timerBak - ((math.floor((_root.timer - p1) / p2) * p2) + p1);
if ((_local6 <= 0) && (_local7 >= 0)) {
_local3 = true;
}
}
}
}
if (a.substr(_local4, 6) == "Upside") {
getParameter("Upside", a);
_local3 = _root.com.hitUpside;
}
}
if (_local3) {
comexec(a);
}
i++;
}
hitBlock = false;
breakBlock = false;
hitUpside = false;
smashFlag = false;
comboFlag = false;
hitX = -1;
hitY = -1;
Miss = false;
}
}
Instance of Symbol 254 MovieClip "scoreRanking" in Frame 8
onClipEvent (load) {
if ((!_root.rankingEnable) || (_root.nextConfig.length > 0)) {
this._visible = false;
} else {
myData = new LoadVars();
a = (_root.rankingTxt + "?dummy=") + new Date().getTime();
if (_root.rankingPath.indexOf("/") >= 0) {
a = _root.rankingPath.substring(0, _root.rankingPath.lastIndexOf("/") + 1) + a;
}
myData.load(a);
myData.onLoad = function () {
if (myData.totalCount >= 10000) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.scoreRanking.ave = math.floor(myData.ave * 100) / 100;
_root.scoreRanking.clearCount = myData.clearCount;
_root.scoreRanking.totalCount = myData.totalCount;
var _local2 = 1;
for(;;){
if (_local2 > 10) {
return(undefined);
}
_root.scoreRanking["name" + _local2] = myData["name" + _local2];
_root.scoreRanking["score" + _local2] = myData["score" + _local2];
_local2++;
};
};
}
}
Frame 10
if (first) {
if ((550 / g.border._width) > (400 / g.border._height)) {
_level0._xscale = 55000 / g.border._width;
_level0._yscale = _level0._xscale;
g._y = (((400 / _level0._yscale) * 100) - g.border._height) / 2;
} else {
_level0._yscale = 40000 / g.border._height;
_level0._xscale = _level0._yscale;
g._x = (((550 / _level0._xscale) * 100) - g.border._width) / 2;
}
host._x = g._x;
host._y = g._y;
option._x = (g.border._width - 120) + g._x;
option._y = (g.border._height - 16) + g._y;
status._x = g._x;
status._y = (g.border._height - 16) + g._y;
message._x = (g.border._width / 2) + g._x;
message._y = (g.border._height / 2) + g._y;
scoreRanking._width = g.border._width * 0.8;
if (((scoreRanking._height * scoreRanking._xscale) / 100) <= g.border._height) {
scoreRanking._yscale = scoreRanking._xscale;
} else {
scoreRanking._height = g.border._height * 0.8;
}
scoreRanking._x = (g.border._width / 2) + g._x;
scoreRanking._y = (g.border._height / 2) + g._y;
nameEntry._x = (g._x + (nameEntry._width / 2)) + 10;
nameEntry._y = (g._y + (nameEntry._height / 2)) + 10;
first = false;
}
Frame 11
if (!_root.soundMode) {
soundAttention._visible = false;
}
Instance of Symbol 275 MovieClip "gauge" in Frame 11
onClipEvent (enterFrame) {
g1get = Math.floor(_root.g.graphic.getBytesLoaded() / 100) / 10;
g1total = Math.floor(_root.g.graphic.getBytesTotal() / 100) / 10;
g2get = Math.floor(_root.g.graphic2.getBytesLoaded() / 100) / 10;
g2total = Math.floor(_root.g.graphic2.getBytesTotal() / 100) / 10;
preget = 0;
pretotal = 0;
var i = 0;
while (i <= _root.picNumber) {
preget = preget + _root.g.pics["pic" + i].g.getBytesLoaded();
pretotal = pretotal + _root.g.pics["pic" + i].g.getBytesTotal();
i++;
}
preget = Math.floor(preget / 100) / 10;
pretotal = Math.floor(pretotal / 100) / 10;
if (g1total > 0) {
gauge1.gotoAndStop(Math.floor((10 * g1get) / g1total) + 1);
} else {
gauge1.gotoAndStop(12);
}
if (g2total > 0) {
gauge2.gotoAndStop(Math.floor((10 * g2get) / g2total) + 1);
} else {
gauge2.gotoAndStop(12);
}
if (pretotal > 0) {
gauge3.gotoAndStop(Math.floor((10 * preget) / pretotal) + 1);
} else {
gauge3.gotoAndStop(12);
}
}
Frame 13
preget = 0;
pretotal = 0;
var i = 0;
while (i <= _root.picNumber) {
preget = preget + _root.g.pics["pic" + i].g.getBytesLoaded();
pretotal = pretotal + _root.g.pics["pic" + i].g.getBytesTotal();
i++;
}
if ((((((((g.graphic.getBytesLoaded() < g.graphic.getBytesTotal()) || (g.graphic.getBytesTotal() <= 0)) && (config.graphic1 != "")) || (((g.graphic2.getBytesLoaded() < g.graphic2.getBytesTotal()) || (g.graphic2.getBytesTotal() <= 0)) && (config.graphic2 != ""))) || (preget < pretotal)) || (rankingEnable && (entryName.length <= 0))) || (scoreRanking._visible)) || (slaveMode && (host.getBytesLoaded() < host.getBytesTotal()))) {
prevFrame();
play();
if (slaveMode && (host.getBytesLoaded() >= host.getBytesTotal())) {
config.configBlack._visible = false;
}
} else {
config._visible = false;
_root.g.pics.pic._visible = false;
_root.bgming = false;
nextConfig = "";
jump = "";
host.txtfile = _root.cnfpath + nefDocument;
host.gPathSt = "_root.g.graphic2";
host.gotoAndPlay(1);
if (slaveMode) {
_root.life--;
gotoAndStop (55);
} else {
g.ball._visible = true;
g.bar._visible = true;
if (_root.soundMode) {
_root.startSound.startSound.start();
}
}
}
Frame 15
stop();
playStatus = "stay";
g.ball.radian = -0.785398163397;
g.ball.ball.gotoAndStop(1);
_root.g.graphic2.comexec("onThrow");
g.combo = 0;
if (barRapid) {
barSmash = "rapid";
} else if (barHeavy) {
barSmash = "heavy";
} else if (barInc) {
barSmash = "inc";
} else if (barCtrl) {
barSmash = "ctrl";
} else {
barSmash = "none";
}
_root.option.weapon.weaponReset(_root.defaultItem);
_root.timerB = 0;
Frame 20
stop();
if (_root.soundMode && (!_root.bgming)) {
_root.bgmSound.bgmSound.start(0, 9999999);
_root.bgming = true;
}
playStatus = "play";
_root.life = _root.life - 1;
Frame 25
_root.bgmSound.bgmSound.stop();
if (_root.soundMode) {
_root.gameoverSound.gameoverSound.start();
}
message.gotoAndStop(2);
playStatus = "over";
stop();
Frame 30
playStatus = "clear";
g.ball._visible = false;
g.bar._visible = false;
var i = 0;
while (i < g.blocky) {
var j = 0;
while (j < g.blockx) {
var a = ((i * g.blockx) + j);
g.block["block" + a].removeMovieClip();
j++;
}
i++;
}
g.block2._visible = false;
Frame 32
message.gotoAndStop(3);
stop();
Frame 35
message.gotoAndStop(1);
playStatus = "clear";
stop();
Frame 40
config.version = "";
loadVariables (_root.cnfpath + nextConfig, "config");
playStatus = "load";
g.ball._visible = false;
g.bar._visible = false;
message.gotoAndStop(4);
Frame 42
if ((config.version != "B2") || (_root.g.pics.pic.g.getBytesLoaded() < _root.g.pics.pic.g.getBytesTotal())) {
prevFrame();
play();
} else {
_root.g.pics.pic._visible = true;
g.gotoAndStop("clear");
}
Frame 44
message.gotoAndStop(1);
gotoAndPlay (7);
Frame 45
playStatus = "bonus";
Frame 46
stop();
bonus._x = (g.border._width / 2) + g._x;
bonus._y = (g.border._height / 2) + g._y;
Frame 49
if (!_root.rankingEnable) {
if (jump == "gameover") {
gotoAndStop (25);
} else if (jump == "clear") {
gotoAndPlay (30);
} else if (jump == "host") {
gotoAndStop (55);
_root.host.release();
} else {
gotoAndPlay (30);
}
}
Frame 50
playStatus = "ranking";
message.gotoAndStop(5);
Instance of Symbol 300 MovieClip in Frame 50
onClipEvent (load) {
this.name = _root.entryName;
this.score = _root.score;
this.defname = _root.defaultName;
this.rankingTxt = _root.rankingTxt;
if (_root.jump == "gameover") {
this.status = "gameover";
} else {
this.status = "clear";
}
this.loadVariables(_root.rankingPath, "GET");
_root.stop();
this.onData = function () {
_root.gotoAndPlay("rankingRet");
};
}
Frame 53
stop();
Frame 54
message.gotoAndStop(1);
if (jump == "gameover") {
gotoAndStop (25);
} else if (jump == "clear") {
gotoAndPlay (30);
} else if (jump == "host") {
_root.host.release();
gotoAndStop (55);
_root.host.openPageNamed(_root.jumpLabel);
} else {
gotoAndPlay (30);
}
Frame 55
function slaveRelease() {
_root.life = _root.life + slaveReleaseLife;
slaveReleaseLife = 0;
status._visible = true;
option._visible = true;
g.ball._visible = true;
g.bar._visible = true;
if (_root.soundMode) {
_root.startSound.startSound.start();
}
gotoAndPlay (15);
}
stop();
status._visible = false;
option._visible = false;
g.ball._visible = false;
g.bar._visible = false;
playStatus = "pause";
slaveReleaseLife = 1;
i = _root.option.weapon.shotNumber;
while (i > 0) {
_root.g["shot" + i].removeMovieClip();
_root.option.weapon.shotNumber--;
i--;
}
i = 1;
while (i <= 500) {
_root.g["item" + i].removeMovieClip();
i++;
}
Symbol 11 Button
on (press) {
play();
}
Symbol 19 Button
on (press) {
if (Flag) {
Flag = false;
gotoAndStop (1);
} else {
Flag = true;
gotoAndStop (2);
}
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 28 Button
on (release) {
speedSet(_currentframe + 1);
gotoAndStop(_currentframe + 1);
}
Symbol 30 Button
on (release) {
speedSet(_currentframe - 1);
gotoAndStop(_currentframe - 1);
}
Symbol 37 Button
on (release) {
if (_currentframe < 10) {
colorSet(_currentframe + 1);
gotoAndStop(_currentframe + 1);
} else {
colorSet(1);
gotoAndStop (1);
}
}
Symbol 38 Button
on (release) {
if (_currentframe > 1) {
colorSet(_currentframe - 1);
gotoAndStop(_currentframe - 1);
} else {
colorSet(10);
gotoAndStop (10);
}
}
Symbol 55 MovieClip Frame 1
stop();
if (_root.keyboardMode) {
keyboard.Flag = true;
keyboard.gotoAndStop(2);
} else {
keyboard.Flag = false;
keyboard.gotoAndStop(1);
}
if (_root.blockMode) {
block.Flag = true;
block.gotoAndStop(2);
} else {
block.Flag = false;
block.gotoAndStop(1);
}
if (_root.soundMode) {
sound.Flag = true;
sound.gotoAndStop(2);
} else {
sound.Flag = false;
sound.gotoAndStop(1);
}
if (_root.effectMode) {
effect.Flag = true;
effect.gotoAndStop(2);
} else {
effect.Flag = false;
effect.gotoAndStop(1);
}
if (_root.liteMode) {
lite.Flag = true;
lite.gotoAndStop(2);
} else {
lite.Flag = false;
lite.gotoAndStop(1);
}
Instance of Symbol 24 MovieClip "keyboard" in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
_root.keyboardMode = true;
} else {
_root.keyboardMode = false;
}
}
Instance of Symbol 24 MovieClip "sound" in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
_root.soundMode = true;
if (!_root.bgming) {
_root.bgmSound.bgmSound.start(0, 9999999);
_root.bgming = true;
}
} else {
_root.soundMode = false;
_root.bgmSound.bgmSound.stop();
_root.bgming = false;
}
}
Instance of Symbol 24 MovieClip "effect" in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
_root.effectMode = true;
} else {
_root.effectMode = false;
}
}
Instance of Symbol 24 MovieClip "block" in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
if (!_root.blockMode) {
_root.blockMode = true;
_root.g.gotoAndPlay(6);
}
} else if (_root.blockMode) {
_root.blockMode = false;
_root.g.gotoAndPlay("blockUnvisible");
}
}
Instance of Symbol 35 MovieClip "keyboardSpeed" in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
function speedSet(speed) {
if (speed == 1) {
_root.barSpeedRate = 0;
return(undefined);
}
if (speed == 2) {
_root.barSpeedRate = 0.25;
return(undefined);
}
if (speed == 3) {
_root.barSpeedRate = 0.5;
return(undefined);
}
if (speed == 4) {
_root.barSpeedRate = 1;
return(undefined);
}
if (speed == 5) {
_root.barSpeedRate = 1.5;
return(undefined);
}
if (speed == 6) {
_root.barSpeedRate = 2;
}
}
if (_root.barSpeedRate == 0) {
gotoAndStop (1);
} else if (_root.barSpeedRate == 0.25) {
gotoAndStop (2);
} else if (_root.barSpeedRate == 0.5) {
gotoAndStop (3);
} else if (_root.barSpeedRate == 1) {
gotoAndStop (4);
} else if (_root.barSpeedRate == 1.5) {
gotoAndStop (5);
} else if (_root.barSpeedRate == 2) {
gotoAndStop (6);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 35 MovieClip "ballSpeed" in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
function speedSet(speed) {
if (speed == 1) {
_root.ballSpeedRate = 1;
return(undefined);
}
if (speed == 2) {
_root.ballSpeedRate = 0.25;
return(undefined);
}
if (speed == 3) {
_root.ballSpeedRate = 0.5;
return(undefined);
}
if (speed == 4) {
_root.ballSpeedRate = 1;
return(undefined);
}
if (speed == 5) {
_root.ballSpeedRate = 1.5;
return(undefined);
}
if (speed == 6) {
_root.ballSpeedRate = 2;
}
}
if (_root.ballSpeedRate == 0) {
gotoAndStop (1);
} else if (_root.ballSpeedRate == 0.25) {
gotoAndStop (2);
} else if (_root.ballSpeedRate == 0.5) {
gotoAndStop (3);
} else if (_root.ballSpeedRate == 1) {
gotoAndStop (4);
} else if (_root.ballSpeedRate == 1.5) {
gotoAndStop (5);
} else if (_root.ballSpeedRate == 2) {
gotoAndStop (6);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 53 MovieClip "ballColor" in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
function colorSet(color) {
if (color == 1) {
_root.g.ball.color = "white";
} else if (color == 2) {
_root.g.ball.color = "orange";
} else if (color == 3) {
_root.g.ball.color = "yellow";
} else if (color == 4) {
_root.g.ball.color = "green";
} else if (color == 5) {
_root.g.ball.color = "gray";
} else if (color == 6) {
_root.g.ball.color = "purple";
} else if (color == 7) {
_root.g.ball.color = "black";
} else if (color == 8) {
_root.g.ball.color = "red";
} else if (color == 9) {
_root.g.ball.color = "blue";
} else if (color == 10) {
_root.g.ball.color = "brown";
}
_root.g.ball.setColor();
}
if (_root.g.ball.color == "white") {
gotoAndStop (1);
} else if (_root.g.ball.color == "orange") {
gotoAndStop (2);
} else if (_root.g.ball.color == "yellow") {
gotoAndStop (3);
} else if (_root.g.ball.color == "green") {
gotoAndStop (4);
} else if (_root.g.ball.color == "gray") {
gotoAndStop (5);
} else if (_root.g.ball.color == "purple") {
gotoAndStop (6);
} else if (_root.g.ball.color == "black") {
gotoAndStop (7);
} else if (_root.g.ball.color == "red") {
gotoAndStop (8);
} else if (_root.g.ball.color == "blue") {
gotoAndStop (9);
} else if (_root.g.ball.color == "brown") {
gotoAndStop (10);
} else {
gotoAndStop (1);
}
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 10
stop();
Symbol 56 MovieClip Frame 20
gotoAndStop (1);
Symbol 67 MovieClip Frame 1
stop();
version = _root.version;
Instance of Symbol 24 MovieClip "prev" in Symbol 67 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
gotoAndStop (1);
Flag = false;
if (_parent._currentframe > 1) {
_parent.prevFrame();
} else {
_parent.gotoAndStop(5);
}
}
}
Instance of Symbol 24 MovieClip "next" in Symbol 67 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
gotoAndStop (1);
Flag = false;
_parent.nextFrame();
}
}
Symbol 67 MovieClip Frame 6
gotoAndStop (1);
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 10
stop();
Symbol 68 MovieClip Frame 20
gotoAndStop (1);
Symbol 73 Button
on (release) {
this.gotoAndStop("false");
if ((_root.playStatus == "pause") && (_parent.guidePause)) {
_root.playStatus = "play";
}
_parent.guidePause = false;
}
Instance of Symbol 71 MovieClip "gauge" in Symbol 107 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = ((41.5 * _root.weaponGauge) / _root.weaponGaugeMax);
}
Instance of Symbol 56 MovieClip "option" in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(219)) {
a = 1;
} else if (Key.isDown(221)) {
a = -1;
} else {
a = 0;
}
if ((a != 0) && (aOld != a)) {
if (_root.ballSpeedRate == 0) {
speed = 1;
} else if (_root.ballSpeedRate == 0.25) {
speed = 2;
} else if (_root.ballSpeedRate == 0.5) {
speed = 3;
} else if (_root.ballSpeedRate == 1) {
speed = 4;
} else if (_root.ballSpeedRate == 1.5) {
speed = 5;
} else if (_root.ballSpeedRate == 2) {
speed = 6;
} else {
speed = 1;
}
speed = Math.min(Math.max(speed + a, 2), 6);
speedSet(speed);
_root.g.popup.duplicateMovieClip("speedRate", 2000);
_root.g.speedRate._x = ((_root.option._x + _root.option.option._x) + _root.option.option._width) - _root.g._x;
_root.g.speedRate._y = (_root.option._y + _root.option.option._y) - _root.g._y;
var mes = (("SpeedRate" + (_root.ballSpeedRate * 100)) + "%");
_root.g.speedRate.mes = mes;
}
aOld = a;
}
onClipEvent (load) {
function speedSet(sp) {
if (sp == 1) {
_root.ballSpeedRate = 1;
return(undefined);
}
if (sp == 2) {
_root.ballSpeedRate = 0.25;
return(undefined);
}
if (sp == 3) {
_root.ballSpeedRate = 0.5;
return(undefined);
}
if (sp == 4) {
_root.ballSpeedRate = 1;
return(undefined);
}
if (sp == 5) {
_root.ballSpeedRate = 1.5;
return(undefined);
}
if (sp == 6) {
_root.ballSpeedRate = 2;
}
}
}
Instance of Symbol 107 MovieClip "weapon" in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
onClipEvent (load) {
function weaponReset(no) {
label = _root.itemLabel[no];
if (((label != "1up") && (label != "pts")) && (label != "timeplus")) {
if ((_root.weapon == "wide") || (_root.weapon == "short")) {
_root.barMaking(1);
}
if ((_root.weapon == "ctrl") || (_root.weapon == "grav")) {
_root.ballReviseFlag = true;
}
if (_root.weapon == "rapid") {
if (rapidUsing && (_root.g.ball.ball._currentframe == 2)) {
_root.g.ball.ball.gotoAndStop(1);
}
rapidUsing = false;
}
if (_root.weapon == "guard") {
i = _root.itemVal[1];
blx = _root.g.blockx;
j = 0;
while (j <= blx) {
if (_root.block[(i * blx) + j] == 0.5) {
_root.block[(i * blx) + j] = 0;
_root.g["shot" + shotNumber].removeMovieClip();
shotNumber--;
}
j++;
}
}
_root.itemVal = new Array();
_root.itemVal = [];
_root.itemVal = _root.itemValue[no].split(",");
i = 0;
while (i < _root.itemVal.length) {
_root.itemVal[i] = _root.itemVal[i] * 1;
i++;
}
_root.itemNo = no;
_root.weapon = label;
_root.weaponGaugeMax = _root.itemGaugeMax[no];
_root.weaponGauge = _root.weaponGaugeMax;
}
if (label === "boost") {
_root.itemSwitchable = true;
_root.itemPaddleHit = false;
_root.itemSingle = false;
} else if (label === "ctrl") {
_root.itemSwitchable = false;
_root.itemPaddleHit = false;
_root.itemSingle = false;
} else if (label === "shot") {
_root.itemSwitchable = true;
_root.itemPaddleHit = false;
_root.itemSingle = true;
} else if (label === "wide") {
_root.itemSwitchable = false;
_root.itemPaddleHit = false;
_root.itemSingle = false;
_root.barMaking(_root.itemVal[0]);
} else if (label === "rapid") {
_root.itemSwitchable = true;
_root.itemPaddleHit = false;
_root.itemSingle = false;
} else if (label === "bomb") {
_root.itemSwitchable = true;
_root.itemPaddleHit = false;
_root.itemSingle = true;
} else if (label === "short") {
_root.itemSwitchable = false;
_root.itemPaddleHit = false;
_root.itemSingle = false;
_root.barMaking(_root.itemVal[0]);
} else if (label === "panic") {
_root.itemSwitchable = false;
_root.itemPaddleHit = true;
_root.itemSingle = false;
} else if (label === "guard") {
_root.itemSwitchable = false;
_root.itemPaddleHit = false;
_root.itemSingle = false;
blx = _root.g.blockx;
blw = _root.g.block.block._width;
blh = _root.g.block.block._height;
if (isNaN(_root.itemVal[1])) {
i = Math.floor(_root.g.border._height / blh) - 1;
} else {
i = _root.itemVal[1] * 1;
}
_root.itemVal[1] = i;
j = 0;
while (j <= blx) {
if (isNaN(_root.itemVal[0])) {
p = 100;
} else {
p = _root.itemVal[0] * 1;
}
if ((Math.random() * 100) <= p) {
if ((isNaN(_root.block[(i * blx) + j]) || (_root.block[(i * blx) + j] == 0)) || (_root.block[(i * blx) + j] == 0.5)) {
_root.block[(i * blx) + j] = 0.5;
shotNumber++;
if (shotNumber >= 300) {
shotNumber = 1;
}
_root.g.shot.duplicateMovieClip("shot" + shotNumber, shotNumber + 1200);
_root.g["shot" + shotNumber].gotoAndStop(3);
_root.g["shot" + shotNumber]._x = j * blw;
_root.g["shot" + shotNumber]._y = i * blh;
_root.g["shot" + shotNumber]._width = blw;
_root.g["shot" + shotNumber]._height = blh;
}
}
j++;
}
} else if (label === "grav") {
_root.itemSwitchable = false;
_root.itemPaddleHit = true;
gravRocket = false;
_root.itemSingle = false;
} else if (label === "1up") {
_root.life++;
} else if (!(label === "pts")) {
if (label === "speedup") {
_root.itemSwitchable = false;
_root.itemPaddleHit = false;
_root.itemSingle = false;
} else if (label === "speeddown") {
_root.itemSwitchable = false;
_root.itemPaddleHit = false;
_root.itemSingle = false;
} else if (label === "timeplus") {
_root.timer = Math.max(_root.timer - (_root.itemValue[no].split(",")[0] * 1000), 0);
} else if (label === "xxx") {
_root.itemSwitchable = true;
_root.itemPaddleHit = false;
_root.itemSingle = true;
} else {
stop();
}
}
var _local3 = "";
if (label == "1up") {
_local3 = "1up";
}
if (label == "pts") {
_local3 = _root.itemScore[no] + "pts.";
}
if (_local3 != "") {
_root.g.popup.duplicateMovieClip("hit" + _root.g.hits, _root.g.hits);
_root.g["hit" + _root.g.hits]._x = _root.g.bar._x;
_root.g["hit" + _root.g.hits]._y = _root.g.bar._y;
_root.g["hit" + _root.g.hits].mes = _local3;
_root.g.hits++;
if (_root.g.hits >= 500) {
_root.g.hits = 1;
}
}
if (_root.itemGuide && (!_root.itemGet[no])) {
if (_root.playStatus == "play") {
_root.playStatus = "pause";
guidePause = true;
}
guide.gotoAndStop(label);
_root.itemGet[no] = true;
}
}
function itemFunction(label, using) {
if (label === "boost") {
if (using) {
_root.g.speed = Math.max(_root.g.baseSpeed * _root.itemVal[0], _root.g.speed);
}
} else if (label === "ctrl") {
if (_root.weaponGauge > 0) {
var _local4 = Math.cos(_root.g.radian) * _root.g.speed;
var _local2 = Math.sin(_root.g.radian) * _root.g.speed;
sctrl = _root.g.speed / _root.itemVal[0];
if (_root.g.x > _root.g._xmouse) {
_local4 = _local4 - sctrl;
} else {
_local4 = _local4 + sctrl;
}
if (_root.g.y > _root.g._ymouse) {
_local2 = _local2 - sctrl;
} else {
_local2 = _local2 + sctrl;
}
_root.g.radian = Math.atan2(_local2, _local4);
_root.g.speed = Math.sqrt((_local4 * _local4) + (_local2 * _local2));
}
} else if (label === "shot") {
if ((!usingOld) && (using)) {
shotNumber++;
if (shotNumber >= 300) {
shotNumber = 1;
}
_root.g.shot.duplicateMovieClip("shot" + shotNumber, shotNumber + 1200);
_root.g["shot" + shotNumber]._x = _root.g.bar._x;
_root.g["shot" + shotNumber]._y = _root.g.bar._y;
_root.g["shot" + shotNumber].gotoAndStop(1);
_root.g["shot" + shotNumber].speed = _root.itemVal[0] * 1;
}
} else if (!(label === "wide")) {
if (label === "rapid") {
if (using) {
_root.g.ball.ball.gotoAndStop(2);
if (_root.soundMode && (!rapidUsing)) {
_root.smashSound.smashSound.start();
}
rapidUsing = true;
} else {
if (rapidUsing && (_root.g.ball.ball._currentframe == 2)) {
_root.g.ball.ball.gotoAndStop(1);
}
rapidUsing = false;
}
} else if (label === "bomb") {
if ((!usingOld) && (using)) {
shotNumber++;
if (shotNumber >= 300) {
shotNumber = 1;
}
_root.g.shot.duplicateMovieClip("shot" + shotNumber, shotNumber + 1200);
_root.g["shot" + shotNumber].gotoAndStop(2);
_root.g["shot" + shotNumber]._x = _root.g.x;
_root.g["shot" + shotNumber]._y = _root.g.y;
if ((_root.itemVal.length < 2) || (isNaN(_root.itemVal[1]))) {
_root.g["shot" + shotNumber].p = 100;
} else {
_root.g["shot" + shotNumber].p = _root.itemVal[1] * 1;
}
if ((_root.itemVal.length < 3) || (isNaN(_root.itemVal[2]))) {
r2 = _root.itemVal[0] * 2.5;
} else {
r2 = _root.itemVal[2] * 2;
}
_root.g["shot" + shotNumber]._width = r2;
_root.g["shot" + shotNumber]._height = r2;
_root.g["shot" + shotNumber].flag = true;
_root.g["shot" + shotNumber].dis = _root.itemVal[0] * 1;
}
} else if (!(label === "short")) {
if (!(label === "panic")) {
if (!(label === "guard")) {
if (label === "grav") {
if (_root.weaponGauge > 0) {
var _local4 = Math.cos(_root.g.radian) * _root.g.speed;
var _local2 = Math.sin(_root.g.radian) * _root.g.speed;
sctrl = _root.g.speed / _root.itemVal[0];
_local2 = _local2 + sctrl;
if ((_local2 > 0) && (_root.itemVal[2] != 0)) {
_local2 = Math.min(_local2, _root.itemVal[2]);
}
_root.g.radian = Math.atan2(_local2, _local4);
if (gravRocket && (_local2 < 0)) {
_root.g.speed = Math.sqrt((_local4 * _local4) + (((_local2 * _local2) * _root.itemVal[1]) * _root.itemVal[1]));
} else {
_root.g.speed = Math.sqrt((_local4 * _local4) + (_local2 * _local2));
}
if (_local2 > 0) {
gravRocket = false;
}
}
} else if (label === "speedup") {
_root.g.speed = Math.max(_root.g.baseSpeed + _root.itemVal[0], _root.g.speed);
} else if (label === "speeddown") {
_root.g.speed = Math.min(_root.g.baseSpeed - _root.itemVal[0], _root.g.speed);
} else if (label === "xxx") {
!((!usingOld) && using);
}
}
}
}
}
if ((((!usingOld) && (using)) && (_root.soundMode)) && (_root.itemSwitchable)) {
_root["itemSE" + _root.itemNo].sound.start();
}
usingOld = using;
}
function paddleHit(label, using) {
if (label === "grav") {
if ((_root.weaponGauge > 0) && (!using)) {
var _local3 = Math.cos(_root.g.radian) * _root.g.speed;
var _local2 = Math.sin(_root.g.radian) * _root.g.speed;
_local2 = _local2 * _root.itemVal[1];
gravRocket = true;
} else {
gravRocket = false;
}
return(undefined);
}
if (!(label === "panic")) {
return(undefined);
}
if (Math.random() < 0.5) {
_root.g.radian = -Math.min(Math.max((Math.random() * Math.PI) / 2, _root.g.minRadian), _root.g.maxRadian);
} else {
_root.g.radian = Math.PI + Math.min(Math.max((Math.random() * Math.PI) / 2, _root.g.minRadian), _root.g.maxRadian);
}
return(undefined);
}
guide.gotoAndStop("false");
guidePause = false;
_root.itemGet = new Array();
i = 1;
while (i <= 16) {
itemGet[i] = false;
i++;
}
stop();
}
Symbol 129 MovieClip Frame 1
ver = _root.version;
Symbol 136 Button
on (release, keyPress "<Enter>") {
tellTarget ("_root") {
loadVariables (configURL.my_url, "_root/config");
};
}
Symbol 148 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip in Symbol 148 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 4) + 1);
}
Symbol 149 MovieClip Frame 1
function const() {
if (_root.tBlock == 0) {
var _local6 = true;
} else {
var _local6 = false;
}
var _local5 = 0;
while (_local5 < _parent.blocky) {
var _local4 = 0;
while (_local4 < _parent.blockx) {
if (_root.block[(_local5 * _parent.blockx) + _local4] > 0) {
if (_root.block[(_local5 * _parent.blockx) + _local4] == 7) {
if (((blockExist(_local4, _local5 - 1) || (blockExist(_local4 - 1, _local5))) || (blockExist(_local4 + 1, _local5))) || (blockExist(_local4, _local5 + 1))) {
block.duplicateMovieClip("block" + ((_local5 * _parent.blockx) + _local4), (_local5 * _parent.blockx) + _local4);
this["block" + ((_local5 * _parent.blockx) + _local4)]._x = _local4 * block._width;
this["block" + ((_local5 * _parent.blockx) + _local4)]._y = _local5 * block._height;
}
} else {
block.duplicateMovieClip("block" + ((_local5 * _parent.blockx) + _local4), (_local5 * _parent.blockx) + _local4);
this["block" + ((_local5 * _parent.blockx) + _local4)]._x = _local4 * block._width;
this["block" + ((_local5 * _parent.blockx) + _local4)]._y = _local5 * block._height;
this["block" + ((_local5 * _parent.blockx) + _local4)].gotoAndStop(_root.blockMask);
if (_local6 && (_root.block[(_local5 * _parent.blockx) + _local4] != 5)) {
_root.tBlock++;
}
if (_root.block[(_local5 * _parent.blockx) + _local4] == 2) {
this["block" + ((_local5 * _parent.blockx) + _local4)].vit = 2;
}
if (_root.block[(_local5 * _parent.blockx) + _local4] == 3) {
this["block" + ((_local5 * _parent.blockx) + _local4)].vit = 3;
}
}
}
_local4++;
}
_local5++;
}
if (_root.clearBlocks.substr(0, 1) == "p") {
_root.clearBlocks = (_root.tBlock * _root.clearBlocks.substr(1)) / 100;
} else {
_root.clearBlocks = _root.clearBlocks * 1;
}
block._visible = false;
block._x = -block._width;
block._y = -block._height;
}
function blockExist(j, i) {
var _local3 = false;
if ((_root.block[(i * _parent.blockx) + j] != 0) && (_root.block[(i * _parent.blockx) + j] != 7)) {
_local3 = true;
}
return(_local3);
}
function blockMaking(j, i) {
block.duplicateMovieClip("block" + ((i * _parent.blockx) + j), (i * _parent.blockx) + j);
this["block" + ((i * _parent.blockx) + j)]._x = j * block._width;
this["block" + ((i * _parent.blockx) + j)]._y = i * block._height;
this["block" + ((i * _parent.blockx) + j)].gotoAndStop(_root.blockMask);
if (tBlockAuto) {
_root.tBlock++;
}
if (_root.block[(i * _parent.blockx) + j] == 2) {
this["block" + ((i * _parent.blockx) + j)].vit = 2;
}
if (_root.block[(i * _parent.blockx) + j] == 3) {
this["block" + ((i * _parent.blockx) + j)].vit = 3;
}
}
const();
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
this._visible = false;
timer = 0;
stop();
Symbol 157 MovieClip Frame 2
timer0 = _root.timer;
Symbol 157 MovieClip Frame 4
if ((_root.timer - timer0) < timer) {
prevFrame();
play();
} else {
gotoAndStop (1);
}
Symbol 159 MovieClip Frame 1
this._visible = false;
timer = 0;
stop();
Symbol 159 MovieClip Frame 2
timer0 = _root.timer;
Symbol 159 MovieClip Frame 4
if ((_root.timer - timer0) < timer) {
prevFrame();
play();
} else {
gotoAndStop (1);
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
function setColor() {
gotoAndStop(color);
}
setColor();
stop();
Instance of Symbol 163 MovieClip "ball" in Symbol 164 MovieClip Frame 2
onClipEvent (enterFrame) {
}
onClipEvent (load) {
function getVarBlock() {
if (_root.liteMode) {
if (math.sin(radian) > 0) {
y1 = r;
x1 = 0;
} else {
y1 = -r;
x1 = 0;
}
if (math.cos(radian) > 0) {
x2 = r;
y2 = 0;
} else {
x2 = -r;
y2 = 0;
}
return(undefined);
}
x0 = math.cos(radian) * r;
y0 = math.sin(radian) * r;
if (math.sin(radian) > 0) {
y1 = r;
x1 = 0;
} else {
y1 = -r;
x1 = 0;
}
if (math.cos(radian) > 0) {
x2 = r;
y2 = 0;
} else {
x2 = -r;
y2 = 0;
}
x3 = math.cos(radian + 1.57079632679) * r;
y3 = math.sin(radian + 1.57079632679) * r;
x4 = math.cos(radian - 1.57079632679) * r;
y4 = math.sin(radian - 1.57079632679) * r;
}
function flg(c) {
if (c < 0) {
return(-1);
}
return(1);
}
function whatBlock(xtemp, ytemp) {
i = math.floor((y + ytemp) / _parent.block.block._height);
j = math.floor((x + xtemp) / _parent.block.block._width);
if (!_parent.block["block" + ((i * _parent.blockx) + j)]._visible) {
flagbh = false;
}
bx = _parent.block["block" + ((i * _parent.blockx) + j)]._x;
by = _parent.block["block" + ((i * _parent.blockx) + j)]._y;
bw = _parent.block["block" + ((i * _parent.blockx) + j)]._width;
bh = _parent.block["block" + ((i * _parent.blockx) + j)]._height;
if (flagbh && (_root.playStatus != "over")) {
_root.com.hitBlock = true;
_root.com.breakBlock = true;
_root.com.hitX = j;
_root.com.hitY = i;
_parent.block["block" + ((i * _parent.blockx) + j)].removeMovieClip();
_parent.block2["block" + ((i * _parent.blockx) + j)].removeMovieClip();
_root.block[(i * _parent.blockx) + j] = 0;
_root.score = _root.score + 10;
_root.bBlock++;
_root.com.command();
if (_root.bBlock >= _root.clearBlocks) {
if (_root.clearJump == "clear") {
_root.com.comexec("gameClear");
return(undefined);
}
if (_root.clearJump.substr(0, 4) == "url:") {
_root.com.comexec("jumpURL " + _root.clearJump.substr(4));
return(undefined);
}
if (_root.clearJump.substr(0, 5) == "next:") {
_root.com.comexec(("nextLevel " + _root.clearJump.substr(5)) + "|2");
}
}
}
}
function vhHit0(xtemp, ytemp) {
if (((y + ytemp) <= (by + 1.5)) || ((y + ytemp) >= ((by + bh) - 1.5))) {
flag0 = true;
} else {
flag0 = false;
}
x00 = x + xtemp;
y00 = y + ytemp;
}
function vhHit(xtemp, ytemp) {
if (((y + ytemp) <= (by + 1.5)) || ((y + ytemp) >= ((by + bh) - 1.5))) {
flag0 = true;
} else {
flag0 = false;
}
if (xtemp > 0) {
if (ytemp > 0) {
x00 = bx;
y00 = by;
} else {
x00 = bx;
y00 = by + bh;
}
return(undefined);
}
if (ytemp > 0) {
x00 = bx + bw;
y00 = by;
return(undefined);
}
x00 = bx + bw;
y00 = by + bh;
}
function hitGraphic(xtemp, ytemp) {
_parent.hit.duplicateMovieClip("hit" + _parent.hits, _parent.hits);
_parent["hit" + _parent.hits]._x = xtemp;
_parent["hit" + _parent.hits]._y = ytemp;
_parent.hits++;
}
function blockHit() {
flagbh = false;
x00 = x;
y00 = y;
if (flag01 && (flag02)) {
whatBlock(x1, y1);
var _local8 = Math.abs(this._x - (bx + (bw / 2)));
var _local6 = Math.abs(this._y - (by + (bh / 2)));
whatBlock(x2, y2);
var _local7 = Math.abs(this._x - (bx + (bw / 2)));
var _local5 = Math.abs(this._y - (by + (bh / 2)));
if ((_local8 == _local7) && (_local6 == _local5)) {
if ((this._x >= bx) && (this._x <= (bx + bw))) {
flag02 = false;
} else if ((this._y >= by) && (this._y <= (by + bh))) {
flag01 = false;
} else {
var _local4;
var _local9;
if (this._x > (bx + (bw / 2))) {
_local4 = bx + bw;
} else {
_local4 = bx;
}
if (this._y > (by + (bh / 2))) {
_local9 = by + bh;
} else {
_local9 = by;
}
var _local3 = this._y - ((this._x - _local4) * Math.tan(radian));
if ((_local3 <= (by + 0.5)) || (_local3 >= ((by + bh) - 0.5))) {
flag02 = false;
} else {
flag01 = false;
}
}
} else if ((((_local8 ^ (2 + _local6)) ^ (2 < _local7)) ^ (2 + _local5)) ^ 2) {
flag02 = false;
} else {
flag01 = false;
}
}
if (flag01 && (!flagbh)) {
flagbh = true;
whatBlock(x1, y1);
x00 = x + x1;
y00 = y + y1;
flag0 = true;
}
if (flag02 && (!flagbh)) {
flagbh = true;
whatBlock(x2, y2);
x00 = x + x2;
y00 = y + y2;
flag0 = false;
}
if (!_root.liteMode) {
if (flag00 && (!flagbh)) {
flagbh = true;
whatBlock(x0, y0);
vhHit0(x0, y0);
}
if (flag03 && (!flagbh)) {
flagbh = true;
whatBlock(x3, y3);
vhHit(x3, y3);
}
if (flag04 && (!flagbh)) {
flagbh = true;
whatBlock(x4, y4);
vhHit(x4, y4);
}
}
if (flagbh) {
if (_root.effectMode) {
hitGraphic(x00, y00);
}
if (((_currentframe == 1) && (_root.soundMode)) && (_root.playStatus == "play")) {
_root.hitSound.start();
}
}
return(flagbh);
}
function vBound() {
radian = -radian;
getVarBlock();
}
function hBound() {
radian = 3.14159265359 - radian;
getVarBlock();
}
function scBorder() {
if (x < r) {
radian = 3.14159265359 - radian;
x = ((this._width / 2) * 2) - x;
getVarBlock();
if (((_currentframe == 1) && (_root.soundMode)) && (_root.playStatus == "play")) {
_root.hitSound.start();
}
} else if (x > (borw - r)) {
radian = 3.14159265359 - radian;
x = ((_parent.border._width - (this._width / 2)) * 2) - x;
getVarBlock();
if (((_currentframe == 1) && (_root.soundMode)) && (_root.playStatus == "play")) {
_root.hitSound.start();
}
}
if (y < r) {
_root.com.hitUpside = true;
radian = -radian;
y = ((this._height / 2) * 2) - y;
getVarBlock();
if (((_currentframe == 1) && (_root.soundMode)) && (_root.playStatus == "play")) {
_root.hitSound.start();
}
return(undefined);
}
if (y > (borh - r)) {
if (_root.playStatus == "over") {
radian = -radian;
y = ((_parent.border._height - (this._height / 2)) * 2) - y;
getVarBlock();
return(undefined);
}
_root.com.Miss = true;
if (_root.life > 0) {
vx = 0;
_root.gotoAndPlay("throw");
return(undefined);
}
_root.jump = "gameover";
if (_root.rankingEnable) {
_root.gotoAndPlay("ranking");
return(undefined);
}
_root.gotoAndStop("gameover");
}
}
function racketHit() {
if ((((y > ((_parent.bar._y - (_parent.bar._height / 2)) - r)) && (y < ((_parent.bar._y + (_parent.bar._height / 2)) + r))) && (x > ((_parent.bar._x - (_parent.bar._width / 2)) - r))) && (x < ((_parent.bar._x + (_parent.bar._width / 2)) + r))) {
radian = -radian;
y = (((_parent.bar._y - (_parent.bar._height / 2)) - r) * 2) - y;
if ((x < ((_parent.bar._x - (_parent.bar._width / 2)) + _parent.bar.edgeWidth)) || (x > ((_parent.bar._x + (_parent.bar._width / 2)) - _parent.bar.edgeWidth))) {
if (math.cos(radian) > 0) {
radian = -math.min(math.max((math.random() * 3.14159265359) / 2, minRadian), maxRadian);
} else {
radian = 3.14159265359 + math.min(math.max((math.random() * 3.14159265359) / 2, minRadian), maxRadian);
}
}
if (((x >= (_parent.bar._x - (_parent.bar.criticalWidth / 2))) && (x <= (_parent.bar._x + (_parent.bar.criticalWidth / 2)))) && (_root.playStatus == "play")) {
this.gotoAndStop(2);
if (_root.soundMode) {
_root.smashSound.start();
}
_root.score = _root.score + 100;
} else {
this.gotoAndStop(1);
if (_root.soundMode && (_root.playStatus == "play")) {
_root.hitSound.start();
}
}
getVarBlock();
}
}
function hitCheck(xtemp, ytemp) {
xtemp = math.min(math.max(xtemp, r), (_parent.block.block._width * _parent.blockx) - r);
ytemp = math.min(math.max(ytemp, r), _parent.border._height - r);
i = math.floor(ytemp / _parent.block.block._height);
j = math.floor(xtemp / _parent.block.block._width);
if (_parent.block["block" + ((i * _parent.blockx) + j)]._visible) {
return(true);
}
return(false);
}
function setPosition(p) {
if (_root.liteMode) {
x = x + (math.cos(radian) * p);
y = y + (math.sin(radian) * p);
k = k + p;
flag01 = hitCheck(x + x1, y + y1);
flag02 = hitCheck(x + x2, y + y2);
return(undefined);
}
x = x + (math.cos(radian) * p);
y = y + (math.sin(radian) * p);
k = k + p;
flag00 = hitCheck(x + x0, y + y0);
flag01 = hitCheck(x + x1, y + y1);
flag02 = hitCheck(x + x2, y + y2);
flag03 = hitCheck(x + x3, y + y3);
flag04 = hitCheck(x + x4, y + y4);
}
function dummy() {
if (_root.liteMode) {
return(undefined);
}
var _local10 = this._x;
var _local9 = this._y;
var _local5 = this._height / 2;
var _local4 = this.basespeed * _root.ballSpeedRate;
getVarBlock();
var _local18 = _parent.block.block._width;
var _local14 = _parent.block.block._height;
var _local15 = _parent.blockx;
var _local7 = _parent.bar._x;
var _local6 = _parent.bar._y;
var _local16 = _parent.bar._width / 2;
var _local8 = _parent.bar._height / 2;
var _local11 = _parent.bar.edgeWidth;
var _local19 = _parent.bar.criticalWidth / 2;
var _local12 = _parent.vx;
var _local17 = _parent.border._width;
var _local13 = _parent.border._height;
if ((_root.playStatus == "play") || (_root.playStatus == "over")) {
if (_currentframe == 2) {
speed = _local4 * 2;
} else if (Key.isDown(90)) {
speed = _local4 * 3;
} else {
speed = _local4;
}
k = 0;
flag00 = false;
flag01 = false;
flag02 = false;
flag03 = false;
flag04 = false;
while (k < speed) {
setPosition(precision);
if (blockHit() && (_currentframe == 1)) {
if (flag0) {
vBound();
} else {
hBound();
}
}
scBorder();
racketHit();
}
this._x = _local10;
this._y = _local9;
return(undefined);
}
if (_root.playStatus == "stay") {
this._x = _local7;
this._y = (_local6 - _local8) - _local5;
}
}
}
Symbol 175 MovieClip Frame 15
stop();
_parent.removeMovieClip();
Symbol 203 MovieClip Frame 20
this.removeMovieClip();
Symbol 207 MovieClip Frame 1
g.mes = mes;
Symbol 207 MovieClip Frame 30
this.removeMovieClip();
Symbol 209 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
block._width = _parent.block.block._width;
block._height = _parent.block.block._height;
var i = 0;
while (i < _parent.blocky) {
var j = 0;
while (j < _parent.blockx) {
if (((_root.block[(i * _parent.blockx) + j] > 0) && (_root.block[(i * _parent.blockx) + j] != 5)) && (_root.block[(i * _parent.blockx) + j] != 7)) {
block.duplicateMovieClip("block" + ((i * _parent.blockx) + j), (i * _parent.blockx) + j);
this["block" + ((i * _parent.blockx) + j)]._x = j * block._width;
this["block" + ((i * _parent.blockx) + j)]._y = i * block._height;
}
j++;
}
i++;
}
block._visible = false;
stop();
Symbol 211 MovieClip Frame 1
function ballAction() {
ballPath = "ball";
x = this[ballPath]._x;
y = this[ballPath]._y;
r = this[ballPath]._height / 2;
baseSpeed = this[ballPath].baseSpeed[0] * _root.ballSpeedRate;
incStart = this[ballPath].baseSpeed[1] * 1;
incSec = this[ballPath].baseSpeed[2] * 1;
incExp = this[ballPath].baseSpeed[3] * 1;
incMax = this[ballPath].baseSpeed[4] * 1;
radian = this[ballPath].radian;
blw = this.block.block._width;
blh = this.block.block._height;
blx = this.blockx;
if (_root.playStatus == "play") {
var _local5 = _xmouse;
} else {
var _local5 = this.bar._x;
}
bary = this.bar._y;
barw2 = this.bar._width / 2;
barh2 = this.bar._height / 2;
barEdge = this.bar.edgeWidth;
barCrit = this.bar.criticalWidth / 2;
minRadian = this[ballPath].minRadian;
maxRadian = this[ballPath].maxRadian;
vx = this.vx;
borw = this.border._width;
borh = this.border._height;
if (((_root.timerB / 1000) >= incStart) && (incSec != 0)) {
baseSpeed = Math.min(baseSpeed + (Math.pow(((_root.timerB / 1000) - incStart) / incSec, incExp) * incMax), baseSpeed + incMax);
}
if ((_root.playStatus == "play") || (_root.playStatus == "over")) {
if (!_root.ballGrav) {
if (this[ballPath].ball._currentframe == 2) {
speed = baseSpeed * 2;
} else {
speed = baseSpeed;
}
}
if (_root.playStatus == "play") {
if (Key.isDown(90) && (_root.weaponGauge >= 1)) {
using = true;
} else {
using = false;
}
if (_root.itemNo == _root.defaultItem) {
if ((using && ((!_root.itemSingle) || (!usingOld))) || (!_root.itemSwitchable)) {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
} else {
_root.weaponGauge = Math.min(_root.weaponGauge + (_root.defaultItemRestore * 1), _root.weaponGaugeMax);
}
} else if ((using && ((!_root.itemSingle) || (!usingOld))) || (!_root.itemSwitchable)) {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
}
if (Key.isDown(88)) {
_root.score = 0;
_root.radian = 8;
_root.itemLabel[1] = "ctrl";
_root.itemEncount[1] = 2;
_root.itemGaugeMax[1] = 200;
_root.itemScore[1] = 100;
_root.itemValue[1] = "1,";
_root.itemVal[0] = 1;
_root.itemNo = 2;
_root.weapon = "ctrl";
_root.weaponGauge = 200;
_root.weaponGaugeMax = 200;
_root.option.weapon.weaponReset(1);
}
_root.option.weapon.itemFunction(_root.weapon, using);
if ((_root.itemNo != _root.defaultItem) && (_root.weaponGauge <= 0)) {
_root.option.weapon.weaponReset(_root.defaultItem);
}
usingOld = using;
_root.g.graphic2.comexec("ballAction");
}
var _local6 = speed + r;
while (_local6 > r) {
if (math.sin(radian) < 0) {
var _local4 = -1;
} else {
var _local4 = 1;
}
if (math.cos(radian) < 0) {
var _local3 = -1;
} else {
var _local3 = 1;
}
x0 = x;
y0 = y;
x1 = x;
y1 = math.floor((y / blh) + (_local4 > 0)) * blh;
flag0 = "";
first = false;
i = math.floor(y1 / blh) - (_local4 > 0);
j = math.floor(x1 / blw);
i2 = math.floor((y + (math.sin(radian) * (_local6 + (blh * 1.5)))) / blh);
j2 = math.floor((x + (math.cos(radian) * (_local6 + (blw * 1.5)))) / blw);
while ((!((i == i2) && (j == j2))) && (flag0 == "")) {
x2 = ((y1 - y) / math.tan(radian)) + x;
i = math.floor(y1 / blh) - (_local4 > 0);
j = math.floor(x1 / blw);
j1 = math.floor(x2 / blw);
if (first) {
y0 = y1 - (blh * _local4);
x0 = ((y0 - y) / math.tan(radian)) + x;
} else {
x0 = x + _local3;
y0 = y + _local4;
}
while ((((j * _local3) <= (j1 * _local3)) && (!((i == i2) && (j == j2)))) && (flag0 == "")) {
if ((x0 <= 0) && (_local3 < 0)) {
flag0 = "border";
flag1 = "side";
bx = 0;
r0 = 1;
} else if ((x0 >= (borw - 0)) && (_local3 > 0)) {
flag0 = "border";
flag1 = "side";
bx = (borw / blw) - 0;
r0 = 1;
} else if ((y0 <= 0) && (_local4 < 0)) {
flag0 = "border";
flag1 = "Upside";
by = 0;
r0 = 0;
_root.com.hitUpside = true;
} else if ((y0 >= ((bary - barh2) - (r * 0))) && (_local4 > 0)) {
y01 = bary - barh2;
x01 = x + ((y01 - (y + (r * 0))) / math.tan(radian));
if ((x01 >= ((_local5 - barw2) - r)) && (x01 <= ((_local5 + barw2) + r))) {
y0 = y01;
x0 = x01;
flag0 = "paddle";
by = (y0 - r) / blh;
var _local4 = 0;
r0 = 0;
if (((x >= (_local5 - barCrit)) && (x <= (_local5 + barCrit))) && (_root.playStatus == "play")) {
flag1 = "Crit";
_root.com.smashFlag = true;
} else if ((x < ((_local5 - barw2) + barEdge)) || (x > ((_local5 + barw2) - barEdge))) {
flag1 = "Edge";
if (_root.edgeBackMode) {
if (((_local3 == 1) && (x < _local5)) || ((_local3 == -1) && (x > _local5))) {
flag1 = "EdgeBack";
}
}
} else {
flag1 = "";
}
}
}
if (flag0 == "") {
if ((((((j >= 0) && (j < blx)) && (_root.block[(i * blx) + j] > 0)) && (_root.block[(i * blx) + j] != 5)) && (_root.block[(i * blx) + j] != 7)) && (!((j == (math.floor(x / blw) * blw)) && (i == (math.floor(y / blh) * blh))))) {
flag0 = "block";
bx = j;
by = i;
if ((_root.block[(i * blx) + j] == 4) || (_root.block[(i * blx) + j] >= 200)) {
flag1 = "unBreakable";
} else {
flag1 = "breakable";
}
if (first) {
r0 = 0;
} else {
r0 = 1;
}
} else if ((y0 > borh) && (_local4 > 0)) {
flag0 = "out";
by = borh / blh;
r0 = 0;
} else {
j = j + _local3;
x0 = (j + (_local3 == -1)) * blw;
y0 = ((x0 - x) * math.tan(radian)) + y;
first = false;
}
}
}
x1 = x2;
y1 = y1 + (blh * _local4);
first = true;
}
if (flag0 != "") {
if (flag0 == "block") {
a0 = math.max(math.sqrt(((x0 - x) * (x0 - x)) + ((y0 - y) * (y0 - y))) - r, 1);
} else if (r0 == 0) {
if (_local4 < 0) {
by1++;
}
y0 = by * blh;
if (_local4 < 0) {
by1--;
}
a0 = math.max(((y0 - y) / math.sin(radian)) - r, 1);
x0 = x + (a0 * math.cos(radian));
} else {
if (_local3 < 0) {
bx1++;
}
x0 = bx * blw;
if (_local3 < 0) {
bx1--;
}
a0 = math.max(((x0 - x) / math.cos(radian)) - r, 1);
y0 = y + (a0 * math.sin(radian));
}
if (a0 > _local6) {
flag0 = "";
}
}
if (flag0 == "") {
x = x + (math.cos(radian) * (_local6 - r));
y = y + (math.sin(radian) * (_local6 - r));
_local6 = 0;
} else {
x = x + (math.cos(radian) * a0);
y = y + (math.sin(radian) * a0);
_local6 = _local6 - math.abs(a0);
if (flag0 == "block") {
blockBreak(x0, y0, bx, by, "ball");
}
if (((this[ballPath].ball._currentframe == 1) || (flag1 == "unBreakable")) || (flag0 != "block")) {
if (r0 == 0) {
radian = -radian;
} else {
radian = 3.14159265359 - radian;
}
}
if (flag0 == "border") {
_root.g.graphic2.comexec("borderHit");
if (_root.soundMode && (_root.playStatus == "play")) {
if ((_root.soundUpside != "") && (flag1 == "Upside")) {
_root.upsideSound.upsideSound.start();
} else {
_root.borderSound.borderSound.start();
}
}
} else if (flag0 == "paddle") {
combo = 0;
_root.g.graphic2.comexec("paddleHit");
if (flag1 == "Edge") {
if (math.cos(radian) > 0) {
radian = -math.min(math.max((math.random() * 3.14159265359) / 2, minRadian), maxRadian);
} else {
radian = 3.14159265359 + math.min(math.max((math.random() * 3.14159265359) / 2, minRadian), maxRadian);
}
} else if (flag1 == "EdgeBack") {
if (math.cos(radian) < 0) {
radian = -math.min(math.max((math.random() * 3.14159265359) / 2, minRadian), maxRadian);
} else {
radian = 3.14159265359 + math.min(math.max((math.random() * 3.14159265359) / 2, minRadian), maxRadian);
}
}
if ((flag1 == "Crit") && (_root.barSmash == "rapid")) {
this[ballPath].ball.gotoAndStop(2);
if (_root.soundMode) {
_root.smashSound.smashSound.start();
}
_root.score = _root.score + _root.scoreSmash;
_root.scoreSpecial = _root.scoreSpecial + _root.scoreSmash;
if (_root.ballGrav) {
var _local8 = Math.cos(radian) * speed;
var _local7 = Math.sin(radian) * speed;
_local7 = Math.min(_local7 * 3, baseSpeed * 3);
radian = Math.atan2(_local7, _local8);
speed = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
}
} else {
this[ballPath].ball.gotoAndStop(1);
if (_root.soundMode && (_root.playStatus == "play")) {
_root.paddleSound.paddleSound.start();
}
}
if (math.sin(radian) > 0) {
radian = -radian;
}
if (_root.itemPaddleHit) {
_root.option.weapon.paddleHit(_root.weapon, using);
}
} else if (flag0 == "out") {
if (_root.soundMode && (_root.playStatus == "play")) {
_root.missSound.missSound.start();
}
if (_root.playStatus == "play") {
_root.g.graphic2.comexec("onMiss");
}
if (_root.playStatus != "over") {
_local6 = 0;
_root.com.Miss = true;
if (_root.life > 0) {
vx = 0;
_root.gotoAndPlay("throw");
} else {
_root.jump = "gameover";
_root.gotoAndPlay("scoreBonus");
}
}
}
}
}
this[ballPath]._x = x;
this[ballPath]._y = y;
if (_root.ballReviseFlag) {
_root.ballReviseFlag = false;
ballRevise(radian);
} else {
this[ballPath].radian = radian;
}
return(undefined);
}
if (_root.playStatus == "stay") {
this[ballPath]._x = _local5;
this[ballPath]._y = (bary - barh2) - r;
}
}
function blockMake(j, i, k) {
var _local2 = (i * blockx) + j;
_root.block[_local2] = k;
block.blockMaking(j, i);
}
function reconst(bWidth, bHeight) {
var _local3 = 0;
while (_local3 < blocky) {
var _local1 = 0;
while (_local1 < blockx) {
var _local2 = (_local3 * blockx) + _local1;
block["block" + _local2].removeMovieClip();
_local1++;
}
_local3++;
}
block.block._width = bWidth;
block.block._height = bHeight;
blockx = math.ceil(border._width / block.block._width);
blocky = math.ceil(border._height / block.block._height);
block2.block._width = block.block._width;
block2.block._height = block.block._height;
block.const();
}
function ballRevise(radian) {
var _local5 = _root.g.ball.minRadian;
var _local7 = _root.g.ball.maxRadian;
var _local2 = Math.cos(radian);
var _local4 = Math.sin(radian);
var _local6 = Math.atan2(_local4, _local2);
if ((_local2 >= 0) && (_local4 >= 0)) {
radian = Math.min(Math.max(_local6, _local5), _local7);
} else if ((_local2 < 0) && (_local4 >= 0)) {
radian = 3.14159265359 - Math.min(Math.max(3.14159265359 - _local6, _local5), _local7);
} else if ((_local2 < 0) && (_local4 < 0)) {
radian = 3.14159265359 + Math.min(Math.max(_local6 - 3.14159265359, _local5), _local7);
} else if ((_local2 >= 0) && (_local4 < 0)) {
radian = 6.28318530718 - Math.min(Math.max(6.28318530718 - _local6, _local5), _local7);
}
_root.g.ball.radian = radian;
}
function hitGraphic(xtemp, ytemp) {
this.hit.duplicateMovieClip("hit" + this.hits, this.hits);
this["hit" + this.hits]._x = xtemp;
this["hit" + this.hits]._y = ytemp;
this.hits++;
if (hits >= 500) {
hits = 1;
}
}
function blockExist(j, i) {
var _local5 = this.blockx;
var _local4 = (i * _local5) + j;
var _local3 = false;
if ((_root.block[_local4] != 0) && (_root.block[_local4] != 7)) {
_local3 = true;
}
return(_local3);
}
function blockSupportRemove(j, i) {
var _local6 = this.blockx;
var _local3 = (i * _local6) + j;
if (_root.block[_local3] == 7) {
if ((((!blockExist(j, i - 1)) && (!blockExist(j - 1, i))) && (!blockExist(j + 1, i))) && (!blockExist(j, i + 1))) {
this.block["block" + _local3].removeMovieClip();
this.block2["block" + _local3].removeMovieClip();
_root.block[_local3] = 0;
}
}
}
function bBreak(j, i, reason) {
var _local10 = "ball";
var _local13 = this.blockx;
var _local3 = (i * _local13) + j;
_root.com.breakBlock = true;
_root.com.hitX = j;
_root.com.hitY = i;
if (((this[_local10].ball._currentframe == 1) || (reason == "shot")) && (_root.soundMode)) {
_root.breakSound.breakSound.start();
}
_root.g.graphic2.comexec("break" + _root.block[_local3]);
this.block["block" + _local3].removeMovieClip();
this.block2["block" + _local3].removeMovieClip();
var _local8 = _root.itemFromBlocks[0];
var _local7 = _root.itemFromBlocks[1];
var _local9 = _root.itemFromBlocks[2];
var _local11 = _root.itemFromBlocks[3];
var _local4 = 0;
if ((((_root.timerB / 1000) - _local7) < 0) || (_local9 == 0)) {
_local4 = _local8;
} else if (((_root.timerB / 1000) - _local7) >= _local9) {
_local4 = _local8 + _local11;
} else {
var _local15 = (1 - (((_root.timerB / 1000) - _local7) / _local9)) * 3;
var _local12 = Math.exp((-Math.pow(_local15, 2)) / 2) / 2.50662827463;
_local4 = _local8 + ((((_local12 * 100) - 0.4) / 39.5) * _local11);
}
if (((Math.random() * 99) < _local4) || (_root.block[_local3] == 6)) {
itemRandom("block");
}
if (_root.block[_local3] == Math.floor(_root.block[_local3])) {
_root.bBlock++;
}
_root.block[_local3] = 0;
_root.com.com();
blockSupportRemove(j, i - 1);
blockSupportRemove(j - 1, i);
blockSupportRemove(j + 1, i);
blockSupportRemove(j, i + 1);
if (((_root.scoreCombonum > 0) && (this[_local10].ball._currentframe == 1)) && (reason != "shot")) {
combo++;
if (combo >= 200) {
combo = 1;
}
if (_root.maxcombo < combo) {
_root.maxcombo = combo;
}
if ((combo % _root.scoreCombonum) == 0) {
_root.com.comboFlag = true;
this.popup.duplicateMovieClip("combo" + this.combo, 1000 + this.combo);
this["combo" + this.combo]._x = _root.com.hitHX;
this["combo" + this.combo]._y = _root.com.hitHY;
var _local14 = combo + "combo!";
this["combo" + this.combo].mes = _local14;
_root.score = _root.score + (_root.scoreCombo * _root.scoreCombonum);
}
}
}
function itemTime() {
var _local4 = _root.itemAtTimes[0];
var _local3 = _root.itemAtTimes[1];
var _local5 = _root.itemAtTimes[2];
var _local6 = _root.itemAtTimes[3];
var _local2 = 0;
if ((((_root.timerB / 1000) - _local3) < 0) || (_local5 == 0)) {
_local2 = _local4;
} else if (((_root.timerB / 1000) - _local3) >= _local5) {
_local2 = _local4 + _local6;
} else {
var _local8 = (1 - (((_root.timerB / 1000) - _local3) / _local5)) * 3;
var _local7 = Math.exp((-Math.pow(_local8, 2)) / 2) / 2.50662827463;
_local2 = _local4 + ((((_local7 * 100) - 0.4) / 39.5) * _local6);
}
if ((Math.random() * 99) < (_local2 * _root.ballSpeedRate)) {
itemRandom("time");
}
}
function itemRandom(reason) {
encount = new Array();
encount[0] = 0;
i = 1;
while (i <= _root.maxItemNo) {
encount[i] = _root.itemEncount[i] + encount[i - 1];
i++;
}
var _local2 = Math.random() * encount[_root.maxItemNo];
flag = false;
i = 1;
for(;;){
if (!((!flag) && (i <= _root.maxItemNo))) {
return(undefined);
}
if (_local2 < encount[i]) {
itemPut(i, reason);
flag = true;
}
i++;
};
}
function itemPut(no, reason) {
itemNumber++;
if (itemNumber >= 500) {
itemNumber = 1;
}
item.duplicateMovieClip("item" + itemNumber, itemNumber + 500);
if (reason == "block") {
this["item" + itemNumber]._x = _root.com.hitHX;
this["item" + itemNumber]._y = _root.com.hitHY;
} else if (reason == "time") {
this["item" + itemNumber]._x = Math.random() * _root.g.border._width;
this["item" + itemNumber]._y = 0;
}
this["item" + itemNumber].no = no;
this["item" + itemNumber].gotoAndStop(_root.itemLabel[no]);
}
function blockBreak(hx, hy, j, i, reason) {
var _local8 = this.blockx;
var _local6 = "ball";
_root.com.hitX = j;
_root.com.hitY = i;
_root.com.hitHX = hx;
_root.com.hitHY = hy;
_root.com.hitBlock = true;
if (_root.effectMode) {
hitGraphic(hx, hy);
}
if (_root.playStatus == "play") {
var _local3 = (i * _local8) + j;
_root.g.graphic2.hitX = j;
_root.g.graphic2.hitY = i;
_root.g.graphic2.comexec("hit" + _root.block[_local3]);
if (_root.block[_local3] == 1) {
bBreak(j, i, reason);
_root.score = _root.score + _root.scoreBlock1;
} else if (_root.block[_local3] == 0.5) {
bBreak(j, i, reason);
} else if (_root.block[_local3] == 2) {
if (this.block["block" + _local3].vit == 2) {
this.block["block" + _local3].vit--;
if ((this[_local6].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
} else if (this.block["block" + _local3].vit == 1) {
bBreak(j, i, reason);
_root.score = _root.score + _root.scoreBlock2;
}
} else if (_root.block[_local3] == 3) {
if (this.block["block" + _local3].vit == 3) {
this.block["block" + _local3].vit--;
if ((this[_local6].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
} else if (this.block["block" + _local3].vit == 2) {
this.block["block" + _local3].vit--;
if ((this[_local6].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
} else if (this.block["block" + _local3].vit == 1) {
bBreak(j, i);
_root.score = _root.score + _root.scoreBlock3;
}
} else if (_root.block[_local3] == 4) {
if ((this[_local6].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
_root.score = _root.score + _root.scoreBlock4;
} else if (_root.block[_local3] == 6) {
bBreak(j, i, reason);
_root.score = _root.score + _root.scoreBlock6;
} else if (_root.block[_local3] != 7) {
_root.block[_local3] >= 100;
}
if (_root.bBlock >= _root.clearBlocks) {
if (_root.bBlock == _root.clearBlocks) {
_root.g.graphic2.comexec("onClear");
}
if (_root.clearJump == "clear") {
_root.com.comexec("gameClear");
return(undefined);
}
if (_root.clearJump.substr(0, 4) == "url:") {
_root.com.comexec("jumpURL " + _root.clearJump.substr(4));
return(undefined);
}
if (_root.clearJump.substr(0, 5) == "next:") {
_root.com.comexec("nextLevel " + _root.clearJump.substr(5));
return(undefined);
}
if (_root.clearJump.substr(0, 5) == "nef:") {
_root.playStatus = "pause";
_root.gotoAndStop("slaveWait");
_root.host.openPageNamed(_root.clearJump.substr(4));
}
}
}
}
function itemChange(no, label, en, gmax, score, se, sevol, value) {
if (label.length > 0) {
_root.itemLabel[no] = label;
}
if (!isNaN(en)) {
_root.itemEncount[no] = en;
}
if (!isNaN(gmax)) {
_root.itemGaugeMax[no] = gmax;
}
if (!isNaN(score)) {
_root.itemScore[no] = score;
}
if (se.length > 0) {
_root.itemSE[no] = se;
}
if (!isNaN(sevol)) {
_root.itemSEVol[no] = sevol;
}
if (value.length > 0) {
_root.itemValue[no] = value;
}
}
if (_root.blockMode) {
gotoAndPlay (5);
}
Instance of Symbol 169 MovieClip "bar" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function barMove() {
if (_root.barSpeedRate == 0) {
var _local4 = math.abs((math.cos(_parent.ball.radian) * _parent.ball.basespeed) * _root.ballSpeedRate);
} else {
var _local4 = xSpeed * _root.barSpeedRate;
}
if ((_root.playStatus == "play") || (_root.playStatus == "stay")) {
if (_root.keyboardMode) {
if (Key.isDown(37)) {
vx = -1;
}
if (Key.isDown(39)) {
vx = 1;
}
if (Key.isDown(32)) {
turbo = 3;
} else {
turbo = 1;
}
if (Key.isDown(65)) {
vx = 0;
this._x = (_parent.border._width * 0.5) / 10;
}
if (Key.isDown(83)) {
vx = 0;
this._x = (_parent.border._width * 1.5) / 10;
}
if (Key.isDown(68)) {
vx = 0;
this._x = (_parent.border._width * 2.5) / 10;
}
if (Key.isDown(70)) {
vx = 0;
this._x = (_parent.border._width * 3.5) / 10;
}
if (Key.isDown(71)) {
vx = 0;
this._x = (_parent.border._width * 4.5) / 10;
}
if (Key.isDown(72)) {
vx = 0;
this._x = (_parent.border._width * 5.5) / 10;
}
if (Key.isDown(74)) {
vx = 0;
this._x = (_parent.border._width * 6.5) / 10;
}
if (Key.isDown(75)) {
vx = 0;
this._x = (_parent.border._width * 7.5) / 10;
}
if (Key.isDown(76)) {
vx = 0;
this._x = (_parent.border._width * 8.5) / 10;
}
if (Key.isDown(186)) {
vx = 0;
this._x = (_parent.border._width * 9.5) / 10;
}
this._x = this._x + ((vx * _local4) * turbo);
} else {
this._x = _parent._xmouse;
}
this._x = math.min(math.max(this._x, 0), _parent.border._width);
return(undefined);
}
if (_root.playStatus == "over") {
this._x = _parent.ball._x;
}
}
}
Instance of Symbol 178 MovieClip "shot" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this._name != "shot") && ((_root.playStatus == "play") || (_root.playStatus == "over"))) {
blw = _parent.block.block._width;
blh = _parent.block.block._height;
blx = _parent.blockx;
var borw = _parent.border._width;
var borh = _parent.border._height;
if (_currentframe === 1) {
this._y = this._y - speed;
if (this._y < 0) {
this.removeMovieClip();
} else {
x = this._x;
y = this._y;
j = Math.floor(x / blw);
i = Math.floor(y / blh);
if (((((((j >= 0) && (j < blx)) && (_root.block[(i * blx) + j] > 0)) && (_root.block[(i * blx) + j] != 5)) && (_root.block[(i * blx) + j] != 7)) && (!((j == (math.floor(x / blw) * blw)) && (i == (math.floor(y / blh) * blh))))) && (_root.playStatus == "play")) {
_parent.blockBreak(x, y, j, i, "shot");
this.removeMovieClip();
}
}
} else if (_currentframe === 2) {
if (flag) {
x = this._x;
y = this._y;
j0 = Math.floor((x - dis) / blw);
j1 = Math.floor((x + dis) / blw);
i0 = Math.floor((y - dis) / blh);
i1 = Math.floor((y + dis) / blh);
i = i0;
while (i <= i1) {
j = j0;
while (j <= j1) {
if ((((((((j >= 0) && (j < blx)) && (_root.block[(i * blx) + j] > 0)) && (_root.block[(i * blx) + j] != 5)) && (_root.block[(i * blx) + j] != 7)) && ((Math.random() * 100) <= p)) && (((((j * blw) - x) * ((j * blw) - x)) + (((i * blh) - y) * ((i * blh) - y))) <= (dis * dis))) && (_root.playStatus == "play")) {
_parent.blockBreak(j * blw, i * blh, j, i, "shot");
}
j++;
}
i++;
}
flag = false;
}
} else if (_currentframe === 3) {
x = this._x;
y = this._y;
j = Math.floor(x / blw);
i = Math.floor(y / blh);
if (_root.block[(i * blx) + j] == 0) {
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
if (this._name == "shot") {
stop();
this._visible = false;
}
}
Instance of Symbol 196 MovieClip "item" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((no != undefined) && ((_root.playStatus == "play") || (_root.playStatus == "over"))) {
if (_root.playStatus == "play") {
var barx = _parent._xmouse;
} else {
var barx = _parent.bar._x;
}
var bary = _parent.bar._y;
var barw2 = (_parent.bar._width / 2);
var barh2 = (_parent.bar._height / 2);
var borw = _parent.border._width;
var borh = _parent.border._height;
speed = _root.itemSpeed[0];
var incStart = _root.itemSpeed[1];
var incSec = _root.itemSpeed[2];
var incExp = _root.itemSpeed[3];
var incMax = _root.itemSpeed[4];
var radian = this[ballPath].radian;
if (((_root.timerB / 1000) >= incStart) && (incSec != 0)) {
speed = Math.min(speed + (Math.pow(((_root.timerB / 1000) - incStart) / incSec, incExp) * incMax), speed + incMax);
}
this._y = this._y + (speed * _root.ballSpeedRate);
if (this._y >= borh) {
this.removeMovieClip();
} else if (((this._y >= (bary - barh2)) && (this._x >= (barx - barw2))) && (this._x <= (barx + barw2))) {
_root.option.weapon.weaponReset(no);
_root.score = _root.score + _root.itemScore[no];
_root.scoreSpecial = _root.scoreSpecial + _root.itemScore[no];
if (_root.soundMode) {
_root.itemSound.itemSound.start();
}
this.removeMovieClip();
}
}
}
onClipEvent (load) {
if (no == undefined) {
stop();
this._visible = false;
}
}
Symbol 211 MovieClip Frame 4
gotoAndPlay(_currentframe - 1);
_root.g.ballAction();
_root.g.bar.barMove();
if (_root.playStatus == "play") {
_root.g.itemTime();
}
Symbol 211 MovieClip Frame 9
gotoAndPlay(_currentframe - 1);
_root.g.ballAction();
_root.g.bar.barMove();
if (_root.playStatus == "play") {
_root.g.itemTime();
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 218 Button
on (release, keyPress "<Enter>") {
if (entryName.length > 0) {
_root.entryName = entryName;
} else {
_root.entryName = _root.defaultName;
}
this._visible = false;
_root.scoreRanking._visible = false;
}
Symbol 226 Button
on (release) {
this._visible = false;
}
Symbol 254 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 279 Button
on (release, keyPress "<Space>") {
if (_root.playStatus == "stay") {
if (_root.soundMode) {
_root.throwSound.throwSound.start();
}
gotoAndPlay (20);
}
}
Symbol 280 Button
on (release, keyPress "<Space>") {
_root.cnf = _root.defaultConfig;
_root.nextConfig = "";
_root.config.version = "";
gotoAndPlay (1);
}
Symbol 281 Button
on (release, keyPress "<Space>") {
if (_root.jump == "clear") {
gotoAndStop (35);
} else {
getURL (_root.jump);
}
}
Symbol 282 Button
on (release) {
gotoAndPlay (4);
}
Symbol 289 Button
on (release) {
_root.score = _root.score + timebonuspoint.point;
timebonuspoint.point = 0;
}
Symbol 290 Button
on (release) {
_root.score = _root.score + lifebonuspoint.point;
lifebonuspoint.point = 0;
}
Symbol 292 Button
on (release) {
this._visible = false;
_root.play();
}
Symbol 294 Button
on (release) {
play();
}
Symbol 296 Button
on (release) {
_root.score = _root.score + penaltybonuspoint.point;
penaltybonuspoint.point = 0;
}
Symbol 299 MovieClip Frame 1
timebonus = math.max(_root.scoreTime0 - (_root.scoreTime1 * math.floor(_root.timer / 1000)), 0);
lifebonus = math.max(_root.life * _root.scoreLife, 0);
penaltybonus = -math.max(_root.scoreSpecial, 0);
if (_root.jump == "gameover") {
gotoAndPlay (15);
}
Instance of Symbol 286 MovieClip "lifebonuspoint" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
point = _parent.lifebonus;
}
Instance of Symbol 286 MovieClip "timebonuspoint" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
point = _parent.timebonus;
}
Instance of Symbol 286 MovieClip "yourscore" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
point = _root.score;
}
onClipEvent (load) {
point = _root.score;
}
Instance of Symbol 286 MovieClip "maxcombo" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
point = _root.maxcombo;
}
Symbol 299 MovieClip Frame 3
stop();
Symbol 299 MovieClip Frame 5
if ((timebonuspoint.point - 100) >= 0) {
timebonuspoint.point = timebonuspoint.point - 100;
_root.score = _root.score + 100;
prevFrame();
play();
} else if ((timebonuspoint.point - 10) >= 0) {
timebonuspoint.point = timebonuspoint.point - 10;
_root.score = _root.score + 10;
prevFrame();
play();
} else if (timebonuspoint.point > 0) {
timebonuspoint.point = timebonuspoint.point - 1;
_root.score = _root.score + 1;
prevFrame();
play();
}
if (timebonuspoint.point == 0) {
gotoAndPlay (6);
}
Instance of Symbol 286 MovieClip "timebonuspoint" in Symbol 299 MovieClip Frame 6
onClipEvent (load) {
point = 0;
}
Symbol 299 MovieClip Frame 7
if ((lifebonuspoint.point - 100) >= 0) {
lifebonuspoint.point = lifebonuspoint.point - 100;
_root.score = _root.score + 100;
prevFrame();
play();
} else if ((lifebonuspoint.point - 10) >= 0) {
lifebonuspoint.point = lifebonuspoint.point - 10;
_root.score = _root.score + 10;
prevFrame();
play();
} else if (lifebonuspoint.point > 0) {
lifebonuspoint.point = lifebonuspoint.point - 1;
_root.score = _root.score + 1;
prevFrame();
play();
}
if (lifebonuspoint.point == 0) {
if ((_root.scoreTime0 - (_root.scoreTime1 * math.floor(_root.timerB / 1000))) < 0) {
gotoAndPlay (10);
} else {
gotoAndPlay (8);
}
}
Instance of Symbol 286 MovieClip "lifebonuspoint" in Symbol 299 MovieClip Frame 8
onClipEvent (load) {
point = 0;
}
Symbol 299 MovieClip Frame 9
stop();
Instance of Symbol 286 MovieClip "penaltybonuspoint" in Symbol 299 MovieClip Frame 10
onClipEvent (load) {
point = _parent.penaltybonus;
}
Symbol 299 MovieClip Frame 11
stop();
Symbol 299 MovieClip Frame 13
if ((penaltybonuspoint.point + 1000) <= 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 1000;
_root.score = _root.score - 1000;
prevFrame();
play();
} else if ((penaltybonuspoint.point + 100) <= 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 100;
_root.score = _root.score - 100;
prevFrame();
play();
} else if ((penaltybonuspoint.point + 10) <= 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 10;
_root.score = _root.score - 10;
prevFrame();
play();
} else if (penaltybonuspoint.point < 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 1;
_root.score = _root.score - 1;
prevFrame();
play();
}
if (penaltybonuspoint.point == 0) {
gotoAndStop (14);
}
Symbol 299 MovieClip Frame 14
stop();
Instance of Symbol 286 MovieClip "penaltybonuspoint" in Symbol 299 MovieClip Frame 14
onClipEvent (load) {
point = 0;
}
Symbol 299 MovieClip Frame 15
this._visible = false;
Instance of Symbol 286 MovieClip "penaltybonuspoint" in Symbol 299 MovieClip Frame 15
onClipEvent (load) {
point = _parent.penaltybonus;
}
Symbol 299 MovieClip Frame 18
if ((penaltybonuspoint.point + 1000) <= 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 1000;
_root.score = _root.score - 1000;
prevFrame();
play();
} else if ((penaltybonuspoint.point + 100) <= 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 100;
_root.score = _root.score - 10;
prevFrame();
play();
} else if ((penaltybonuspoint.point + 10) <= 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 10;
_root.score = _root.score - 10;
prevFrame();
play();
} else if (penaltybonuspoint.point < 0) {
penaltybonuspoint.point = penaltybonuspoint.point + 1;
_root.score = _root.score - 1;
prevFrame();
play();
}
if (penaltybonuspoint.point == 0) {
gotoAndStop (19);
}
Symbol 299 MovieClip Frame 19
this._visible = false;
_root.play();
stop();
Instance of Symbol 286 MovieClip "penaltybonuspoint" in Symbol 299 MovieClip Frame 19
onClipEvent (load) {
point = 0;
}