Section 1
//Ball_3 (bkrdas3_fla.Ball_3)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ball_3 extends MovieClip {
public const P_WAIT:uint = 0;
public const RACKET_Y = 440;
public const P_INIT_STAGE:uint = 20;
public const WALL_BOTTOM = 93;
public const BASE_X = 0;
public const BASE_Y = -20;
public const RUN:uint = 2;
public const RACKET_HIT_WIDTH = 80;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const CHAIN_MAX = 10;
public const P_SET_TITLE:uint = 10;
public const P_READY:uint = 21;
public const BLOCK_1 = 1;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const INIT:uint = 1;
public const BALL_MAX_SPEED = 10;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const WALL_TOP = 90;
public const BLOCK_WIDTH = 30;
public const WALL_LIMIT_RIGHT = 400;
public const WALL_LEFT = 91;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const STAGE_TOTAL_NUM = 15;
public const WALL_LIMIT_LEFT = 0;
public const BALL_SLOW_Y = 280;
public const RACKET_WIDTH = 80;
public const P_RUN:uint = 22;
public var py:Number;
public var px:Number;
public var f_cnt:int;
public var loc_list:Array;
public var speed:Number;
public var i:uint;
public var t:MovieClip;
public var vx:Number;
public var vy:Number;
public var add_speed_save:Number;
public var chain_cnt:uint;
public var add_speed:Number;
public var px2:Number;
public var py2:Number;
public var base_speed:Number;
public var _state:uint;
public function Ball_3(){
addFrameScript(0, frame1);
}
function frame1(){
_state = INIT;
f_cnt = 0;
t = (parent as MovieClip);
loc_list = [];
}
public function run(){
speed = (base_speed + add_speed);
if (speed > BALL_MAX_SPEED){
speed = BALL_MAX_SPEED;
};
px = (px + (vx * speed));
py = (py + (vy * speed));
checkHitBlock();
px2 = px;
py2 = py;
loc_list.unshift([px, py]);
if ((((py > BALL_SLOW_Y)) && ((vy > 0)))){
add_speed = (add_speed * 0.5);
if (t.stage_renew_flg){
t.initStage();
};
};
}
public function init(){
chain_cnt = 1;
px = 180;
py = 300;
px2 = px;
py2 = py;
vx = -0.1;
vy = 0.9;
add_speed = 10;
add_speed_save = 10;
base_speed = 0.3;
}
public function main():void{
switch (_state){
case INIT:
init();
_state = RUN;
break;
case RUN:
loc_list = [];
loc_list.unshift([px, py]);
i = 0;
while (i < 40) {
run();
i++;
};
t.drawTraceLine(loc_list);
break;
};
f_cnt++;
x = px;
y = py;
}
public function checkHitBlock(){
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:uint;
_local1 = Math.floor(((px - BASE_X) / BLOCK_WIDTH));
_local2 = Math.floor(((py - BASE_Y) / BLOCK_HEIGHT));
_local3 = t.block_map_list[_local2][_local1];
_local4 = t.block_map_list[(_local2 - 1)][_local1];
_local5 = t.block_map_list[_local2][(_local1 + 1)];
_local6 = t.block_map_list[(_local2 + 1)][_local1];
_local7 = t.block_map_list[_local2][(_local1 - 1)];
_local8 = vx;
_local9 = vy;
_local10 = (vy / vx);
_local11 = (py - (_local10 * px));
_local12 = ((_local1 * BLOCK_WIDTH) + BASE_X);
_local13 = (((_local1 + 1) * BLOCK_WIDTH) + BASE_X);
_local14 = ((_local2 * BLOCK_HEIGHT) + BASE_Y);
_local15 = (((_local2 + 1) * BLOCK_HEIGHT) + BASE_Y);
_local20 = 1;
if (_local9 > 0){
_local21 = ((_local10 * (t.mc_racket.x - (RACKET_WIDTH / 2))) + _local11);
if ((((py2 <= RACKET_Y)) && ((py > RACKET_Y)))){
_local22 = ((RACKET_Y - _local11) / _local10);
if ((((_local22 >= (t.mc_racket.x - (RACKET_WIDTH / 2)))) && ((_local22 <= (t.mc_racket.x + (RACKET_WIDTH / 2)))))){
_local23 = (_local22 - t.mc_racket.x);
_local24 = (270 - (120 * ((_local23 / RACKET_HIT_WIDTH) / 2)));
vx = -(Math.cos(((_local24 * Math.PI) / 180)));
vy = Math.sin(((_local24 * Math.PI) / 180));
py = RACKET_Y;
if (vx == 0){
vx = 0.1;
};
if (vy > -0.5){
vy = -0.5;
};
px = _local22;
py = (RACKET_Y - _local20);
speed = (speed + 0.1);
if (speed > BALL_MAX_SPEED){
speed = BALL_MAX_SPEED;
};
add_speed = add_speed_save;
t.playSE("SE_resive");
return;
};
};
};
if ((((_local8 > 0)) && ((_local9 > 0)))){
_local21 = ((_local10 * _local12) + _local11);
if ((((_local21 >= _local14)) && ((_local21 <= _local15)))){
if (_local7 == 0){
if (_local3 != 0){
_local16 = (_local12 - _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
};
} else {
if (py2 <= _local14){
_local16 = ((_local14 - _local11) / _local10);
_local17 = (_local14 - _local20);
_local18 = vx;
_local19 = -(vy);
_local1--;
};
};
} else {
if (_local4 == 0){
if (_local3 != 0){
_local16 = ((_local14 - _local11) / _local10);
_local17 = (_local14 - _local20);
_local18 = vx;
_local19 = -(vy);
};
} else {
if (py2 <= _local14){
_local16 = (_local12 - _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
_local2--;
};
};
};
};
if ((((_local8 < 0)) && ((_local9 > 0)))){
_local21 = ((_local10 * _local13) + _local11);
if ((((_local21 >= _local14)) && ((_local21 <= _local15)))){
if (_local5 == 0){
if (_local3 != 0){
_local16 = (_local13 + _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
};
} else {
if (py2 <= _local14){
_local16 = ((_local14 - _local11) / _local10);
_local17 = (_local14 - _local20);
_local18 = vx;
_local19 = -(vy);
_local1++;
};
};
} else {
if (_local4 == 0){
if (_local3 != 0){
_local16 = ((_local14 - _local11) / _local10);
_local17 = (_local14 - _local20);
_local18 = vx;
_local19 = -(vy);
};
} else {
if (py2 <= _local14){
_local16 = (_local13 + _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
_local2--;
};
};
};
};
if ((((_local8 > 0)) && ((_local9 < 0)))){
_local21 = ((_local10 * _local12) + _local11);
if ((((_local21 >= _local14)) && ((_local21 <= _local15)))){
if (_local7 == 0){
if (_local3 != 0){
_local16 = (_local12 - _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
};
} else {
if (px2 <= _local12){
_local16 = ((_local15 - _local11) / _local10);
_local17 = (_local15 + _local20);
_local18 = vx;
_local19 = -(vy);
_local1--;
};
};
} else {
if (_local6 == 0){
if (_local3 != 0){
_local16 = ((_local15 - _local11) / _local10);
_local17 = (_local15 + _local20);
_local18 = vx;
_local19 = -(vy);
};
} else {
if (px2 <= _local12){
_local16 = (_local12 - _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
_local2++;
};
};
};
};
if ((((_local8 < 0)) && ((_local9 < 0)))){
_local21 = ((_local10 * _local13) + _local11);
if ((((_local21 >= _local14)) && ((_local21 <= _local15)))){
if (_local5 == 0){
if (_local3 != 0){
_local16 = (_local13 + _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
};
} else {
if (px2 >= _local13){
_local16 = ((_local15 - _local11) / _local10);
_local17 = (_local15 + _local20);
_local18 = vx;
_local19 = -(vy);
_local1++;
};
};
} else {
if (_local6 == 0){
if (_local3 != 0){
_local16 = ((_local15 - _local11) / _local10);
_local17 = (_local15 + _local20);
_local18 = vx;
_local19 = -(vy);
};
} else {
if (px2 >= _local13){
_local16 = (_local13 + _local20);
_local17 = _local21;
_local18 = -(vx);
_local19 = vy;
_local2++;
};
};
};
};
_local3 = t.block_map_list[_local2][_local1];
if (_local3 != 0){
px = _local16;
py = _local17;
vx = _local18;
vy = _local19;
switch (_local3){
case BLOCK_1:
_local25 = (10 * chain_cnt);
chain_cnt++;
if (chain_cnt > CHAIN_MAX){
chain_cnt = CHAIN_MAX;
};
t.block_map_list[_local2][_local1] = 0;
t.block_mc_list[_local2][_local1].entryBreak(_local25);
t.addScore(_local25);
t.playSE("SE_break");
break;
case WALL_TOP:
t.setEffectRefrect(px, py);
t.playSE("SE_refrect");
break;
case WALL_RIGHT:
t.setEffectRefrect(px, py);
t.playSE("SE_refrect");
break;
case WALL_LEFT:
t.setEffectRefrect(px, py);
t.playSE("SE_refrect");
break;
case WALL_BOTTOM:
chain_cnt = 1;
t.setEffectRefrect(px, py);
t.playSE("SE_refrect2");
break;
};
};
}
}
}//package bkrdas3_fla
Section 2
//EffectBreakLine_9 (bkrdas3_fla.EffectBreakLine_9)
package bkrdas3_fla {
import flash.display.*;
public dynamic class EffectBreakLine_9 extends MovieClip {
public var fn;
public function EffectBreakLine_9(){
addFrameScript(0, frame1);
}
function frame1(){
fn = (Math.floor((Math.random() * 10)) + 1);
gotoAndStop(fn);
}
}
}//package bkrdas3_fla
Section 3
//MainTimeline (bkrdas3_fla.MainTimeline)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const P_WAIT:uint = 0;
public const RACKET_Y = 440;
public const P_INIT_STAGE:uint = 20;
public const WALL_BOTTOM = 93;
public const BASE_X = 0;
public const BASE_Y = -20;
public const RACKET_HIT_WIDTH = 80;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const CHAIN_MAX = 10;
public const P_SET_TITLE:uint = 10;
public const P_READY:uint = 21;
public const BLOCK_1 = 1;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const WALL_TOP = 90;
public const BLOCK_WIDTH = 30;
public const WALL_LIMIT_RIGHT = 400;
public const WALL_LEFT = 91;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const STAGE_TOTAL_NUM = 15;
public const WALL_LIMIT_LEFT = 0;
public const RACKET_WIDTH = 80;
public const P_RUN:uint = 22;
public var txt_score:TextField;
public var stage_idx:uint;
public var i:int;
public var mc_racket:MovieClip;
public var score:uint;
public var stage_num:uint;
public var stage_block_num:uint;
public var last_time:uint;
public var block_map_make_list:Array;
public var txt_highScore:TextField;
public var mc_ball:MovieClip;
public var block_map_list:Array;
public var txt_time:TextField;
public var stage_map_data_list:Array;
public var break_block_cnt:uint;
public var _state:uint;
public var loadTxt:TextField;
public var high_score:uint;
public var stage_renew_flg:Boolean;
public var block_mc_list:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 30, frame31, 49, frame50, 51, frame52, 53, frame54, 55, frame56, 57, frame58, 59, frame60, 61, frame62, 63, frame64, 65, frame66, 67, frame68, 69, frame70, 71, frame72, 73, frame74, 75, frame76, 77, frame78, 84, frame85);
}
public function initMovie():void{
high_score = 10000;
}
public function drawTraceLine(_arg1:Array):void{
var _local2:Sprite;
var _local3:Number;
var _local4:Number;
var _local5:*;
var _local6:CanvasSprite;
_local2 = new Sprite();
_local2.graphics.clear();
_local3 = 0xFF0000;
_local4 = 2;
_local2.graphics.moveTo(_arg1[0][0], _arg1[0][1]);
_local5 = 1;
while (_local5 < _arg1.length) {
_local2.graphics.lineStyle(_local4, _local3);
_local2.graphics.lineTo(_arg1[_local5][0], _arg1[_local5][1]);
_local5++;
};
_local6 = new CanvasSprite(_local2, this);
}
public function initStageMapDataList():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local1 = 0;
while (_local1 < STAGE_TOTAL_NUM) {
stage_map_data_list.push([]);
_local2 = 0;
while (_local2 < BLOCK_MAP_HEIGHT) {
stage_map_data_list[_local1].push([]);
_local3 = 0;
while (_local3 < BLOCK_MAP_WIDTH) {
stage_map_data_list[_local1][_local2].push(0);
_local3++;
};
_local2++;
};
_local1++;
};
}
public function onLoading(_arg1:Event):void{
loadTxt.text = ((framesLoaded + "/") + totalFrames);
trace("loadingOK");
if (framesLoaded == totalFrames){
removeEventListener(Event.ENTER_FRAME, onLoading);
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
play();
};
}
function frame2(){
block_map_list = [];
block_mc_list = [];
block_map_make_list = [];
stage_map_data_list = [];
initMovie();
initStageMapDataList();
gotoAndPlay("makeStageData");
}
function frame3(){
_state = P_SET_TITLE;
addEventListener(Event.ENTER_FRAME, main);
stop();
}
public function clearBlockMovieClip(_arg1):void{
var _local2:*;
removeChild(_arg1);
_arg1 = null;
break_block_cnt++;
if (break_block_cnt == stage_block_num){
stage_num++;
if (stage_num > STAGE_TOTAL_NUM){
stage_num = 1;
};
stage_renew_flg = true;
_local2 = new Bonus();
_local2.x = 0;
_local2.y = 300;
addChild(_local2);
addScore(5000);
};
}
public function addScore(_arg1:uint):void{
score = (score + _arg1);
txt_score.text = String(score);
if (score >= high_score){
high_score = score;
txt_highScore.text = String(score);
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, onLoading);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
stop();
}
public function progressHandler(_arg1:ProgressEvent):void{
if (_arg1.bytesLoaded >= _arg1.bytesTotal){
};
}
public function playSE(_arg1:String):void{
var _local2:SoundChannel;
var _local3:Sound;
switch (_arg1){
case "SE_refrect":
_local3 = new SE_refrect();
break;
case "SE_refrect2":
_local3 = new SE_refrect2();
break;
case "SE_resive":
_local3 = new SE_resive();
break;
case "SE_break":
_local3 = new SE_break();
break;
case "SE_in":
_local3 = new SE_in();
break;
};
_local2 = _local3.play(0, 1);
}
function frame31(){
stop();
}
public function traceBlockMapList():void{
var _local1:String;
var _local2:uint;
var _local3:uint;
var _local4:uint;
_local1 = "";
_local2 = 0;
while (_local2 < STAGE_TOTAL_NUM) {
_local1 = (_local1 + (("--------STAGE " + (_local2 + 1)) + "--------\n"));
_local3 = 0;
while (_local3 < BLOCK_MAP_HEIGHT) {
_local4 = 0;
while (_local4 < BLOCK_MAP_WIDTH) {
_local1 = (_local1 + (stage_map_data_list[_local2][_local3][_local4] + ","));
_local4++;
};
_local1 = (_local1 + "\n");
_local3++;
};
_local2++;
};
trace(_local1);
}
public function startRun():void{
_state = P_RUN;
}
function frame52(){
stage_idx = 1;
}
function frame56(){
stage_idx = 3;
}
function frame50(){
stage_idx = 0;
}
function frame58(){
stage_idx = 4;
}
public function clearMovieClip(_arg1):void{
removeChild(_arg1);
_arg1 = null;
}
function frame62(){
stage_idx = 6;
}
public function setEffectRefrect(_arg1:Number, _arg2:Number):void{
var _local3:*;
_local3 = new EffectRefrect();
_local3.x = _arg1;
_local3.y = _arg2;
addChild(_local3);
}
function frame66(){
stage_idx = 8;
}
function frame68(){
stage_idx = 9;
}
function frame60(){
stage_idx = 5;
}
function frame54(){
stage_idx = 2;
}
public function drawTraceLineA(_arg1:Array):void{
var _local2:Graphics;
var _local3:Number;
var _local4:Number;
var _local5:*;
_local2 = graphics;
_local2.clear();
_local3 = 0xFF00;
_local4 = 8;
_local2.moveTo(_arg1[0][0], _arg1[0][1]);
_local5 = 1;
while (_local5 < _arg1.length) {
_local2.lineStyle(_local4, _local3);
_local2.lineTo(_arg1[_local5][0], _arg1[_local5][1]);
_local3 = (_local3 - 0x0400);
_local4 = (_local4 - 0.1);
_local5++;
};
}
function frame70(){
stage_idx = 10;
}
function frame64(){
stage_idx = 7;
}
public function clearAllMovieClip():void{
var _local1:*;
while (this.numChildren > 0) {
_local1 = this.getChildAt(0);
removeChild(_local1);
_local1 = null;
};
}
function frame78(){
stage_idx = 14;
}
function frame72(){
stage_idx = 11;
}
function frame74(){
stage_idx = 12;
}
function frame76(){
stage_idx = 13;
}
public function setTitle():void{
_state = P_SET_TITLE;
}
public function setResult():void{
_state = P_RESULT;
clearAllMovieClip();
gotoAndPlay("result");
}
public function initGame():void{
stage_num = 1;
score = 0;
last_time = 5400;
}
function frame85(){
gotoAndPlay(3);
}
public function gameStart():void{
initGame();
_state = P_INIT_STAGE;
}
public function main(_arg1:Event):void{
var _local2:*;
switch (_state){
case P_SET_TITLE:
gotoAndStop("title");
_state = P_TITLE;
break;
case P_TITLE:
break;
case P_INIT_STAGE:
initStage();
_state = P_READY;
gotoAndStop("run");
break;
case P_READY:
txt_highScore.text = String(high_score);
_state = P_WAIT;
_local2 = new Ready();
_local2.x = 0;
_local2.y = 180;
addChild(_local2);
break;
case P_RUN:
mc_racket.main();
mc_ball.main();
last_time--;
txt_time.text = String(last_time);
if (last_time == 0){
_state = P_TIMEUP;
_local2 = new TimeUp();
_local2.x = 0;
_local2.y = 180;
addChild(_local2);
};
break;
case P_TIMEUP:
break;
case P_RESULT:
txt_score.text = String(score);
_state = P_WAIT;
break;
};
}
public function initStage():void{
var _local1:uint;
var _local2:uint;
var _local3:*;
playSE("SE_in");
initBlockMapList();
stage_block_num = 0;
break_block_cnt = 0;
stage_renew_flg = false;
_local1 = 0;
while (_local1 < BLOCK_MAP_HEIGHT) {
_local2 = 0;
while (_local2 < BLOCK_MAP_WIDTH) {
block_map_list[_local1][_local2] = stage_map_data_list[(stage_num - 1)][_local1][_local2];
_local2++;
};
_local1++;
};
_local1 = 0;
while (_local1 < BLOCK_MAP_HEIGHT) {
_local2 = 0;
while (_local2 < BLOCK_MAP_WIDTH) {
switch (block_map_list[_local1][_local2]){
case BLOCK_1:
_local3 = new Block_1();
_local3.x = ((BASE_X + (_local2 * BLOCK_WIDTH)) + (BLOCK_WIDTH / 2));
_local3.y = ((BASE_Y + (_local1 * BLOCK_HEIGHT)) + (BLOCK_HEIGHT / 2));
addChild(_local3);
block_mc_list[_local1][_local2] = _local3;
stage_block_num++;
break;
};
_local2++;
};
_local1++;
};
}
public function initBlockMapList():void{
var _local1:uint;
var _local2:uint;
_local1 = 0;
while (_local1 < BLOCK_MAP_HEIGHT) {
block_map_list.push([]);
block_mc_list.push([]);
_local2 = 0;
while (_local2 < BLOCK_MAP_WIDTH) {
block_map_list[_local1].push(0);
block_mc_list[_local1].push(0);
_local2++;
};
_local1++;
};
}
}
}//package bkrdas3_fla
Section 4
//Racket_2 (bkrdas3_fla.Racket_2)
package bkrdas3_fla {
import flash.display.*;
public dynamic class Racket_2 extends MovieClip {
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const P_RUN:uint = 22;
public const P_WAIT:uint = 0;
public const P_INIT_STAGE:uint = 20;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const BLOCK_WIDTH = 30;
public const RACKET_Y = 440;
public const BASE_X = 0;
public const BASE_Y = -20;
public const WALL_LIMIT_RIGHT = 400;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const WALL_LEFT = 91;
public const RACKET_HIT_WIDTH = 80;
public const CHAIN_MAX = 10;
public const STAGE_TOTAL_NUM = 15;
public const WALL_TOP = 90;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const P_SET_TITLE:uint = 10;
public const WALL_LIMIT_LEFT = 0;
public const P_READY:uint = 21;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const BLOCK_1 = 1;
public const WALL_BOTTOM = 93;
public const RACKET_WIDTH = 80;
public function Racket_2(){
addFrameScript(0, frame1);
}
public function main():void{
x = root.mouseX;
}
function frame1(){
}
}
}//package bkrdas3_fla
Section 5
//RetrunButton_5 (bkrdas3_fla.RetrunButton_5)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class RetrunButton_5 extends MovieClip {
public function RetrunButton_5(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
addEventListener(MouseEvent.CLICK, onPressMouse);
buttonMode = true;
useHandCursor = true;
}
public function onPressMouse(_arg1:MouseEvent):void{
MovieClip(root).setTitle();
}
function frame20(){
gotoAndPlay(2);
}
}
}//package bkrdas3_fla
Section 6
//Setter_BLOCK1_14 (bkrdas3_fla.Setter_BLOCK1_14)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Setter_BLOCK1_14 extends MovieClip {
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const P_RUN:uint = 22;
public const P_WAIT:uint = 0;
public const P_INIT_STAGE:uint = 20;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const BLOCK_WIDTH = 30;
public const RACKET_Y = 440;
public const BASE_X = 0;
public const BASE_Y = -20;
public const WALL_LIMIT_RIGHT = 400;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const WALL_LEFT = 91;
public const RACKET_HIT_WIDTH = 80;
public const CHAIN_MAX = 10;
public const STAGE_TOTAL_NUM = 15;
public const WALL_TOP = 90;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const P_SET_TITLE:uint = 10;
public const WALL_LIMIT_LEFT = 0;
public const P_READY:uint = 21;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const BLOCK_1 = 1;
public const WALL_BOTTOM = 93;
public const RACKET_WIDTH = 80;
public var map_y:uint;
public var map_x:uint;
public var t:MovieClip;
public var idx:uint;
public function Setter_BLOCK1_14(){
addFrameScript(0, frame1);
}
function frame1(){
map_x = Math.floor(((x - BASE_X) / BLOCK_WIDTH));
map_y = Math.floor(((y - BASE_Y) / BLOCK_HEIGHT));
t = (parent as MovieClip);
idx = t.stage_idx;
t.stage_map_data_list[idx][map_y][map_x] = BLOCK_1;
stop();
}
}
}//package bkrdas3_fla
Section 7
//Setter_WALL_BOTTOM_13 (bkrdas3_fla.Setter_WALL_BOTTOM_13)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Setter_WALL_BOTTOM_13 extends MovieClip {
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const P_RUN:uint = 22;
public const P_WAIT:uint = 0;
public const P_INIT_STAGE:uint = 20;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const BLOCK_WIDTH = 30;
public const RACKET_Y = 440;
public const BASE_X = 0;
public const BASE_Y = -20;
public const WALL_LIMIT_RIGHT = 400;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const WALL_LEFT = 91;
public const RACKET_HIT_WIDTH = 80;
public const CHAIN_MAX = 10;
public const STAGE_TOTAL_NUM = 15;
public const WALL_TOP = 90;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const P_SET_TITLE:uint = 10;
public const WALL_LIMIT_LEFT = 0;
public const P_READY:uint = 21;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const BLOCK_1 = 1;
public const WALL_BOTTOM = 93;
public const RACKET_WIDTH = 80;
public var map_y:uint;
public var map_x:uint;
public var t:MovieClip;
public var idx:uint;
public function Setter_WALL_BOTTOM_13(){
addFrameScript(0, frame1);
}
function frame1(){
map_x = Math.floor(((x - BASE_X) / BLOCK_WIDTH));
map_y = Math.floor(((y - BASE_Y) / BLOCK_HEIGHT));
t = (parent as MovieClip);
idx = t.stage_idx;
t.stage_map_data_list[idx][map_y][map_x] = WALL_BOTTOM;
stop();
}
}
}//package bkrdas3_fla
Section 8
//Setter_WALL_LEFT_11 (bkrdas3_fla.Setter_WALL_LEFT_11)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Setter_WALL_LEFT_11 extends MovieClip {
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const P_RUN:uint = 22;
public const P_WAIT:uint = 0;
public const P_INIT_STAGE:uint = 20;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const BLOCK_WIDTH = 30;
public const RACKET_Y = 440;
public const BASE_X = 0;
public const BASE_Y = -20;
public const WALL_LIMIT_RIGHT = 400;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const WALL_LEFT = 91;
public const RACKET_HIT_WIDTH = 80;
public const CHAIN_MAX = 10;
public const STAGE_TOTAL_NUM = 15;
public const WALL_TOP = 90;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const P_SET_TITLE:uint = 10;
public const WALL_LIMIT_LEFT = 0;
public const P_READY:uint = 21;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const BLOCK_1 = 1;
public const WALL_BOTTOM = 93;
public const RACKET_WIDTH = 80;
public var map_y:uint;
public var map_x:uint;
public var t:MovieClip;
public var idx:uint;
public function Setter_WALL_LEFT_11(){
addFrameScript(0, frame1);
}
function frame1(){
map_x = Math.floor(((x - BASE_X) / BLOCK_WIDTH));
map_y = Math.floor(((y - BASE_Y) / BLOCK_HEIGHT));
t = (parent as MovieClip);
idx = t.stage_idx;
t.stage_map_data_list[idx][map_y][map_x] = WALL_LEFT;
stop();
}
}
}//package bkrdas3_fla
Section 9
//Setter_WALL_RIGHT_12 (bkrdas3_fla.Setter_WALL_RIGHT_12)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Setter_WALL_RIGHT_12 extends MovieClip {
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const P_RUN:uint = 22;
public const P_WAIT:uint = 0;
public const P_INIT_STAGE:uint = 20;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const BLOCK_WIDTH = 30;
public const RACKET_Y = 440;
public const BASE_X = 0;
public const BASE_Y = -20;
public const WALL_LIMIT_RIGHT = 400;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const WALL_LEFT = 91;
public const RACKET_HIT_WIDTH = 80;
public const CHAIN_MAX = 10;
public const STAGE_TOTAL_NUM = 15;
public const WALL_TOP = 90;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const P_SET_TITLE:uint = 10;
public const WALL_LIMIT_LEFT = 0;
public const P_READY:uint = 21;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const BLOCK_1 = 1;
public const WALL_BOTTOM = 93;
public const RACKET_WIDTH = 80;
public var map_y:uint;
public var map_x:uint;
public var t:MovieClip;
public var idx:uint;
public function Setter_WALL_RIGHT_12(){
addFrameScript(0, frame1);
}
function frame1(){
map_x = Math.floor(((x - BASE_X) / BLOCK_WIDTH));
map_y = Math.floor(((y - BASE_Y) / BLOCK_HEIGHT));
t = (parent as MovieClip);
idx = t.stage_idx;
t.stage_map_data_list[idx][map_y][map_x] = WALL_RIGHT;
stop();
}
}
}//package bkrdas3_fla
Section 10
//Setter_WALL_TOP_10 (bkrdas3_fla.Setter_WALL_TOP_10)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Setter_WALL_TOP_10 extends MovieClip {
public const P_RESULT:uint = 40;
public const P_TIMEUP:uint = 30;
public const P_RUN:uint = 22;
public const P_WAIT:uint = 0;
public const P_INIT_STAGE:uint = 20;
public const BLOCK_HEIGHT = 20;
public const WALL_RIGHT = 92;
public const BLOCK_WIDTH = 30;
public const RACKET_Y = 440;
public const BASE_X = 0;
public const BASE_Y = -20;
public const WALL_LIMIT_RIGHT = 400;
public const P_TITLE:uint = 11;
public const BLOCK_MAP_WIDTH:uint = 12;
public const WALL_LEFT = 91;
public const RACKET_HIT_WIDTH = 80;
public const CHAIN_MAX = 10;
public const STAGE_TOTAL_NUM = 15;
public const WALL_TOP = 90;
public const BLOCK_MAP_HEIGHT:uint = 26;
public const P_SET_TITLE:uint = 10;
public const WALL_LIMIT_LEFT = 0;
public const P_READY:uint = 21;
public const BLOCK_2 = 2;
public const BLOCK_3 = 3;
public const BLOCK_1 = 1;
public const WALL_BOTTOM = 93;
public const RACKET_WIDTH = 80;
public var map_y:uint;
public var map_x:uint;
public var t:MovieClip;
public var idx:uint;
public function Setter_WALL_TOP_10(){
addFrameScript(0, frame1);
}
function frame1(){
map_x = Math.floor(((x - BASE_X) / BLOCK_WIDTH));
map_y = Math.floor(((y - BASE_Y) / BLOCK_HEIGHT));
t = (parent as MovieClip);
idx = t.stage_idx;
t.stage_map_data_list[idx][map_y][map_x] = WALL_TOP;
stop();
}
}
}//package bkrdas3_fla
Section 11
//StartButton_1 (bkrdas3_fla.StartButton_1)
package bkrdas3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class StartButton_1 extends MovieClip {
public function StartButton_1(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
addEventListener(MouseEvent.CLICK, onPressMouse);
buttonMode = true;
useHandCursor = true;
}
public function onPressMouse(_arg1:MouseEvent):void{
MovieClip(root).gameStart();
}
function frame20(){
gotoAndPlay(2);
}
}
}//package bkrdas3_fla
Section 12
//Block_1 (Block_1)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Block_1 extends MovieClip {
public var my_num:uint;
public var mc_score:TextField;
public var fn;
public function Block_1(){
addFrameScript(0, frame1, 18, frame19, 19, frame20, 37, frame38);
}
function frame1(){
fn = (Math.floor((Math.random() * 10)) + 1);
gotoAndPlay(fn);
}
function frame19(){
stop();
}
function frame20(){
mc_score.text = String(my_num);
}
function frame38(){
MovieClip(parent).clearBlockMovieClip(this);
stop();
}
public function entryBreak(_arg1:uint):void{
my_num = _arg1;
gotoAndPlay("break");
}
}
}//package
Section 13
//Bonus (Bonus)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Bonus extends MovieClip {
public function Bonus(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
addEventListener(Event.ENTER_FRAME, run);
}
public function run(_arg1:Event){
visible = !(visible);
}
function frame45(){
removeEventListener(Event.ENTER_FRAME, run);
MovieClip(parent).clearMovieClip(this);
stop();
}
}
}//package
Section 14
//CanvasSprite (CanvasSprite)
package {
import flash.display.*;
import flash.events.*;
public class CanvasSprite {
var my_obj:Object;
var my_sprite:Sprite;
var my_container:DisplayObjectContainer;
public function CanvasSprite(_arg1:Sprite, _arg2:DisplayObjectContainer){
my_obj = this;
super();
my_sprite = _arg1;
my_container = _arg2;
my_sprite.addEventListener(Event.ENTER_FRAME, run);
my_container.addChild(my_sprite);
}
public function run(_arg1:Event):void{
my_sprite.alpha = (my_sprite.alpha - 0.1);
if (my_sprite.alpha <= 0){
my_sprite.graphics.clear();
my_sprite.removeEventListener(Event.ENTER_FRAME, run);
my_container.removeChild(my_sprite);
my_sprite = null;
my_obj = null;
};
}
}
}//package
Section 15
//EffectRefrect (EffectRefrect)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EffectRefrect extends MovieClip {
public function EffectRefrect(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).clearMovieClip(this);
stop();
}
}
}//package
Section 16
//Ready (Ready)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ready extends MovieClip {
public function Ready(){
addFrameScript(59, frame60, 89, frame90);
}
function frame90(){
MovieClip(parent).clearMovieClip(this);
stop();
}
function frame60(){
MovieClip(parent).startRun();
}
}
}//package
Section 17
//SE_break (SE_break)
package {
import flash.media.*;
public dynamic class SE_break extends Sound {
}
}//package
Section 18
//SE_in (SE_in)
package {
import flash.media.*;
public dynamic class SE_in extends Sound {
}
}//package
Section 19
//SE_refrect (SE_refrect)
package {
import flash.media.*;
public dynamic class SE_refrect extends Sound {
}
}//package
Section 20
//SE_refrect2 (SE_refrect2)
package {
import flash.media.*;
public dynamic class SE_refrect2 extends Sound {
}
}//package
Section 21
//SE_resive (SE_resive)
package {
import flash.media.*;
public dynamic class SE_resive extends Sound {
}
}//package
Section 22
//TimeUp (TimeUp)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class TimeUp extends MovieClip {
public function TimeUp(){
addFrameScript(89, frame90);
}
function frame90(){
MovieClip(parent).setResult();
stop();
}
}
}//package