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";
}
weaponGaugeMaxBoost = 80;
weaponGaugeMaxCtrl = 250;
weaponGaugeMaxShot = 5;
weaponGaugeMaxWide = 400;
weaponGaugeMaxRapid = 20;
weaponGaugeMaxBomb = 1;
weaponGaugeMaxShort = 300;
weaponGaugeMaxPanic = 300;
weaponGaugeMaxGuard = 300;
weaponGaugeMaxGrav = 400;
weaponValueBoost = 3;
weaponValueCtrl = 3;
weaponValueShot = 1;
weaponValueWide = 1.5;
weaponValueRapid = 2;
weaponValueBomb = 3;
weaponValueShort = 0.5;
weaponValuePanic = 0;
weaponValueGuard = 0;
weaponValueGrav = 15;
defaultWeapon = "boost";
itemfromBlock = "false";
itemPercent = 10;
itemBoost = 0;
itemCtrl = 1;
itemShot = 0;
itemWide = 2;
itemRapid = 2;
itemBomb = 0;
itemShort = 2;
itemPanic = 2;
itemGuard = 0;
itemGrav = 1;
};
}
_root.program = "b2";
_root.version = "ver. 1.08d";
System.useCodepage = true;
if (nextConfig.length <= 0) {
loadVariables ("config.txt", "config");
loadVariables ("b2config.dat", "config");
loadVariables ("b2config.txt", "config");
loadVariables (cnf, "config");
_root.defaultConfig = _root.cnf;
} else {
config.version = "";
loadVariables (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 91 MovieClip "status" in Frame 1
onClipEvent (enterFrame) {
timer = new Date();
life = _root.life;
score = _root.score;
bBlock = _root.bBlock;
tBlock = _root.tBlock;
timeMin = Math.floor(_root.timerB / 60000) % 60;
timeSec = Math.floor(_root.timerB / 1000) % 60;
if (timeSec < 10) {
timeSec = "0" + timeSec;
}
time10Millisec = Math.floor(_root.timerB / 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);
} else {
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);
nefDocument = config.nefDocument;
if (nefDocument != "") {
host.loadMovie("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(config.graphic1);
g.graphic2.loadMovie(config.graphic2);
g.border._width = graphicWidth;
g.border._height = graphicHeight + barSpace;
g.ball.minRadian = 0.174532925199433 * config.minRadian;
g.ball.maxRadian = 0.174532925199433 * config.maxRadian;
g.ball.baseSpeed = config.baseSpeed * 1;
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 - barSpace) / 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;
timer = 0;
timerB = 0;
smashNum = 0;
maxcombo = 0;
keyboardMode = bool(config.keyboardMode);
soundMode = bool(config.soundMode);
blockMode = bool(config.blockMode);
effectMode = bool(config.effectMode);
liteMode = bool(config.liteMode);
edgeBackMode = bool(config.edgeBackMode);
timerVisible = bool(config.timerVisible);
rankingEnable = bool(config.rankingEnable);
blockMask = config.blockMask * 1;
ballSpeedRate = config.ballSpeedRate * 1;
barSpeedRate = config.barSpeedRate * 1;
defaultName = config.defaultName;
rankingTxt = config.rankingTxt;
ballColor = config.ballColor;
} else {
life++;
}
_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;
soundHitVol = config.soundHitVol;
soundBreakVol = config.soundBreakVol;
soundBorderVol = config.soundBorderVol;
soundUpsideVol = config.soundUpsideVol;
soundSmashVol = config.soundSmashVol;
soundPaddleVol = config.soundPaddleVol;
soundMissVol = config.soundMissVol;
soundGameoverVol = config.soundGameoverVol;
soundStartVol = config.soundStartVol;
soundBgmVol = config.soundBgmVol;
soundClearVol = config.soundClearVol;
soundItemVol = config.soundItemVol;
soundShotVol = config.soundShotVol;
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);
weaponGaugeM = new Object();
weaponGaugeM.boost = config.weaponGaugeMaxBoost * 1;
weaponGaugeM.ctrl = config.weaponGaugeMaxCtrl * 1;
weaponGaugeM.shot = config.weaponGaugeMaxShot * 1;
weaponGaugeM.wide = config.weaponGaugeMaxWide * 1;
weaponGaugeM.rapid = config.weaponGaugeMaxRapid * 1;
weaponGaugeM.bomb = config.weaponGaugeMaxBomb * 1;
weaponGaugeM.short = config.weaponGaugeMaxShort * 1;
weaponGaugeM.panic = config.weaponGaugeMaxPanic * 1;
weaponGaugeM.guard = config.weaponGaugeMaxGuard * 1;
weaponGaugeM.grav = config.weaponGaugeMaxGrav * 1;
weaponValueBoost = config.weaponValueBoost * 1;
weaponValueCtrl = config.weaponValueCtrl * 1;
weaponValueShot = config.weaponValueShot * 1;
weaponValueWide = config.weaponValueWide * 1;
weaponValueRapid = config.weaponValueRapid * 1;
weaponValueBomb = config.weaponValueBomb * 1;
weaponValueShort = config.weaponValueShort * 1;
weaponValuePanic = config.weaponValuePanic * 1;
weaponValueGuard = config.weaponValueGuard * 1;
weaponValueGrav = config.weaponValueGrav * 1;
defaultWeapon = config.defaultWeapon;
itemfromBlock = bool(config.itemfromBlock);
itemPercent = config.itemPercent * 1;
itemBoost = config.itemBoost * 1;
itemCtrl = config.itemCtrl * 1;
itemShot = config.itemShot * 1;
itemWide = config.itemWide * 1;
itemRapid = config.itemRapid * 1;
itemBomb = config.itemBomb * 1;
itemShort = config.itemShort * 1;
itemPanic = config.itemPanic * 1;
itemGuard = config.itemGuard * 1;
itemGrav = config.itemGrav * 1;
status.timerVisble();
block = new Array(g.blockx * g.blocky);
block = config.block.split(",");
com.command = new Array(10000);
com.command = config.command.split(",");
throwSound.throwSound = new Sound(_root.throwSound);
if (soundThrow != "default") {
throwSound.throwSound.loadSound(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(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(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(soundBorder, false);
borderSound.borderSound.setVolume(soundBorderVol);
}
upsideSound.upsideSound = new Sound(_root.upsideSound);
if (soundUpside != "") {
upsideSound.upsideSound.loadSound(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(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(soundPaddle, false);
paddleSound.paddleSound.setVolume(soundPaddleVol);
}
missSound.missSound = new Sound(_root.missSound);
if (soundMiss != "default") {
missSound.missSound.loadSound(soundMiss, false);
missSound.missSound.setVolume(soundMissVol);
}
gameoverSound.gameoverSound = new Sound(_root.gameoverSound);
if (soundGameover != "default") {
gameoverSound.gameoverSound.loadSound(soundGameover, false);
gameoverSound.gameoverSound.setVolume(soundGameoverVol);
}
startSound.startSound = new Sound(_root.startSound);
if (soundStart != "default") {
startSound.startSound.loadSound(soundStart, false);
startSound.startSound.setVolume(soundStartVol);
}
bgmSound.bgmSound = new Sound(_root.bgmSound);
if (soundBgm != "default") {
bgmSound.bgmSound.loadSound(soundBgm, false);
bgmSound.bgmSound.setVolume(soundBgmVol);
}
clearSound.clearSound = new Sound(_root.clearSound);
if (soundClear != "default") {
clearSound.clearSound.loadSound(soundClear, false);
clearSound.clearSound.setVolume(soundClearVol);
}
itemSound.itemSound = new Sound(_root.itemSound);
if (soundItem != "default") {
itemSound.itemSound.loadSound(soundItem, false);
itemSound.itemSound.setVolume(soundItemVol);
}
shotSound.shotSound = new Sound(_root.shotSound);
if (soundShot != "default") {
shotSound.shotSound.loadSound(soundShot, false);
shotSound.shotSound.setVolume(soundShotVol);
}
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
g.ball._visible = false;
g.bar._visible = false;
Instance of Symbol 170 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 172 MovieClip "com" in Frame 7
onClipEvent (enterFrame) {
count = 0;
com();
}
onClipEvent (load) {
function autoModel(s) {
var s1 = "";
var k0 = 0;
while (k0 < s.length) {
if (s.substr(k0, 2) == "//") {
return(s * 1);
}
var s0 = s.substr(k0, 1);
if ((s0 >= "0") && (s0 <= "9")) {
s1 = s1 + s0;
} else if ((s0 == " ") || (s0 == newline)) {
} else if ((s0 == ".") || (s0 == "-")) {
s1 = s1 + s0;
} else {
return(s);
}
k0++;
}
return(s1 * 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 k = 2;
while (k <= 12) {
this["a" + k] = a.indexOf("|", this["a" + (k - 1)] + 1);
if (this["a" + k] == -1) {
this["p" + k] = a.substring(this["a" + (k - 1)] + 1);
if (!this["strPara" + k]) {
this["p" + k] = this["p" + k] * 1;
}
if (this["p" + k] == NaN) {
this["p" + k] = 0;
}
return(undefined);
}
this["p" + k] = a.substring(this["a" + (k - 1)] + 1, this["a" + k]);
if (!this["strPara" + k]) {
this["p" + k] = this["p" + k] * 1;
}
k++;
}
}
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 i = 0;
while (i < _root.g.blocky) {
var j = 0;
while (j < _root.g.blockx) {
var a = ((i * _root.g.blockx) + j);
_root.g.block["block" + a].removeMovieClip();
j++;
}
i++;
}
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.barSpace) / _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) {
getParameter("ballBe", a);
_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.graphic2.comexec(p1);
} else {
_root.g.graphic.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 (a.substr(0, 1) == " ") {
if (a.substr(0, 1) == " ") {
a = a.substr(1);
}
}
_root.message.gotoAndStop(1);
_root.playStatus = "pause";
_root.stop();
_root.jump = 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);
if (p2 == 1) {
_root.g.pics.pic.g.loadMovie(_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 ("start");
};
} else {
tellTarget ("_root") {
gotoAndPlay ("next");
};
}
}
if (a.indexOf("preLoad") >= 0) {
strPara1 = true;
getParameter("preLoad", a);
_root.g.pics["pic" + p2].g.loadMovie(p1);
_root.g.pics["pic" + p2]._visible = false;
}
if (a.indexOf("picNumber") >= 0) {
getParameter("picNumber", a);
var k = 1;
while (k <= p1) {
_root.g.pics.pic.duplicateMovieClip("pic" + k, k);
_root.g.pics["pic" + k]._x = 0;
_root.g.pics["pic" + k]._y = 0;
_root.g.pics["pic" + k]._visible = false;
k++;
}
_root.picNumber = k - 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 flag = false;
while (command[i].length > 0) {
a = command[i];
strPara1 = (strPara2 = (strPara3 = (strPara4 = (strPara5 = (strPara6 = (strPara7 = (strPara8 = (strPara9 = (strPara10 = (strPara11 = (strPara12 = false)))))))))));
var j = 0;
if (a.substr(0, 2) == "On") {
j = 2;
}
if (a.substr(0, 3) == "And") {
j = 3;
}
if ((j == 2) || ((j == 3) && (flag))) {
flag = false;
if (a.substr(j, 6) == "Amount") {
strPara1 = true;
getParameter("Amount", a);
if (p1.indexOf("p") < 0) {
p1 = p1 * 1;
flag = _root.bBlock >= p1;
if (flag) {
if (j == 2) {
var b = "On";
} else {
var b = "And";
}
if (p2 == 0) {
command[i] = b + "False";
} else {
command[i] = (((b + "Amount") + (p1 + p2)) + "|") + p2;
}
}
} else {
p1 = p1.substr(p1.indexOf("p") + 1) * 1;
flag = _root.bBlock >= ((_root.tBlock * p1) / 100);
if (flag) {
if (j == 2) {
var b = "On";
} else {
var b = "And";
}
if (p2 == 0) {
command[i] = b + "False";
} else {
command[i] = (((b + "Amountp") + (p1 + p2)) + "|") + p2;
}
}
}
}
if (a.substr(j, 5) == "Combo") {
getParameter("Combo", a);
flag = _root.com.comboFlag;
}
if (a.substr(j, 4) == "Flag") {
getParameter("Flag", a);
flag = this["flag" + p1] == p2;
}
if (a.substr(j, 3) == "Hit") {
getParameter("Hit", a);
flag = ((((p3 == 0) && (breakBlock)) || ((p3 == 1) && (hitBlock))) && (hitX == p1)) && (hitY == p2);
}
if (a.substr(j, 8) == "LifeRest") {
getParameter("LifeRest", a);
if (p2 == 0) {
flag = Miss && ((_root.life - p1) == 0);
} else {
flag = Miss && (((_root.life - p1) % p2) == 0);
}
}
if (a.substr(j, 7) == "PreGame") {
getParameter("PreGame", a);
flag = _root.playStatus == "load";
if (flag) {
if (j == 2) {
var b = "On";
} else {
var b = "And";
}
command[i] = b + "False";
}
}
if (a.substr(j, 11) == "Probability") {
getParameter("Probability", a);
if ((((p2 == 0) && (breakBlock)) || ((p2 == 1) && (hitBlock))) || (p2 == 2)) {
flag = (Math.random() * 100) < p1;
}
}
if (a.substr(j, 5) == "Score") {
getParameter("Score", a);
flag = _root.score >= p1;
if (flag) {
if (j == 2) {
var b = "On";
} else {
var b = "And";
}
if (p2 == 0) {
command[i] = b + "False";
} else {
command[i] = (((b + "Score") + (p1 + p2)) + "|") + p2;
}
}
}
if (a.substr(j, 5) == "Smash") {
flag = _root.com.smashFlag;
}
if (a.substr(j, 5) == "Timer") {
getParameter("Timer", a);
if (_root.timer >= p1) {
if (p2 != 0) {
var timerMod = ((_root.timer - p1) % p2);
var timerbMod = (_root.timerBak - ((math.floor((_root.timer - p1) / p2) * p2) + p1));
if ((timerbMod <= 0) && (timerMod >= 0)) {
flag = true;
}
} else if (_root.timerBak <= p1) {
flag = true;
}
}
}
if (a.substr(j, 6) == "Upside") {
getParameter("Upside", a);
flag = _root.com.hitUpside;
}
}
if (flag) {
comexec(a);
}
i++;
}
hitBlock = false;
breakBlock = false;
hitUpside = false;
smashFlag = false;
comboFlag = false;
hitX = -1;
hitY = -1;
Miss = false;
}
}
Instance of Symbol 202 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 i = 1;
while (i <= 10) {
_root.scoreRanking["name" + i] = myData["name" + i];
_root.scoreRanking["score" + i] = myData["score" + i];
i++;
}
};
}
}
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 223 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();
} else {
config._visible = false;
_root.g.pics.pic._visible = false;
_root.bgming = false;
nextConfig = "";
jump = "";
host.txtfile = 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.785398163397448;
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";
}
option.weapon.weaponReset(_root.defaultWeapon);
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 (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 {
gotoAndPlay (30);
}
}
Frame 50
playStatus = "ranking";
message.gotoAndStop(5);
Instance of Symbol 246 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 = "clear";
} else {
this.status = "gameover";
}
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 {
gotoAndPlay (30);
}
Frame 55
function slaveRelease() {
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";
_root.life++;
Symbol 7 Button
on (press) {
play();
}
Symbol 15 Button
on (press) {
if (Flag) {
Flag = false;
gotoAndStop (1);
} else {
Flag = true;
gotoAndStop (2);
}
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 24 Button
on (release) {
speedSet(_currentframe + 1);
gotoAndStop(_currentframe + 1);
}
Symbol 26 Button
on (release) {
speedSet(_currentframe - 1);
gotoAndStop(_currentframe - 1);
}
Symbol 33 Button
on (release) {
if (_currentframe < 10) {
colorSet(_currentframe + 1);
gotoAndStop(_currentframe + 1);
} else {
colorSet(1);
gotoAndStop (1);
}
}
Symbol 34 Button
on (release) {
if (_currentframe > 1) {
colorSet(_currentframe - 1);
gotoAndStop(_currentframe - 1);
} else {
colorSet(10);
gotoAndStop (10);
}
}
Symbol 48 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 20 MovieClip "keyboard" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
_root.keyboardMode = true;
} else {
_root.keyboardMode = false;
}
}
Instance of Symbol 20 MovieClip "sound" in Symbol 48 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 20 MovieClip "effect" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
_root.effectMode = true;
} else {
_root.effectMode = false;
}
}
Instance of Symbol 20 MovieClip "block" in Symbol 48 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 31 MovieClip "keyboardSpeed" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
function speedSet(speed) {
if (speed == 1) {
_root.barSpeedRate = 0;
} else if (speed == 2) {
_root.barSpeedRate = 0.25;
} else if (speed == 3) {
_root.barSpeedRate = 0.5;
} else if (speed == 4) {
_root.barSpeedRate = 1;
} else if (speed == 5) {
_root.barSpeedRate = 1.5;
} else 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 31 MovieClip "ballSpeed" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
function speedSet(speed) {
if (speed == 1) {
_root.ballSpeedRate = 1;
} else if (speed == 2) {
_root.ballSpeedRate = 0.25;
} else if (speed == 3) {
_root.ballSpeedRate = 0.5;
} else if (speed == 4) {
_root.ballSpeedRate = 1;
} else if (speed == 5) {
_root.ballSpeedRate = 1.5;
} else 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 46 MovieClip "ballColor" in Symbol 48 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 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 10
stop();
Symbol 49 MovieClip Frame 20
gotoAndStop (1);
Symbol 59 MovieClip Frame 1
stop();
version = _root.version;
Instance of Symbol 20 MovieClip "prev" in Symbol 59 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
gotoAndStop (1);
Flag = false;
if (_parent._currentframe > 1) {
_parent.prevFrame();
} else {
_parent.gotoAndStop(5);
}
}
}
Instance of Symbol 20 MovieClip "next" in Symbol 59 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Flag) {
gotoAndStop (1);
Flag = false;
_parent.nextFrame();
}
}
Symbol 59 MovieClip Frame 6
gotoAndStop (1);
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 10
stop();
Symbol 60 MovieClip Frame 20
gotoAndStop (1);
Instance of Symbol 63 MovieClip "gauge" in Symbol 75 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = ((41.5 * _root.weaponGauge) / _root.weaponGaugeMax);
}
Instance of Symbol 75 MovieClip "weapon" in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
_root.ballBoost = false;
_root.ballCtrl = false;
_root.ballPanic = false;
_root.ballGuard = false;
_root.ballGrav = false;
if (_root.playStatus == "play") {
if (Key.isDown(90)) {
var using = true;
} else {
var using = false;
}
if (_root.weapon == "boost") {
if (using && (_root.weaponGauge >= 1)) {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
_root.ballBoost = true;
} else {
_root.weaponGauge = Math.min(_root.weaponGauge + 0.5, _root.weaponGaugeMax);
}
} else if (_root.weapon == "ctrl") {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
_root.ballCtrl = true;
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
} else if (_root.weapon == "shot") {
if (using) {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
if (_root.soundMode) {
_root.shotSound.shotSound.start();
}
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
}
} else if (_root.weapon == "wide") {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
} else if (_root.weapon == "rapid") {
if (using) {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
_root.g.ball.ball.gotoAndStop(2);
if (_root.soundMode && (!rapidUsing)) {
_root.smashSound.smashSound.start();
}
rapidUsing = true;
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
} else {
if (rapidUsing && (_root.g.ball.ball._currentframe == 2)) {
_root.g.ball.ball.gotoAndStop(1);
}
rapidUsing = false;
}
} else if (_root.weapon == "bomb") {
if (using) {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
if (_root.soundMode) {
_root.shotSound.shotSound.start();
}
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
}
} else if (_root.weapon == "short") {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
} else if (_root.weapon == "panic") {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
_root.ballPanic = true;
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
} else if (_root.weapon == "guard") {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
_root.ballGuard = true;
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
} else if (_root.weapon == "grav") {
_root.weaponGauge = Math.max(_root.weaponGauge - 1, 0);
_root.ballGrav = true;
if (_root.weaponGauge <= 0) {
weaponReset(_root.defaultWeapon);
}
}
}
}
onClipEvent (load) {
function weaponReset(label) {
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;
}
_root.weapon = label;
if (_root.weapon == "wide") {
_root.barMaking(_root.weaponValueWide);
}
if (_root.weapon == "short") {
_root.barMaking(_root.weaponValueShort);
}
if (label == "random") {
var a = (Math.random() * 7);
if (a < 1) {
_root.weapon = "boost";
} else if (a < 2) {
_root.weapon = "ctrl";
} else if (a < 3) {
_root.weapon = "wide";
_root.barMaking(_root.weaponValueWide);
} else if (a < 4) {
_root.weapon = "short";
_root.barMaking(_root.weaponValueShort);
} else if (a < 5) {
_root.weapon = "rapid";
} else if (a < 6) {
_root.weapon = "panic";
} else {
_root.weapon = "grav";
}
}
_root.weaponGaugeMax = _root.weaponGaugeM[_root.weapon];
_root.weaponGauge = _root.weaponGaugeMax;
}
weaponReset(_root.defaultWeapon);
}
Symbol 95 MovieClip Frame 1
ver = _root.version;
Symbol 101 Button
on (release, keyPress "<Enter>") {
tellTarget ("_root") {
loadVariables (configURL.my_url, "_root/config");
};
}
Symbol 116 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 116 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(math.floor(math.random() * 4) + 1);
}
Symbol 117 MovieClip Frame 1
function const() {
if (_root.tBlock == 0) {
var tBlockAuto = true;
} else {
var tBlockAuto = false;
}
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)) {
if (_root.block[(i * _parent.blockx) + j] == 7) {
if (((blockExist(j, i - 1) || (blockExist(j - 1, i))) || (blockExist(j + 1, i))) || (blockExist(j, i + 1))) {
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;
}
} else {
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;
}
}
}
j++;
}
i++;
}
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 blockExistFlag = false;
if ((_root.block[(i * _parent.blockx) + j] != 0) && (_root.block[(i * _parent.blockx) + j] != 7)) {
blockExistFlag = true;
}
return(blockExistFlag);
}
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 124 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
this._visible = false;
timer = 0;
stop();
Symbol 125 MovieClip Frame 2
timer0 = _root.timer;
Symbol 125 MovieClip Frame 4
if ((_root.timer - timer0) < timer) {
prevFrame();
play();
} else {
gotoAndStop (1);
}
Symbol 127 MovieClip Frame 1
this._visible = false;
timer = 0;
stop();
Symbol 127 MovieClip Frame 2
timer0 = _root.timer;
Symbol 127 MovieClip Frame 4
if ((_root.timer - timer0) < timer) {
prevFrame();
play();
} else {
gotoAndStop (1);
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
function setColor() {
gotoAndStop(color);
}
setColor();
stop();
Instance of Symbol 131 MovieClip "ball" in Symbol 132 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;
}
} else {
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 + (Math.PI/2)) * r;
y3 = math.sin(radian + (Math.PI/2)) * r;
x4 = math.cos(radian - (Math.PI/2)) * r;
y4 = math.sin(radian - (Math.PI/2)) * 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");
} else if (_root.clearJump.substr(0, 4) == "url:") {
_root.com.comexec("jumpURL " + _root.clearJump.substr(4));
} else 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;
}
} else if (ytemp > 0) {
x00 = bx + bw;
y00 = by;
} else {
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 a0 = Math.abs(this._x - (bx + (bw / 2)));
var b0 = Math.abs(this._y - (by + (bh / 2)));
whatBlock(x2, y2);
var a1 = Math.abs(this._x - (bx + (bw / 2)));
var b1 = Math.abs(this._y - (by + (bh / 2)));
if ((a0 == a1) && (b0 == b1)) {
if ((this._x >= bx) && (this._x <= (bx + bw))) {
flag02 = false;
} else if ((this._y >= by) && (this._y <= (by + bh))) {
flag01 = false;
} else {
var a;
var b;
if (this._x > (bx + (bw / 2))) {
a = bx + bw;
} else {
a = bx;
}
if (this._y > (by + (bh / 2))) {
b = by + bh;
} else {
b = by;
}
var c = (this._y - ((this._x - a) * Math.tan(radian)));
if ((c <= (by + 0.5)) || (c >= ((by + bh) - 0.5))) {
flag02 = false;
} else {
flag01 = false;
}
}
} else if ((((a0 ^ (2 + b0)) ^ (2 < a1)) ^ (2 + b1)) ^ 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 = Math.PI - radian;
getVarBlock();
}
function scBorder() {
if (x < r) {
radian = Math.PI - 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 = Math.PI - 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();
}
} else if (y > (borh - r)) {
if (_root.playStatus == "over") {
radian = -radian;
y = ((_parent.border._height - (this._height / 2)) * 2) - y;
getVarBlock();
} else {
_root.com.Miss = true;
if (_root.life > 0) {
vx = 0;
_root.gotoAndPlay("throw");
} else {
_root.jump = "gameover";
if (_root.rankingEnable) {
_root.gotoAndPlay("ranking");
} else {
_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() * Math.PI) / 2, minRadian), maxRadian);
} else {
radian = Math.PI + math.min(math.max((math.random() * Math.PI) / 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);
} else {
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) {
var x = this._x;
var y = this._y;
var r = (this._height / 2);
var baseSpeed = (this.basespeed * _root.ballSpeedRate);
getVarBlock();
var blw = _parent.block.block._width;
var blh = _parent.block.block._height;
var blx = _parent.blockx;
var barx = _parent.bar._x;
var bary = _parent.bar._y;
var barw2 = (_parent.bar._width / 2);
var barh2 = (_parent.bar._height / 2);
var barEdge = _parent.bar.edgeWidth;
var barCrit = (_parent.bar.criticalWidth / 2);
var vx = _parent.vx;
var borw = _parent.border._width;
var borh = _parent.border._height;
if ((_root.playStatus == "play") || (_root.playStatus == "over")) {
if (_currentframe == 2) {
speed = baseSpeed * 2;
} else if (Key.isDown(90)) {
speed = baseSpeed * 3;
} else {
speed = baseSpeed;
}
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 = x;
this._y = y;
} else if (_root.playStatus == "stay") {
this._x = barx;
this._y = (bary - barh2) - r;
}
}
}
}
Symbol 152 MovieClip Frame 20
this.removeMovieClip();
Symbol 156 MovieClip Frame 1
g.mes = mes;
Symbol 156 MovieClip Frame 30
this.removeMovieClip();
Symbol 158 MovieClip Frame 1
stop();
Symbol 159 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 160 MovieClip Frame 1
function ballAction() {
var ballPath = "ball";
var x = this[ballPath]._x;
var y = this[ballPath]._y;
var r = (this[ballPath]._height / 2);
var baseSpeed = (this[ballPath].basespeed * _root.ballSpeedRate);
var radian = this[ballPath].radian;
var blw = this.block.block._width;
var blh = this.block.block._height;
var blx = this.blockx;
if (_root.playStatus == "play") {
var barx = _xmouse;
} else {
var barx = this.bar._x;
}
var bary = this.bar._y;
var barw2 = (this.bar._width / 2);
var barh2 = (this.bar._height / 2);
var barEdge = this.bar.edgeWidth;
var barCrit = (this.bar.criticalWidth / 2);
var minRadian = this[ballPath].minRadian;
var maxRadian = this[ballPath].maxRadian;
var vx = this.vx;
var borw = this.border._width;
var borh = this.border._height;
if ((_root.playStatus == "play") || (_root.playStatus == "over")) {
if (!_root.ballGrav) {
if (this[ballPath].ball._currentframe == 2) {
speed = baseSpeed * 2;
} else if (_root.ballBoost) {
speed = baseSpeed * 3;
} else {
speed = baseSpeed;
}
}
if ((_root.playStatus == "play") && (_root.ballCtrl)) {
var xctrl = (Math.cos(radian) * speed);
var yctrl = (Math.sin(radian) * speed);
sctrl = speed / _root.weaponValueCtrl;
if (x > _xmouse) {
xctrl = xctrl - sctrl;
} else {
xctrl = xctrl + sctrl;
}
if (y > _ymouse) {
yctrl = yctrl - sctrl;
} else {
yctrl = yctrl + sctrl;
}
radian = Math.atan2(yctrl, xctrl);
speed = Math.sqrt((xctrl * xctrl) + (yctrl * yctrl));
}
if (_root.ballGrav) {
var xctrl = (Math.cos(radian) * speed);
var yctrl = (Math.sin(radian) * speed);
sctrl = speed / _root.weaponValueGrav;
yctrl = Math.min(yctrl + sctrl, baseSpeed * 3);
radian = Math.atan2(yctrl, xctrl);
speed = Math.min(Math.sqrt((xctrl * xctrl) + (yctrl * yctrl)), baseSpeed * 3);
}
var k = (speed + r);
while (k > r) {
if (math.sin(radian) < 0) {
var a0s = -1;
} else {
var a0s = 1;
}
if (math.cos(radian) < 0) {
var a0c = -1;
} else {
var a0c = 1;
}
x0 = x;
y0 = y;
x1 = x;
y1 = math.floor((y / blh) + (a0s > 0)) * blh;
flag0 = "";
first = false;
i = math.floor(y1 / blh) - (a0s > 0);
j = math.floor(x1 / blw);
i2 = math.floor((y + (math.sin(radian) * (k + (blh * 1.5)))) / blh);
j2 = math.floor((x + (math.cos(radian) * (k + (blw * 1.5)))) / blw);
while ((!((i == i2) && (j == j2))) && (flag0 == "")) {
x2 = ((y1 - y) / math.tan(radian)) + x;
i = math.floor(y1 / blh) - (a0s > 0);
j = math.floor(x1 / blw);
j1 = math.floor(x2 / blw);
if (first) {
y0 = y1 - (blh * a0s);
x0 = ((y0 - y) / math.tan(radian)) + x;
} else {
x0 = x + a0c;
y0 = y + a0s;
}
while ((((j * a0c) <= (j1 * a0c)) && (!((i == i2) && (j == j2)))) && (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 >= ((bary - barh2) - (r * 0))) && (a0s > 0)) {
y01 = bary - barh2;
x01 = x + ((y01 - (y + (r * 0))) / math.tan(radian));
if ((x01 >= ((barx - barw2) - r)) && (x01 <= ((barx + barw2) + r))) {
y0 = y01;
x0 = x01;
flag0 = "paddle";
by = (y0 - r) / blh;
a0s = 0;
r0 = 0;
if (((x >= (barx - barCrit)) && (x <= (barx + barCrit))) && (_root.playStatus == "play")) {
flag1 = "Crit";
_root.com.smashFlag = true;
} else if ((x < ((barx - barw2) + barEdge)) || (x > ((barx + barw2) - barEdge))) {
flag1 = "Edge";
if (_root.edgeBackMode) {
if (((a0c == 1) && (x < barx)) || ((a0c == -1) && (x > barx))) {
flag1 = "EdgeBack";
}
}
} else {
flag1 = "";
}
} else if ((y0 > borh) && (a0s > 0)) {
flag0 = "out";
by = borh / blh;
r0 = 0;
} else {
j = j + a0c;
x0 = (j + (a0c == -1)) * blw;
y0 = ((x0 - x) * math.tan(radian)) + y;
first = false;
}
} else if ((x0 <= 0) && (a0c < 0)) {
flag0 = "border";
flag1 = "side";
bx = 0;
r0 = 1;
} else if ((x0 >= (borw - 0)) && (a0c > 0)) {
flag0 = "border";
flag1 = "side";
bx = (borw / blw) - 0;
r0 = 1;
} else if ((y0 <= 0) && (a0s < 0)) {
flag0 = "border";
flag1 = "Upside";
by = 0;
r0 = 0;
_root.com.hitUpside = true;
} else {
j = j + a0c;
x0 = (j + (a0c == -1)) * blw;
y0 = ((x0 - x) * math.tan(radian)) + y;
first = false;
}
}
x1 = x2;
y1 = y1 + (blh * a0s);
first = true;
}
if (flag0 != "") {
if (flag0 != "block") {
if (r0 == 0) {
if (a0s < 0) {
by1++;
}
y0 = by * blh;
if (a0s < 0) {
by1--;
}
a0 = math.max(((y0 - y) / math.sin(radian)) - r, 1);
x0 = x + (a0 * math.cos(radian));
} else {
if (a0c < 0) {
bx1++;
}
x0 = bx * blw;
if (a0c < 0) {
bx1--;
}
a0 = math.max(((x0 - x) / math.cos(radian)) - r, 1);
y0 = y + (a0 * math.sin(radian));
}
} else {
a0 = math.max(math.sqrt(((x0 - x) * (x0 - x)) + ((y0 - y) * (y0 - y))) - r, 1);
}
if (a0 > k) {
flag0 = "";
}
}
if (flag0 != "") {
x = x + (math.cos(radian) * a0);
y = y + (math.sin(radian) * a0);
k = k - math.abs(a0);
if (flag0 == "block") {
blockBreak(x0, y0, bx, by);
}
if (((this[ballPath].ball._currentframe == 1) || (flag1 == "unBreakable")) || (flag0 != "block")) {
if (r0 == 0) {
radian = -radian;
} else {
radian = Math.PI - 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() * Math.PI) / 2, minRadian), maxRadian);
} else {
radian = Math.PI + math.min(math.max((math.random() * Math.PI) / 2, minRadian), maxRadian);
}
} else if (flag1 == "EdgeBack") {
if (math.cos(radian) < 0) {
radian = -math.min(math.max((math.random() * Math.PI) / 2, minRadian), maxRadian);
} else {
radian = Math.PI + math.min(math.max((math.random() * Math.PI) / 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.smashNum++;
if (_root.ballGrav) {
var xctrl = (Math.cos(radian) * speed);
var yctrl = (Math.sin(radian) * speed);
yctrl = Math.min(yctrl * 3, baseSpeed * 3);
radian = Math.atan2(yctrl, xctrl);
speed = Math.sqrt((xctrl * xctrl) + (yctrl * yctrl));
}
} 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.ballPanic) {
if (Math.random() < 0.5) {
radian = -math.min(math.max((math.random() * Math.PI) / 2, minRadian), maxRadian);
} else {
radian = Math.PI + math.min(math.max((math.random() * Math.PI) / 2, minRadian), maxRadian);
}
}
} 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") {
} else {
k = 0;
_root.com.Miss = true;
if (_root.life > 0) {
vx = 0;
_root.gotoAndPlay("throw");
} else {
_root.jump = "gameover";
_root.gotoAndPlay("scoreBonus");
}
}
}
} else {
x = x + (math.cos(radian) * (k - r));
y = y + (math.sin(radian) * (k - r));
k = 0;
}
}
this[ballPath]._x = x;
this[ballPath]._y = y;
if (_root.ballReviseFlag) {
_root.ballReviseFlag = false;
ballRevise(radian);
} else {
this[ballPath].radian = radian;
}
} else if (_root.playStatus == "stay") {
this[ballPath]._x = barx;
this[ballPath]._y = (bary - barh2) - r;
}
}
function blockMake(j, i, k) {
var a = ((i * blockx) + j);
_root.block[a] = k;
block.blockMaking(j, i);
}
function reconst(bWidth, bHeight) {
var i = 0;
while (i < blocky) {
var j = 0;
while (j < blockx) {
var a = ((i * blockx) + j);
block["block" + a].removeMovieClip();
j++;
}
i++;
}
block.block._width = bWidth;
block.block._height = bHeight;
blockx = math.ceil(border._width / block.block._width);
blocky = math.ceil((border._height - _root.barSpace) / block.block._height);
block2.block._width = block.block._width;
block2.block._height = block.block._height;
block.const();
}
function ballRevise(radian) {
var minRadian = _root.g.ball.minRadian;
var maxRadian = _root.g.ball.maxRadian;
var c = math.cos(radian);
var s = math.sin(radian);
var r = atan2(s, c);
if ((c >= 0) && (s >= 0)) {
radian = math.min(math.max(r, minRadian), maxRadian);
} else if ((c < 0) && (s >= 0)) {
radian = Math.PI - math.min(math.max(Math.PI - r, minRadian), maxRadian);
} else if ((c < 0) && (s < 0)) {
radian = Math.PI + math.min(math.max(r - Math.PI, minRadian), maxRadian);
} else if ((c >= 0) && (s < 0)) {
radian = (Math.PI*2) - math.min(math.max((Math.PI*2) - r, minRadian), maxRadian);
}
_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++;
}
function blockExist(j, i) {
var blx = this.blockx;
var a = ((i * blx) + j);
var blockExistFlag = false;
if ((_root.block[a] != 0) && (_root.block[a] != 7)) {
blockExistFlag = true;
}
return(blockExistFlag);
}
function blockSupportRemove(j, i) {
var blx = this.blockx;
var a = ((i * blx) + j);
if (_root.block[a] == 7) {
if ((((!blockExist(j, i - 1)) && (!blockExist(j - 1, i))) && (!blockExist(j + 1, i))) && (!blockExist(j, i + 1))) {
this.block["block" + a].removeMovieClip();
this.block2["block" + a].removeMovieClip();
_root.block[a] = 0;
}
}
}
function bBreak(j, i) {
var ballPath = "ball";
var blx = this.blockx;
var a = ((i * blx) + j);
_root.com.breakBlock = true;
_root.com.hitX = j;
_root.com.hitY = i;
if ((this[ballPath].ball._currentframe == 1) && (_root.soundMode)) {
_root.breakSound.breakSound.start();
}
_root.g.graphic2.comexec("break" + _root.block[a]);
this.block["block" + a].removeMovieClip();
this.block2["block" + a].removeMovieClip();
if ((_root.itemfromBlock && ((Math.random() * 99) < _root.itemPercent)) || (_root.block[a] == 6)) {
itemRandom();
}
_root.block[a] = 0;
_root.bBlock++;
_root.com.com();
blockSupportRemove(j, i - 1);
blockSupportRemove(j - 1, i);
blockSupportRemove(j + 1, i);
blockSupportRemove(j, i + 1);
if ((_root.scoreCombonum > 0) && (this[ballPath].ball._currentframe == 1)) {
combo++;
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 mes = (combo + "combo!");
this["combo" + this.combo].mes = mes;
_root.score = _root.score + (_root.scoreCombo * _root.scoreCombonum);
}
}
}
function itemRandom() {
var r = (Math.random() * (((((((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid) + _root.itemBomb) + _root.itemShort) + _root.itemPanic) + _root.itemGuard) + _root.itemGrav));
if (r < _root.itemBoost) {
itemPut("boost");
} else if (r < (_root.itemBoost + _root.itemCtrl)) {
itemPut("ctrl");
} else if (r < ((_root.itemBoost + _root.itemCtrl) + _root.itemShot)) {
itemPut("shot");
} else if (r < (((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide)) {
itemPut("wide");
} else if (r < ((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid)) {
itemPut("rapid");
} else if (r < (((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid) + _root.itemBomb)) {
itemPut("bomb");
} else if (r < ((((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid) + _root.itemBomb) + _root.itemShort)) {
itemPut("short");
} else if (r < (((((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid) + _root.itemBomb) + _root.itemShort) + _root.itemPanic)) {
itemPut("panic");
} else if (r < ((((((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid) + _root.itemBomb) + _root.itemShort) + _root.itemPanic) + _root.itemGuard)) {
itemPut("guard");
} else if (r < (((((((((_root.itemBoost + _root.itemCtrl) + _root.itemShot) + _root.itemWide) + _root.itemRapid) + _root.itemBomb) + _root.itemShort) + _root.itemPanic) + _root.itemGuard) + _root.itemGrav)) {
itemPut("grav");
}
}
function itemPut(label) {
itemNumber++;
item.duplicateMovieClip("item" + itemNumber, itemNumber);
this["item" + itemNumber]._x = _root.com.hitHX;
this["item" + itemNumber]._y = _root.com.hitHY;
this["item" + itemNumber].label = label;
this["item" + itemNumber].gotoAndStop(label);
}
function blockBreak(hx, hy, j, i) {
var blx = this.blockx;
var ballPath = "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 a = ((i * blx) + j);
_root.g.graphic2.hitX = j;
_root.g.graphic2.hitY = i;
_root.g.graphic2.comexec("hit" + _root.block[a]);
if (_root.block[a] == 1) {
bBreak(j, i);
_root.score = _root.score + _root.scoreBlock1;
} else if (_root.block[a] == 2) {
if (this.block["block" + a].vit == 2) {
this.block["block" + a].vit--;
if ((this[ballPath].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
} else if (this.block["block" + a].vit == 1) {
bBreak(j, i);
_root.score = _root.score + _root.scoreBlock2;
}
} else if (_root.block[a] == 3) {
if (this.block["block" + a].vit == 3) {
this.block["block" + a].vit--;
if ((this[ballPath].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
} else if (this.block["block" + a].vit == 2) {
this.block["block" + a].vit--;
if ((this[ballPath].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
} else if (this.block["block" + a].vit == 1) {
bBreak(j, i);
_root.score = _root.score + _root.scoreBlock3;
}
} else if (_root.block[a] == 4) {
if ((this[ballPath].ball._currentframe == 1) && (_root.soundMode)) {
_root.hitSound.hitSound.start();
}
_root.score = _root.score + _root.scoreBlock4;
} else if (_root.block[a] == 6) {
bBreak(j, i);
_root.score = _root.score + _root.scoreBlock6;
} else if (_root.block[a] == 7) {
} else if (_root.block[a] < 100) {
}
if (_root.bBlock >= _root.clearBlocks) {
if (_root.bBlock == _root.clearBlocks) {
_root.g.graphic2.comexec("onClear");
}
if (_root.clearJump == "clear") {
_root.com.comexec("gameClear");
} else if (_root.clearJump.substr(0, 4) == "url:") {
_root.com.comexec("jumpURL " + _root.clearJump.substr(4));
} else if (_root.clearJump.substr(0, 5) == "next:") {
_root.com.comexec("nextLevel " + _root.clearJump.substr(5));
}
}
}
}
if (_root.blockMode) {
gotoAndPlay (5);
}
Instance of Symbol 137 MovieClip "bar" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.barSpeedRate != 0) {
var baseSpeed = (xSpeed * _root.barSpeedRate);
} else {
var baseSpeed = math.abs((math.cos(_parent.ball.radian) * _parent.ball.basespeed) * _root.ballSpeedRate);
}
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 * baseSpeed) * turbo);
} else {
this._x = _parent._xmouse;
}
this._x = math.min(math.max(this._x, 0), _parent.border._width);
} else if (_root.playStatus == "over") {
this._x = _parent.ball._x;
}
}
Instance of Symbol 146 MovieClip "item" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
if (label != undefined) {
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 = 5;
this._y = this._y + speed;
if (this._y >= borh) {
this.removeMovieClip();
} else if (((this._y >= (bary - barh2)) && (this._x >= (barx - barw2))) && (this._x <= (barx + barw2))) {
_root.option.weapon.weaponReset(label);
this.removeMovieClip();
}
}
}
onClipEvent (load) {
if (label == undefined) {
stop();
this._visible = false;
}
}
Symbol 160 MovieClip Frame 4
gotoAndPlay(_currentframe - 1);
_root.g.ballAction();
Symbol 160 MovieClip Frame 9
gotoAndPlay(_currentframe - 1);
_root.g.ballAction();
Symbol 165 MovieClip Frame 1
stop();
Symbol 167 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 174 Button
on (release) {
this._visible = false;
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 227 Button
on (release, keyPress "<Space>") {
if (_root.playStatus == "stay") {
if (_root.soundMode) {
_root.throwSound.throwSound.start();
}
gotoAndPlay (20);
}
}
Symbol 228 Button
on (release, keyPress "<Space>") {
_root.cnf = _root.defaultConfig;
_root.nextConfig = "";
_root.config.version = "";
gotoAndPlay (1);
}
Symbol 229 Button
on (release, keyPress "<Space>") {
if (_root.jump == "clear") {
gotoAndStop (35);
} else {
getURL (_root.jump);
}
}
Symbol 230 Button
on (release) {
gotoAndPlay (4);
}
Symbol 236 Button
on (release) {
_root.score = _root.score + timebonuspoint.point;
timebonuspoint.point = 0;
}
Symbol 237 Button
on (release) {
_root.score = _root.score + lifebonuspoint.point;
lifebonuspoint.point = 0;
}
Symbol 239 Button
on (release) {
this._visible = false;
_root.play();
}
Symbol 241 Button
on (release) {
play();
}
Symbol 243 Button
on (release) {
_root.score = _root.score + penaltybonuspoint.point;
penaltybonuspoint.point = 0;
}
Symbol 245 MovieClip Frame 1
timebonus = math.max(_root.scoreTime0 - (_root.scoreTime1 * math.floor(_root.timerB / 1000)), 0);
lifebonus = math.max(_root.life * _root.scoreLife, 0);
penaltybonus = -math.max(_root.scoreSmash * _root.smashNum, 0);
if (_root.jump == "gameover") {
gotoAndPlay (15);
}
Instance of Symbol 233 MovieClip "lifebonuspoint" in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
point = _parent.lifebonus;
}
Instance of Symbol 233 MovieClip "timebonuspoint" in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
point = _parent.timebonus;
}
Instance of Symbol 233 MovieClip "yourscore" in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
point = _root.score;
}
onClipEvent (load) {
point = _root.score;
}
Instance of Symbol 233 MovieClip "maxcombo" in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
point = _root.maxcombo;
}
Symbol 245 MovieClip Frame 3
stop();
Symbol 245 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 233 MovieClip "timebonuspoint" in Symbol 245 MovieClip Frame 6
onClipEvent (load) {
point = 0;
}
Symbol 245 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 233 MovieClip "lifebonuspoint" in Symbol 245 MovieClip Frame 8
onClipEvent (load) {
point = 0;
}
Symbol 245 MovieClip Frame 9
stop();
Instance of Symbol 233 MovieClip "penaltybonuspoint" in Symbol 245 MovieClip Frame 10
onClipEvent (load) {
point = _parent.penaltybonus;
}
Symbol 245 MovieClip Frame 11
stop();
Symbol 245 MovieClip Frame 13
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 245 MovieClip Frame 14
stop();
Instance of Symbol 233 MovieClip "penaltybonuspoint" in Symbol 245 MovieClip Frame 14
onClipEvent (load) {
point = 0;
}
Symbol 245 MovieClip Frame 15
this._visible = false;
Instance of Symbol 233 MovieClip "penaltybonuspoint" in Symbol 245 MovieClip Frame 15
onClipEvent (load) {
point = _parent.penaltybonus;
}
Symbol 245 MovieClip Frame 16
Symbol 245 MovieClip Frame 18
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 245 MovieClip Frame 19
this._visible = false;
_root.play();
stop();
Instance of Symbol 233 MovieClip "penaltybonuspoint" in Symbol 245 MovieClip Frame 19
onClipEvent (load) {
point = 0;
}