Frame 1
this.stop();
Frame 2
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
function loadData() {
var _local2 = "data5";
this.data_so = SharedObject.getLocal(_local2);
trace(this.data_so);
if (this.data_so == null) {
trace("not find stageclear_data");
this.saveData();
return(undefined);
}
this.save_data = this.data_so.data;
this.high_score = this.save_data.high_score;
if (this.high_score == undefined) {
trace("undefined\u306A\u306E\u3067\u521D\u671F\u5316");
this.high_score = 50000;
}
trace("loading <data_sc>");
}
function saveData() {
trace("save stageclear_data");
var _local3 = "data5";
this.data_so = SharedObject.getLocal(_local3);
this.data_so.data.high_score = this.high_score;
var _local2 = this.data_so.flush();
if (_local2) {
trace("succees: write stageclear_data");
} else {
trace("err: write stageclear_data");
}
}
function playSE(id) {
trace(id);
var _local2 = new Sound(this);
_local2.attachSound(id);
_local2.start(0, 1);
}
this.high_score = 50000;
this.norma_num_list = [3, 5, 6, 5, 2, 4, 10, 20];
this.fall_speed_list = [0.5, 0.7, 1, 1, 2, 1.5, 2, 2.5];
this.rand_list = [[0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5], [0, 1, 1, 2, 2, 3, 4, 7, 8, 9], [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3], [2, 2, 3, 4, 5, 6, 7, 8, 9, 9], [0, 1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9], [4, 5, 6, 7, 8, 9], [0, 1, 1, 1, 2, 2, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9]];
this.last_level_num = 6;
this.loadData();
MouseListener = new Object();
MouseListener.onMouseDown = function () {
};
keyListener = new Object();
keyListener.onKeyDown = function () {
_root.speed_up_flg = true;
};
keyListener.onKeyUp = function () {
_root.speed_up_flg = false;
};
Key.addListener(keyListener);
Mouse.addListener(MouseListener);
Frame 3
function initDepth() {
this.depth_bg = 10;
this.depth_effect = 500;
this.depth_ball = 1000;
this.depth_get_score = 10000;
this.depth_if = 20000;
this.depth_effect_if = 20001;
this.depth_effect_blur = 20100;
}
function initStage() {
this.total_ball_cnt = 0;
this.speed_up_flg = false;
this.over_cnt = 0;
this.all_mc_list = [];
this.ten_ball_cnt = 0;
this.initSelect();
this.initDepth();
this.mc_gage.init();
}
function initGame() {
this.score = 0;
this.level_num = 1;
}
function setNewBall(nx, ny, num) {
this.total_ball_cnt++;
var _local3 = "numBall";
var _local2 = "mc_ball" + String(this.total_ball_cnt);
var _local4 = this.total_ball_cnt + this.depth_ball;
this.attachMovie(_local3, _local2, _local4);
this[_local2]._x = nx;
this[_local2]._y = ny;
this[_local2].num = num;
this.all_mc_list.push(this[_local2]);
}
function deleteMovieClip(target) {
i = 0;
while (i < this.all_mc_list.length) {
if (this.all_mc_list[i] == target) {
this.all_mc_list.splice(i, 1);
return(undefined);
}
i++;
}
}
function setEffect(nx, ny) {
var _local2 = "mc_effect" + this.depth_effect;
this.attachMovie("effect", _local2, this.depth_effect++);
this[_local2]._x = nx;
this[_local2]._y = ny;
}
function initSelect() {
this.select_ball_list = [];
}
function selectBall(target) {
this.select_ball_list.push(target);
if (this.select_ball_list.length == 3) {
var _local4 = 0;
var _local3 = 0;
var _local5 = 0;
i = 0;
while (i < 3) {
_local4 = _local4 + this.select_ball_list[i]._x;
_local3 = _local3 + this.select_ball_list[i]._y;
_local5 = _local5 + this.select_ball_list[i].num;
i++;
}
_local4 = _local4 / 3;
_local3 = _local3 / 3;
i = 0;
while (i < 3) {
this.select_ball_list[i].entryUnion(_local4, _local3, i, _local5);
i++;
}
this.setEffect(_local4, _local3);
this.initSelect();
} else {
_root.playSE("se_ball_press");
}
}
function releaseBall(target) {
i = 0;
while (i < this.select_ball_list.length) {
if (this.select_ball_list[i] == target) {
this.select_ball_list.splice(i, 1);
}
i++;
}
}
function releaseAllBall() {
i = 0;
while (i < this.select_ball_list.length) {
this.select_ball_list[i].releaseBall();
i++;
}
this.initSelect();
}
function newBtn(nx, ny, total_num) {
var _local3 = 0;
var _local4 = total_num % 10;
if (_local4 == 0) {
this.score = this.score + (total_num * 100);
var _local8 = String(num * 100);
switch (Math.floor(total_num / 10)) {
case 0 :
_root.playSE("se_10000");
_local3 = 10000;
break;
case 1 :
_local3 = 1000;
_root.playSE("se_ball_ten");
this.checkClear(nx, ny);
break;
case 2 :
_local3 = 4000;
_root.playSE("se_ball_ten");
if (this.checkClear(nx, ny)) {
} else {
this.checkClear(nx, ny);
}
}
} else if (total_num > 10) {
_local3 = 0;
this.mc_gage.deleteLife(_local4);
this.dispPenalty(nx, ny - 15, "OVER +" + _local4);
_root.playSE("se_over10");
} else {
_root.playSE("se_union");
_local3 = _local4 * 10;
}
this.setNewBall(nx, ny, _local4);
this.dispGetScore(nx, ny - 15, _local3);
this.addScore(_local3);
}
function checkClear(nx, ny) {
this.ten_ball_cnt++;
this.entryEffectGet(nx, ny);
if (ten_ball_cnt == this.norma_num_list[this.level_num - 1]) {
this.game_do_flg = false;
_root.gotoAndPlay("stageclear");
return(true);
}
return(false);
}
function entryStageClear() {
i = 0;
while (i < this.all_mc_list.length) {
this.all_mc_list[i].stageClear();
i++;
}
}
function addOver(n) {
this.over_cnt = this.over_cnt + n;
}
function dispGetScore(nx, ny, n) {
if ((n <= 0) || (n == undefined)) {
return(undefined);
}
var _local3 = "getScore";
var _local2 = "mc_gs" + this.depth_get_score;
this.attachMovie(_local3, _local2, this.depth_get_score++);
this[_local2]._x = nx;
this[_local2]._y = ny;
this[_local2].str = n + "pts.";
}
function dispPenalty(nx, ny, str) {
var _local3 = "penalty";
var _local2 = "mc_penalty" + this.depth_get_score;
this.attachMovie(_local3, _local2, this.depth_get_score++);
this[_local2]._x = nx;
this[_local2]._y = ny;
this[_local2].str = str;
}
function mcAllClear() {
i = 0;
while (i < this.all_mc_list.length) {
this.all_mc_list[i].removeMovieClip();
i++;
}
}
function entryGameOver() {
i = 0;
while (i < this.all_mc_list.length) {
this.all_mc_list[i].gameover();
i++;
}
}
function entryEffectGet(nx, ny) {
_root.mc_if["mc_cb" + (this.ten_ball_cnt - 1)].entry();
var _local5 = _root.mc_if["mc_cb" + (this.ten_ball_cnt - 1)]._x;
var _local4 = _root.mc_if["mc_cb" + (this.ten_ball_cnt - 1)]._y;
var _local3 = "mc_efgt" + this.depth_effect_if;
var _local6 = "effect_gs";
this.attachMovie(_local6, _local3, this.depth_effect_if++);
this[_local3]._x = nx;
this[_local3]._y = ny;
this[_local3].target_x = _local5;
this[_local3].target_y = _local4;
}
function addScore(n) {
this.score = this.score + n;
if (this.score > this.high_score) {
this.high_score = this.score;
}
}
this.initDepth();
this.attachMovie("if", "mc_if", this.depth_if);
Frame 10
this.initGame();
this.stop();
Frame 17
this.initStage();
Frame 23
this.mc_bg.gotoAndPlay("bg" + this.level_num);
Frame 28
this.stop();
Frame 35
this.game_do_flg = true;
this.stop();
Frame 47
this.entryGameOver();
this.saveData();
this.stop();
Frame 57
this.entryStageClear();
this.stop();
Frame 65
this.level_num++;
if (this.level_num > this.last_level_num) {
this.gotoAndPlay("ending");
} else {
this.gotoAndPlay("stagein");
}
Frame 72
this.stop();
Symbol 6 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 1;
};
Symbol 8 MovieClip Frame 1
this.gotoAndStop(_parent._parent._parent.num + 1);
Symbol 11 MovieClip Frame 1
this.stop();
Symbol 11 MovieClip Frame 15
this.stop();
Symbol 11 MovieClip Frame 30
this.stop();
Symbol 16 MovieClip Frame 1
this.stop();
Symbol 16 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 28 MovieClip Frame 21
_parent.deleteMC();
this.stop();
Symbol 29 MovieClip [numBall] Frame 1
function entryRollOut() {
if (this.stat == "over") {
this.stat = "fall";
}
}
function releaseBall() {
this.select_flg = false;
this.mc_select._visible = false;
this.stat = "fall";
}
function fall() {
this.py = this.py + (this.dy + _root.mc_gameMain.add_dy);
if (this.py > 440) {
_root.playSE("se_ball_fall");
this.stat = "fall2";
this.mc_num.mc_ball_base.gotoAndStop("lightoffquick");
if (this.num > 0) {
_root.dispPenalty(this.px, this.py - 15, "PAST +" + this.num);
_root.mc_gage.deleteLife(this.num);
}
}
this.hitCheck();
}
function fall2() {
this.py = this.py + this.dy;
this.dy++;
if (this.py >= 500) {
this.deleteMC();
}
}
function fall3() {
this.py = this.py + this.dy;
this.dy++;
if (this.py >= 500) {
this.deleteMC();
}
}
function hitCheck() {
i = 0;
while (i < _root.all_mc_list.length) {
var _local4 = _root.all_mc_list[i];
if (_local4.py > this.py) {
var _local3 = this.px - _local4.px;
var _local5 = this.py - _local4.py;
r = Math.sqrt((_local3 * _local3) + (_local5 * _local5));
if (r < 40) {
if (_local3 == 0) {
if (this.px < 320) {
_local3 = 1;
} else {
_local3 = -1;
}
}
var _local6 = Math.atan2(_local5, _local3);
this.px = _local4.px + (Math.cos(_local6) * 40);
this.py = _local4.py + (Math.sin(_local6) * 40);
}
}
i++;
}
}
function entryUnion(nx, ny, i, total_num) {
this.stat = "union";
this.target_x = nx;
this.target_y = ny;
this.vx = (this.px - this.target_x) / 3;
this.vy = (this.py - this.target_y) / 3;
this.mc_num._visible = false;
this.cnt = 0;
if (i == 0) {
this.base_flg = true;
} else {
this.base_flg = false;
}
this.total_num = total_num;
}
function union() {
this.vx = (this.target_x - this.px) / 3;
this.vy = (this.target_y - this.py) / 3;
this.drawBlur();
this.px = this.px + this.vx;
this.py = this.py + this.vy;
if (this.cnt == 4) {
if (this.base_flg) {
_root.newBtn(this.target_x, this.target_y, this.total_num);
}
this.deleteMC();
} else {
this.cnt++;
}
}
function gameover() {
this.stat = "gameover";
this.dy = 0;
this.mc_visible._visible = false;
this.mc_num.mc_ball_base.gotoAndPlay("lightoff");
}
function stageClear() {
this.stat = "clear";
_root.dispGetScore(this.px, this.py, 10);
_root.addScore(10);
this.mc_select._visible = false;
this.mc_num.gotoAndPlay("break");
}
function deleteMC() {
_root.deleteMovieClip(this);
_parent[this.blurName].removeMovieClip();
this.removeMovieClip();
}
function drawBlur() {
var _local4 = new flash.geom.Point(this.px, this.py);
var _local3 = new flash.geom.Point(this.px + this.vx, this.py + this.vy);
_parent[this.blurName]._x = _local3.x;
_parent[this.blurName]._y = _local3.y;
var _local5 = flash.geom.Point.distance(_local4, _local3);
var _local6 = PointAngle(_local4, _local3);
rotate_matrix.identity();
rotate_matrix.translate(offset, offset);
blur_bmp.fillRect(blur_bmp.rectangle, 0);
blur_bmp.draw(this.mc_num, rotate_matrix);
blur_filter.blurY = Math.min(maxBlur, _local5 * 1.5);
blur_bmp.applyFilter(blur_bmp, blur_rect, blur_point, blur_filter);
_parent[this.blurName]._rotation = ((_local6 * 180) / Math.PI) - 90;
}
function PointAngle(pt1, pt2) {
var _local2 = pt2.x - pt1.x;
var _local1 = pt2.y - pt1.y;
return(Math.atan2(_local1, _local2));
}
this.px = _x;
this.py = _y;
this.stat = "fall";
this.select_flg = false;
this.mc_select._visible = false;
this.dy = _root.fall_speed_list[_root.level_num - 1];
this.mc_num.gotoAndStop(this.num + 1);
if (this.num == 10) {
this.num = 0;
}
var maxBlur = 40;
var easeAmount = 0.75;
var maxSize = (maxBlur + Math.sqrt((this.mc_num._width * this.mc_num._width) + (this.mc_num._height * this.mc_num._height)));
var offset = (maxSize / 2);
var blur_bmp = (new flash.display.BitmapData(maxSize, maxSize, true, 0));
this.blurName = this._name + "b";
_parent.createEmptyMovieClip(this.blurName, _parent.depth_effect_blur++);
_parent[this.blurName].createEmptyMovieClip("image", 1);
_parent[this.blurName].image.attachBitmap(blur_bmp, 1, false, true);
_parent[this.blurName].image._x = -offset;
_parent[this.blurName].image._y = -offset;
var rotate_matrix = (new flash.geom.Matrix());
var blur_rect = blur_bmp.rectangle;
var blur_point = (new flash.geom.Point(0, 0));
var blur_filter = (new flash.filters.BlurFilter(0, 0));
var target_loc = (new flash.geom.Point(this.px, this.py));
this.stop();
this.onEnterFrame = function () {
switch (this.stat) {
case "fall" :
this.fall();
break;
case "fall2" :
this.fall2();
break;
case "union" :
this.union();
break;
case "gameover" :
this.fall3();
}
this._x = this.px;
this._y = this.py;
};
this.onPress = function () {
if (_root.game_do_flg) {
if (((this.stat == "fall") || (this.stat == "select")) || (this.stat == "over")) {
if (this.select_flg == false) {
this.stat = "select";
_root.selectBall(this);
this.select_flg = true;
this.mc_over._visible = false;
this.mc_select._visible = true;
this.mc_num.mc_ball_base.gotoAndPlay("select");
} else {
_root.releaseBall(this);
this.releaseBall();
}
}
}
};
this.onRollOver = function () {
if (_root.game_do_flg) {
if (this.stat == "fall") {
_root.playSE("se_ball_over");
this.stat = "over";
this.mc_over._visible = true;
this.mc_num.mc_over.gotoAndPlay(2);
}
}
};
this.onRollOut = function () {
this.entryRollOut();
};
this.onDragOut = function () {
this.entryRollOut();
};
this.onReleaseOutside = function () {
this.entryRollOut();
};
Symbol 33 MovieClip [penalty] Frame 1
this.mc_str.str = this.str;
Symbol 33 MovieClip [penalty] Frame 40
this.removeMovieClip();
Symbol 36 MovieClip [getScore] Frame 1
this.mc_str.str = this.str;
Symbol 36 MovieClip [getScore] Frame 40
this.removeMovieClip();
Symbol 39 MovieClip [effect] Frame 15
this.removeMovieClip();
Symbol 42 MovieClip [effect_gs] Frame 1
function drawBlur() {
var _local4 = new flash.geom.Point(this.px, this.py);
var _local3 = new flash.geom.Point(this.px + this.vx, this.py + this.vy);
_parent[this.blurName]._x = _local3.x;
_parent[this.blurName]._y = _local3.y;
var _local5 = flash.geom.Point.distance(_local4, _local3);
var _local6 = PointAngle(_local4, _local3);
rotate_matrix.identity();
rotate_matrix.translate(offset, offset);
blur_bmp.fillRect(blur_bmp.rectangle, 0);
blur_bmp.draw(mc_g, rotate_matrix);
blur_filter.blurY = Math.min(maxBlur, _local5 * 1.5);
blur_bmp.applyFilter(blur_bmp, blur_rect, blur_point, blur_filter);
_parent[this.blurName]._rotation = ((_local6 * 180) / Math.PI) - 90;
}
function PointAngle(pt1, pt2) {
var _local2 = pt2.x - pt1.x;
var _local1 = pt2.y - pt1.y;
return(Math.atan2(_local1, _local2));
}
this.cacheAsBitmap = true;
this.px = this._x;
this.py = this._y;
this.vx = (this.px - this.target_x) / 3;
this.vy = (this.py - this.target_y) / 3;
this.mc_g._visible = false;
this.cnt = 0;
this.onEnterFrame = function () {
this.vx = (this.target_x - this.px) / 3;
this.vy = (this.target_y - this.py) / 3;
this.drawBlur();
this.px = this.px + this.vx;
this.py = this.py + this.vy;
this._x = this.px;
this._y = this.py;
if (this.cnt == 4) {
_parent[this.blurName].removeMovieClip();
this.removeMovieClip();
} else {
this.cnt++;
}
};
var maxBlur = 40;
var easeAmount = 0.75;
var maxSize = (maxBlur + Math.sqrt((mc_g._width * mc_g._width) + (mc_g._height * mc_g._height)));
var offset = (maxSize / 2);
var blur_bmp = (new flash.display.BitmapData(maxSize, maxSize, true, 0));
this.blurName = this._name + "b";
_parent.createEmptyMovieClip(this.blurName, _parent.depth_effect_blur++);
_parent[this.blurName].createEmptyMovieClip("image", 1);
_parent[this.blurName].image.attachBitmap(blur_bmp, 1, false, true);
_parent[this.blurName].image._x = -offset;
_parent[this.blurName].image._y = -offset;
var rotate_matrix = (new flash.geom.Matrix());
var blur_rect = blur_bmp.rectangle;
var blur_point = (new flash.geom.Point(0, 0));
var blur_filter = (new flash.filters.BlurFilter(0, 0));
var target_loc = (new flash.geom.Point(this.px, this.py));
this.stop();
Symbol 48 MovieClip Frame 1
this.stop();
Symbol 48 MovieClip Frame 29
this.stop();
Symbol 49 MovieClip [comp_ball] Frame 1
function clearBall() {
if (this.light_flg) {
this.gotoAndPlay("clear");
} else {
this.gotoAndPlay("clear2");
}
}
this.light_flg = false;
Symbol 49 MovieClip [comp_ball] Frame 15
function entry() {
this.gotoAndPlay("light");
}
this.stop();
Symbol 49 MovieClip [comp_ball] Frame 24
this.light_flg = true;
Symbol 49 MovieClip [comp_ball] Frame 34
_parent.flashBall();
this.stop();
Symbol 49 MovieClip [comp_ball] Frame 43
this.removeMovieClip();
Symbol 49 MovieClip [comp_ball] Frame 53
this.removeMovieClip();
Symbol 58 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 1;
};
Symbol 59 MovieClip Frame 1
this.onPress = function () {
if (_parent.btn_enable_flg) {
_root.playSE("se_btn_press");
_parent.btn_enable_flg = false;
_parent.play();
}
};
this.onRollOver = function () {
_root.playSE("se_btn_over");
this.gotoAndPlay("over");
};
this.onRollOut = function () {
this.gotoAndPlay("stay");
};
this.onDragOut = function () {
this.gotoAndPlay("stay");
};
this.releaseOutside = function () {
this.gotoAndPlay("stay");
};
this.stop();
Symbol 59 MovieClip Frame 9
this.stop();
Symbol 59 MovieClip Frame 15
this.stop();
Symbol 65 MovieClip Frame 1
this.btn_enable_flg = true;
this.stop();
Instance of Symbol 59 MovieClip in Symbol 65 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
str = "GAME START";
}
Symbol 65 MovieClip Frame 2
_parent.gotoAndPlay("open");
this.stop();
Symbol 77 MovieClip Frame 1
function gameStart() {
this.target_x = 650;
this.target_y = -10;
}
function entry() {
this.stat = "start";
this.target_x = 530;
this.target_y = 60;
}
this.stat = "stay";
this.stop();
this.onPress = function () {
this.stat = "drag";
this.startDrag();
};
this.onRelease = function () {
this.stat = "start";
this.stopDrag();
};
this.onEnterFrame = function () {
if (!(this.stat === "start")) {
} else {
this._x = this._x + ((this.target_x - this._x) / 5);
this._y = this._y + ((this.target_y - this._y) / 5);
}
};
Symbol 91 MovieClip [if] Frame 1
function entrySet() {
this.cmp_ball_mc_list = [];
this.set_flg = true;
this.set_num = _root.norma_num_list[_root.level_num - 1];
this.set_cnt = 0;
this.cnt = 0;
}
function clearIF() {
i = 0;
while (i < this.cmp_ball_mc_list.length) {
this.cmp_ball_mc_list[i].clearBall();
i++;
}
}
function flashBall() {
i = 0;
while (i < this.cmp_ball_mc_list.length) {
this.cmp_ball_mc_list[i].mc_effect.gotoAndPlay(i + 2);
i++;
}
}
this.set_flg = false;
this.onEnterFrame = function () {
if (this.set_flg) {
if (this.cnt == 0) {
var _local2 = "mc_cb" + this.set_cnt;
this.attachMovie("comp_ball", _local2, this.set_cnt);
this[_local2]._x = 80 + (this.set_cnt * 24);
this[_local2]._y = 58;
this.cmp_ball_mc_list.push(this[_local2]);
this.cnt = 2;
this.set_cnt++;
if (this.set_cnt == this.set_num) {
this.set_flg = false;
}
} else {
this.cnt--;
}
}
};
Symbol 91 MovieClip [if] Frame 5
this.mc_inst.entry();
this.stop();
Symbol 91 MovieClip [if] Frame 15
this.mc_inst.gameStart();
_root.mc_bg.gotoAndStop(1);
Symbol 91 MovieClip [if] Frame 70
_root.gotoAndPlay("stagein");
this.stop();
Symbol 91 MovieClip [if] Frame 90
this.clearIF();
Symbol 91 MovieClip [if] Frame 105
this.gotoAndPlay("title");
Symbol 95 MovieClip [bg3] Frame 1
this.cacheAsBitmap = true;
Symbol 98 MovieClip [bg2] Frame 1
this.cacheAsBitmap = true;
Symbol 101 MovieClip [bg4] Frame 1
this.cacheAsBitmap = true;
Symbol 106 MovieClip [bg5] Frame 1
this.cacheAsBitmap = true;
Symbol 111 MovieClip Frame 1
this.load_finish_flg = false;
this.stop();
this.onEnterFrame = function () {
if (this.load_finish_flg == false) {
this.loaded_size = _root.getBytesLoaded();
this.total_size = _root.getBytesTotal();
if (this.loaded_size >= this.total_size) {
this.load_finish_flg = true;
this.gotoAndPlay("ok");
} else {
var _local4 = (this.loaded_size / this.total_size) * 100;
var _local3 = Math.round(_local4);
this.mc_bar._width = 300 * (_local3 / 100);
}
}
};
Symbol 111 MovieClip Frame 19
_parent.play();
Symbol 119 MovieClip Frame 1
this.stop();
Symbol 121 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 122 MovieClip Frame 35
this.stop();
Symbol 125 MovieClip [bg6] Frame 1
this.cacheAsBitmap = true;
Symbol 127 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 128 MovieClip Frame 1
this.stop();
Symbol 128 MovieClip Frame 35
this.stop();
Symbol 128 MovieClip Frame 65
this.stop();
Symbol 128 MovieClip Frame 95
this.stop();
Symbol 128 MovieClip Frame 125
this.stop();
Symbol 128 MovieClip Frame 155
this.stop();
Symbol 128 MovieClip Frame 185
this.stop();
Symbol 130 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
_root.releaseAllBall();
};
Symbol 131 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
_root.speed_up_flg = true;
};
this.onRelease = function () {
_root.speed_up_flg = false;
};
this.onReleaseOutside = function () {
_root.speed_up_flg = false;
};
Symbol 139 MovieClip Frame 90
this.gotoAndPlay(1);
Symbol 143 MovieClip Frame 1
function entry() {
this._alpha = 100;
this.entry_flg = true;
}
function end() {
this.entry_flg = false;
}
this.entry_flg = false;
this._alpha = 0;
this.txt = "20";
this.onEnterFrame = function () {
if (this.entry_flg) {
this._x = _parent.mask_x + 400;
this.txt = Math.floor((this._x / 400) * _parent.life_max);
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
this._alpha = 0;
}
}
};
Symbol 144 MovieClip Frame 1
function init() {
this.life = 40;
this.life_max = this.life;
this.mask_x = 0;
this.mask_target_x = this.mask_x;
this.mc_mask._x = this.mask_x;
this.stat = "stay";
}
function deleteLife(n) {
if (_root.game_do_flg) {
this.life = this.life - n;
if (this.life <= 0) {
this.life = 0;
_root.game_do_flg = false;
_root.gotoAndPlay("gameover");
}
this.mask_target_x = -400 + Math.floor((this.life / this.life_max) * 400);
this.mc_f.entry();
this.stat = "del";
}
}
function bonus() {
this.stat = "bonus";
}
this.stat = "stay";
this.onEnterFrame = function () {
switch (this.stat) {
case "del" :
if (this.mask_x > this.mask_target_x) {
var _local3 = (this.mask_x - this.mask_target_x) / 10;
this.mask_x = this.mask_x - _local3;
if (Math.abs(_local3) < 0.1) {
this.stat = "stay";
this.mask_x == this.mask_target_x;
this.mc_f.end();
}
this.mc_mask._x = this.mask_x;
}
break;
case "bonus" :
this.mask_x = this.mask_x - (Math.floor((1 / this.life_max) * 400) / 2);
_root.addScore(100);
if (this.mask_x <= -400) {
this.mask_x = -400;
this.stat = "stay";
_root.mc_stageclear.gotoAndPlay("next");
}
this.mc_mask._x = this.mask_x;
}
};
this.stop();
Symbol 149 MovieClip Frame 1
this.stop();
Symbol 149 MovieClip Frame 16
this.stop();
Symbol 151 MovieClip Frame 15
this.t2.mc_hamon.gotoAndPlay(8);
this.t3.mc_hamon.gotoAndPlay(6);
this.t4.mc_hamon.gotoAndPlay(4);
this.t5.mc_hamon.gotoAndPlay(2);
Symbol 151 MovieClip Frame 45
this.t2.mc_hamon.gotoAndPlay(2);
this.t3.mc_hamon.gotoAndPlay(4);
this.t4.mc_hamon.gotoAndPlay(6);
this.t5.mc_hamon.gotoAndPlay(8);
Symbol 152 MovieClip Frame 1
this.mc_anm.t1.str = "L";
this.mc_anm.t2.str = "E";
this.mc_anm.t3.str = "V";
this.mc_anm.t4.str = "E";
this.mc_anm.t5.str = "L";
this.mc_anm.t6.str = _root.level_num;
Symbol 152 MovieClip Frame 40
_root.mc_if.entrySet();
Symbol 152 MovieClip Frame 60
Symbol 152 MovieClip Frame 61
_parent.gotoAndPlay("main");
Symbol 152 MovieClip Frame 71
this.stop();
Symbol 155 MovieClip Frame 1
function main() {
if (this.set_itv_cnt >= this.set_cnt) {
var _local6 = (_root.randomInt(29) * 20) + 20;
var _local5 = 55;
var _local3 = _root.randomInt(_root.rand_list[_root.level_num - 1].length) - 1;
var _local4 = _root.rand_list[_root.level_num - 1][_local3];
_root.setNewBall(_local6, _local5, _local4);
this.set_itv_cnt = 0;
} else {
this.set_itv_cnt++;
this.set_itv_cnt = this.set_itv_cnt + (this.add_dy * 2);
}
if (_root.speed_up_flg) {
this.add_dy = this.add_dy + 0.1;
if (this.add_dy > 2) {
this.add_dy = 1;
}
} else {
this.add_dy = this.add_dy - 0.5;
if (this.add_dy < 0) {
this.add_dy = 0;
}
}
}
this.set_itv_cnt = 80;
this.set_cnt = 80;
this.set_cnt = Math.ceil(40 / _root.fall_speed_list[_root.level_num - 1]);
this.add_dy = 0;
this.stop();
this.onEnterFrame = function () {
if (_root.game_do_flg) {
this.main();
}
};
Symbol 156 MovieClip Frame 15
this.t2.mc_hamon.gotoAndPlay(12);
this.t3.mc_hamon.gotoAndPlay(10);
this.t4.mc_hamon.gotoAndPlay(8);
this.t5.mc_hamon.gotoAndPlay(6);
this.t6.mc_hamon.gotoAndPlay(4);
this.t7.mc_hamon.gotoAndPlay(2);
Symbol 156 MovieClip Frame 45
this.t2.mc_hamon.gotoAndPlay(2);
this.t3.mc_hamon.gotoAndPlay(4);
this.t4.mc_hamon.gotoAndPlay(6);
this.t5.mc_hamon.gotoAndPlay(8);
this.t6.mc_hamon.gotoAndPlay(10);
this.t7.mc_hamon.gotoAndPlay(12);
Symbol 157 MovieClip Frame 1
this.mc_anm.t1.str = "G";
this.mc_anm.t2.str = "A";
this.mc_anm.t3.str = "M";
this.mc_anm.t4.str = "E";
this.mc_anm.t5.str = "O ";
this.mc_anm.t6.str = "V";
this.mc_anm.t7.str = "E";
this.mc_anm.t10.str = "R";
Instance of Symbol 59 MovieClip in Symbol 157 MovieClip Frame 39
//component parameters
onClipEvent (construct) {
str = "BACK TO TITLE";
}
Symbol 157 MovieClip Frame 46
this.btn_enable_flg = true;
this.stop();
Symbol 157 MovieClip Frame 57
_root.mc_if.gotoAndPlay("close");
_root.gotoAndPlay("title");
this.stop();
Symbol 158 MovieClip Frame 15
this.t2.mc_hamon.gotoAndPlay(12);
this.t3.mc_hamon.gotoAndPlay(11);
this.t4.mc_hamon.gotoAndPlay(10);
this.t5.mc_hamon.gotoAndPlay(9);
this.t6.mc_hamon.gotoAndPlay(8);
this.t7.mc_hamon.gotoAndPlay(6);
this.t8.mc_hamon.gotoAndPlay(4);
this.t9.mc_hamon.gotoAndPlay(2);
Symbol 158 MovieClip Frame 45
this.t2.mc_hamon.gotoAndPlay(2);
this.t3.mc_hamon.gotoAndPlay(4);
this.t4.mc_hamon.gotoAndPlay(6);
this.t5.mc_hamon.gotoAndPlay(8);
this.t6.mc_hamon.gotoAndPlay(10);
this.t7.mc_hamon.gotoAndPlay(11);
this.t8.mc_hamon.gotoAndPlay(12);
this.t9.mc_hamon.gotoAndPlay(13);
Symbol 159 MovieClip Frame 1
this.mc_anm.t1.str = "L";
this.mc_anm.t2.str = "E";
this.mc_anm.t3.str = "V";
this.mc_anm.t4.str = "E";
this.mc_anm.t5.str = "L";
this.mc_anm.t6.str = "C";
this.mc_anm.t7.str = "L";
this.mc_anm.t8.str = "E";
this.mc_anm.t9.str = "A";
this.mc_anm.t10.str = "R";
Symbol 159 MovieClip Frame 42
_root.mc_gage.bonus();
this.stop();
Symbol 159 MovieClip Frame 43
if (_root.level_num == _root.last_level_num) {
this.gotoAndPlay("skip");
}
Instance of Symbol 59 MovieClip in Symbol 159 MovieClip Frame 43
//component parameters
onClipEvent (construct) {
str = "PLEASE CLICK TO NEXT";
}
Symbol 159 MovieClip Frame 50
this.btn_enable_flg = true;
this.stop();
Symbol 159 MovieClip Frame 59
_root.mc_if.clearIF();
Symbol 159 MovieClip Frame 69
_root.play();
_root.saveData();
this.stop();
Symbol 165 MovieClip Frame 1
function gameStart() {
this.target_x = 650;
this.target_y = -10;
}
function entry() {
this.stat = "start";
this.target_x = 550;
this.target_y = 420;
}
this.stat = "stay";
this.release_flg = false;
this.stop();
this.onPress = function () {
this.stat = "drag";
this.startDrag();
};
this.onRelease = function () {
this.stat = "start";
if (this.release_flg == false) {
_parent.play();
this.release_flg = true;
}
this.stopDrag();
};
this.onEnterFrame = function () {
if (!(this.stat === "start")) {
} else {
this._x = this._x + ((this.target_x - this._x) / 5);
this._y = this._y + ((this.target_y - this._y) / 5);
}
};
Symbol 166 MovieClip Frame 1
this.mc_anm.t1.str = "F";
this.mc_anm.t2.str = "I";
this.mc_anm.t3.str = "N";
this.mc_anm.t4.str = "I";
this.mc_anm.t5.str = "S";
this.mc_anm.t6.str = "H";
this.mc_anm.t7.str = "E";
this.mc_anm.t10.str = "D";
Symbol 166 MovieClip Frame 43
this.mc_shaji.entry();
this.stop();
Instance of Symbol 59 MovieClip in Symbol 166 MovieClip Frame 43
//component parameters
onClipEvent (construct) {
str = "BACK TO TITLE";
}
Symbol 166 MovieClip Frame 50
this.btn_enable_flg = true;
this.stop();
Symbol 166 MovieClip Frame 69
_root.mc_if.gotoAndPlay("close");
_root.gotoAndPlay("title");
this.stop();