Frame 1
stop();
function mouseSetUp() {
if (_root.mouseSetUpFlag) {
return(undefined);
}
_root.mouseSetUpFlag = true;
_root.mouseWidth = (_root.mouseWidth_Default = 40);
_root.mouseHeight = (_root.mouseHeight_Default = 35);
var _local15 = new Object();
_local15.onMouseDown = function () {
if (_root.pauseTimer > 0) {
return(undefined);
}
if (!_root.mouseMoveActive) {
return(undefined);
}
if (_root.GameOverFlag) {
return(undefined);
}
if ((new Date().getTime() - _root.lastClickTime) < 5) {
_root.GameOverFlag = true;
Mouse.show();
var _local16 = _root.attachMovie("MsgBoxWindow", "MsgBoxWindow", _root.getNextHighestDepth());
_local16.titleStr = "Warning";
_local16.msgStr = "Double-clicking is prohibited. Please challenge again \nafter changing the setting of the mouse. ";
_root.setRGB2(50, -50, -50, _root.MsgBoxWindow.progress_bar);
var _local15 = _root.MsgBoxWindow.attachMovie("defualtButton", "defualtButton", _root.MsgBoxWindow.getNextHighestDepth());
_local15._y = 50;
_local15.label = "Close";
_local15.bt.onRelease = function () {
_root.deleteAllGameObject();
_root.MsgBoxWindow.removeMovieClip();
_root.gotoAndStop("Start");
};
return(undefined);
}
_root.lastClickTime = new Date().getTime();
_root.Flyswatter.gotoAndPlay("Shot");
var _local2 = new Array();
var _local3 = 0;
while (_local3 < _root.flyList.length) {
if (_root.flyList[_local3].SmashFlag) {
} else if (_root.flyList[_local3].Barrier) {
} else if (_root.flyList[_local3].BounceCount != _root.flyList[_local3].BounceCountMax) {
} else {
var _local8 = _root.flyList[_local3].posX - (_root.flyList[_local3].Width / 2);
var _local9 = (_root.flyList[_local3].posY + _root.flyList[_local3].posZ) - (_root.flyList[_local3].Height / 2);
var _local12 = _local8 + _root.flyList[_local3].Width;
var _local13 = _local9 + _root.flyList[_local3].Height;
var _local5 = _xmouse - (_root.mouseWidth / 2);
var _local6 = _ymouse - (_root.mouseHeight / 2);
var _local10 = _local5 + _root.mouseWidth;
var _local11 = _local6 + _root.mouseHeight;
if (_local12 < _local5) {
} else if (_local10 < _local8) {
} else if (_local13 < _local6) {
} else if (_local11 < _local9) {
} else {
_local2.push(_root.flyList[_local3]);
}
}
_local3++;
}
if (_local2.length != 0) {
var _local14 = false;
if (_ymouse < _root.SmashPoint_posY) {
var _local4 = 0;
while (_local4 < _local2.length) {
if ((!_local2[_local4].SmashFlag) && (_local2[_local4].dedFlag)) {
_local14 = true;
break;
}
_local4++;
}
}
if (!_local14) {
_root.SoundObj.Hit.start();
}
} else {
_root.SoundObj.Attack.start();
}
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3].hit();
var _local7 = _root.attachMovie("hitEffect", "hitEffect_" + new Date().getTime(), _root.getNextHighestDepth());
_local7._x = _local2[_local3].myMc._x;
_local7._y = _local2[_local3].myMc._y;
_local3++;
}
};
_local15.onMouseUp = function () {
};
Mouse.addListener(_local15);
}
function resetGame() {
trace("resetGame");
Mouse.hide();
_root.GameOverFlag = false;
_root.PlayerDedFlag = false;
_root.FlyMaxCount = 3;
_root.FlyIDCount = 0;
_root.killFlyCount = 0;
_root.FlyCountDisplay = _root.FlyCount - _root.killFlyCount;
_root.StageCount++;
_root.StageComboMax = 0;
_root.mouseWidth = _root.mouseWidth_Default;
_root.mouseHeight = _root.mouseHeight_Default;
_root.Flyswatter._xscale = 100;
_root.Flyswatter._yscale = 100;
_root.Flyswatter.gotoAndStop(1);
_root.itemBigTimerAy = new Array();
var _local2 = 0;
while (_local2 < _root.flyList.length) {
_root.flyList[_local2].myMc.removeMovieClip();
_root.flyList[_local2].myShade.removeMovieClip();
_local2++;
}
_root.flyList = new Array();
_root.removeAllOjyamanBoo();
while (_root.MissileList.length) {
_root.MissileList[0].removeFly();
}
_root.showStartStageMc();
}
function main() {
_root.mouseSetUp();
_root.lastClickTime = new Date().getTime();
_root.mouseWidth = _root.mouseWidth_Default;
_root.mouseHeight = _root.mouseHeight_Default;
_root.StageCount = 1;
_root.posYZero = Stage.height - 100;
_root.posYTop = 50;
_root.SmashPoint_posY = 200;
_root.FlyMaxCount = 3;
_root.FlyIDCount = 0;
_root.pauseTimer = 0;
_root.Score = 0;
_root.ScoreDisplay = "0";
_root.GameOverFlag = false;
_root.StartGameFlag = false;
_root.FlyCount = 30;
_root.killFlyCount = 0;
_root.GameTimer = 1000;
_root.GameTimeDisplay = _root.GameTimer - 1;
_root.PlayerCount = 3;
_root.PlayerDedFlag = false;
_root.mouseMoveActive = true;
_root.GameStartTimer = new Date().getTime();
_root.flyList = new Array();
_root.MissileList = new Array();
_root.ItemsList = [0, 0, 0];
_root.itemBigTimerAy = new Array();
_root.createFlySwich = true;
_root.BonusStageFlag = false;
_root.StageComboMax = 0;
_root.GameComboMax = 0;
_root.dedTimer = 0;
_root.dedTimerMax = 100;
_root.showStartStageMc();
_root.drawPlayerIcon();
_root.drawItemIcon();
_root.FlyCountDisplay = _root.FlyCount - _root.killFlyCount;
Mouse.hide();
_root.onEnterFrame = mainLoop;
}
function mainLoop() {
if (_root.GameOverFlag) {
return(undefined);
}
if (_root.pauseTimer > 0) {
_root.pauseTimer--;
if (_root.pauseTimer == 0) {
_root.playGame();
}
return(undefined);
}
_root.timerProc();
var _local2 = 0;
while (_local2 < _root.itemBigTimerAy.length) {
_root.itemBigTimerAy[_local2]--;
if (_root.itemBigTimerAy[_local2] == 0) {
_root.removeItem_Big();
break;
}
_local2++;
}
if (_root.PlayerDedFlag) {
if ((_root.dedTimer < _root.dedTimerMax) and _root.mouseMoveActive) {
_root.dedTimer++;
if (_root.Flyswatter._visible) {
_root.Flyswatter._visible = false;
} else {
_root.Flyswatter._visible = true;
}
if (_root.dedTimer == _root.dedTimerMax) {
_root.dedTimer = 0;
_root.Flyswatter._visible = true;
_root.PlayerDedFlag = false;
}
}
}
if (_root.mouseMoveActive) {
_root.Flyswatter._x = _xmouse;
_root.Flyswatter._y = _ymouse;
if (_root.Flyswatter._x > (Stage.width - (_root.mouseWidth / 2))) {
_root.Flyswatter._x = Stage.width - (_root.mouseWidth / 2);
} else if (_root.Flyswatter._x < (_root.mouseWidth / 2)) {
_root.Flyswatter._x = _root.mouseWidth / 2;
}
if (_root.Flyswatter._y > (Stage.height - (_root.mouseHeight / 2))) {
_root.Flyswatter._y = Stage.height - (_root.mouseHeight / 2);
} else if (_root.Flyswatter._y < (_root.mouseHeight / 2)) {
_root.Flyswatter._y = _root.mouseHeight / 2;
}
}
_local2 = 0;
while (_local2 < flyList.length) {
_root.flyList[_local2].refresh();
_local2++;
}
_local2 = 0;
while (_local2 < _root.MissileList.length) {
_root.MissileList[_local2].refresh();
_local2++;
}
if ((_root.MissileList.length > 0) && (!_root.Shot_loopFlag)) {
_root.Shot_loopFlag = true;
_root.SoundObj.Shot_loop.start(0, 9999);
} else if ((_root.MissileList.length == 0) && (_root.Shot_loopFlag)) {
_root.Shot_loopFlag = false;
_root.SoundObj.Shot_loop.stop("shot_loop.wav");
}
}
function timerProc() {
if (_root.GameTimer < 11) {
_root.timerPic._x = 132.5 + (-5 + (Math.random() * 10));
_root.timerPic._y = 24.4 + (-5 + (Math.random() * 10));
_root.timerPic._xscale = 100 + (-40 + (Math.random() * 80));
_root.timerPic._yscale = 100 + (-40 + (Math.random() * 80));
_root.setRGB2(-255 + (Math.random() * 510), -255 + (Math.random() * 510), -255 + (Math.random() * 510), _root.timerPic);
} else if (_root.GameTimer < 101) {
_root.timerPic._x = 132.5 + (-2 + (Math.random() * 4));
_root.timerPic._y = 24.4 + (-2 + (Math.random() * 4));
}
if (!_root.StartGameFlag) {
return(undefined);
}
if (new Date().getTime() > (_root.GameStartTimer + 1000)) {
_root.GameTimer--;
_root.GameStartTimer = new Date().getTime();
var _local2 = new TextFormat();
if (_root.GameTimer < 11) {
_local2.color = 16711680 /* 0xFF0000 */;
_local2.size = 40;
_root.GameTimeField._x = 150;
_root.GameTimeField._y = -6;
} else if (_root.GameTimer < 101) {
_local2.color = 16711680 /* 0xFF0000 */;
} else {
_local2.color = 0;
}
_root.GameTimeField.text = _root.GameTimer;
_root.GameTimeField.setTextFormat(_local2);
}
_root.GameTimeDisplay = _root.GameTimer;
if (_root.GameTimeDisplay == 0) {
_root.GameOver();
}
}
function createFly() {
if (_root.BonusStageFlag) {
_root.flyList.push(new as.Bonus_fly(_root.FlyIDCount));
_root.FlyIDCount++;
return(undefined);
}
if ((Math.floor(_root.StageCount / 5) == (_root.StageCount / 5)) and ((_root.FlyCount - 1) == _root.FlyIDCount)) {
_root.flyList.push(new as.boss_fly(_root.FlyIDCount));
_root.FlyIDCount++;
_root.MusicObj.musicStart("Boss.mp3", 0.5);
return(undefined);
}
if ((Math.floor(_root.StageCount / 6) == (_root.StageCount / 6)) and (Math.floor(_root.FlyCount / 2) == _root.FlyIDCount)) {
_root.flyList.push(new as.Cockroach(_root.FlyIDCount));
_root.FlyIDCount++;
return(undefined);
}
var _local2;
if (_root.createFlySwich) {
_root.createFlySwich = false;
} else {
_root.createFlySwich = true;
}
var _local3 = 4;
var _local4 = Math.floor((_root.FlyIDCount / _root.FlyCount) * _local3);
switch (_local4) {
case 0 :
_local2 = new as.default_fly(_root.FlyIDCount);
break;
case 1 :
_local2 = new as.Speed_fly(_root.FlyIDCount);
break;
case 2 :
if (_root.createFlySwich) {
_local2 = new as.default_fly(_root.FlyIDCount);
} else {
_local2 = new as.Shot_fly(_root.FlyIDCount);
}
break;
case 3 :
_root.FlyMaxCount = 4;
if (_root.createFlySwich) {
_local2 = new as.Speed_fly(_root.FlyIDCount);
} else {
_local2 = new as.Shot_fly(_root.FlyIDCount);
}
}
_local2.Score = _local2.Score + (_root.StageCount - 1);
_local2.Speed = _local2.Speed + ((_root.StageCount - 1) / 10);
_root.flyList.push(_local2);
_root.FlyIDCount++;
var _local5 = Math.random();
if (_local5 < 0.5) {
_local2.posX = 20;
_local2.rad = 0;
} else {
_local2.posX = Stage.width - 20;
_local2.rad = 3.14;
}
_local2.posY = _root.posYTop + (Math.random() * (_root.posYZero - _root.posYTop));
_local2.myMc._x = _local2.posX;
_local2.myMc._y = _local2.posY + _local2.posZ;
}
function showStartStageMc() {
var _local4 = _root.attachMovie("showStartStageMc", "showStartStageMc", _root.getNextHighestDepth());
_local4.timer = new Date().getTime();
_local4.timerMax = new Date().getTime() + 3000;
_local4.StageCount = _root.StageCount;
_local4._x = Stage.width / 2;
_local4._y = Stage.height / 2;
_local4._xscale = 0;
_local4._yscale = _local4._yscale * 2;
_local4.musicStart = false;
_local4.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) * 0.2);
this._yscale = this._yscale + ((100 - this._yscale) * 0.1);
this.timer = new Date().getTime();
if (this.timer > this.timerMax) {
var _local3 = 0;
while (_local3 < _root.FlyMaxCount) {
_root.createFly();
_local3++;
}
_root.StartGameFlag = true;
_quality = "low";
this.removeMovieClip();
}
var _local4 = Math.floor((this.timer - this.timerMax) / 1000) * -1;
if (_local4 == 1) {
this.showTimer = "Go!";
if (!this.musicStart) {
this.musicStart = true;
_root.MusicObj.musicStart("Stage2.mp3", 0.5);
}
}
};
}
function removeFly(inFly) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < _root.flyList.length) {
if (_root.flyList[_local2].ID != inFly.ID) {
_local3.push(_root.flyList[_local2]);
}
_local2++;
}
_root.flyList = _local3;
_root.killFlyCount++;
_root.FlyCountDisplay = _root.FlyCount - _root.killFlyCount;
if (_root.FlyCount == _root.killFlyCount) {
_root.StageClear();
return(undefined);
}
if (_root.FlyCount == _root.FlyIDCount) {
return(undefined);
}
while (_root.FlyMaxCount > _root.flyList.length) {
createFly();
}
}
function createMissile() {
}
function removeMissile(inMissile) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < _root.MissileList.length) {
if (_root.MissileList[_local2].ID != inMissile.ID) {
_local3.push(_root.MissileList[_local2]);
}
_local2++;
}
_root.MissileList = _local3;
}
function setRGB2(r, g, b, targetMc) {
var _local1 = new Color(targetMc);
var _local2 = {ra:100, rb:r, ga:100, gb:g, ba:100, bb:b, aa:100, ab:0};
_local1.setTransform(_local2);
}
function pauseGame(inTime) {
_root.pauseTimer = inTime;
var _local2 = 0;
while (_local2 < _root.flyList.length) {
_root.flyList[_local2].myMc.stop();
_local2++;
}
}
function playGame() {
var _local2 = 0;
while (_local2 < _root.flyList.length) {
_root.flyList[_local2].myMc.play();
_local2++;
}
}
function SmashEvent() {
_root.Flyswatter.gotoAndPlay("Smash");
_root.pauseGame(20);
}
function addScore(inScore, inFly) {
_root.Score = _root.Score + inScore;
_root.ScoreDisplay = _root.NumbertoString(_root.Score);
if (inFly != null) {
return(_root.createScoreMc(inScore, inFly));
}
}
function createScoreMc(inScore, inFly) {
var _local5 = 0;
var _local6 = 0;
for (var _local7 in _root) {
if (typeof(_root[_local7]) != "movieclip") {
continue;
}
if (targetPath(_root[_local7]).indexOf("showScoreMc_") < 0) {
continue;
}
_local6++;
if (((_root[_local7]._y - 100) < (inFly.posY + inFly.posZ)) and ((inFly.posY + inFly.posZ) < (_root[_local7]._y + 100))) {
_local5++;
}
}
var _local8 = _root.attachMovie("showScoreMc", (("showScoreMc_" + new Date().getTime()) + "_") + _local6, _root.getNextHighestDepth());
_local8.anim.Score = inScore;
_local8._x = inFly.posX;
_local8._y = (inFly.posY + inFly.posZ) - (_local5 * 20);
var _local4 = null;
var _local9 = (new Date().getTime() + "_") + Math.floor(Math.random() * 100);
if (inScore >= 10000) {
_local4 = _root.attachMovie("Score_Miracle", "Score_Miracle_" + _local9, _root.getNextHighestDepth());
} else if (inScore >= 5000) {
_local4 = _root.attachMovie("Score_Grade", "Score_Grade_" + _local9, _root.getNextHighestDepth());
} else if (inScore >= 1000) {
_local4 = _root.attachMovie("Score_Good", "Score_Good_" + _local9, _root.getNextHighestDepth());
}
if (_local4 != null) {
_local4.Timer = 100;
_local4._x = Stage.width;
_local4._y = 570;
_local4.onEnterFrame = function () {
this.Timer--;
if (this.Timer < 0) {
this.removeMovieClip();
}
this._x = this._x + (((Stage.width - this._width) - this._x) * 0.2);
};
}
return(_local8);
}
function PlayerDed() {
if (_root.PlayerDedFlag) {
return(undefined);
}
if (_root.BonusStageFlag) {
_root.StageClear();
return(undefined);
}
_root.mouseMoveActive = false;
_root.PlayerDedFlag = true;
_root.Flyswatter.gotoAndPlay("ded");
_root.PlayerCount--;
_root.drawPlayerIcon();
if (_root.PlayerCount == 0) {
_root.GameOver();
}
}
function GameOver() {
_root.MusicObj.musicStop(0.1);
_root.pauseGame(999);
var _local2 = _root.attachMovie("GameOverAnim", "GameOverAnim", _root.getNextHighestDepth());
_local2.removeFlag = false;
_local2._x = Stage.width / 2;
_local2._y = Stage.height / 2;
_local2.removeAfterProc = function () {
_quality = "High";
Mouse.show();
_root.GameOverFlag = true;
_root.gotoAndStop("GameOver");
};
_local2.onEnterFrame = function () {
_root.Flyswatter.stop();
};
}
function StageClear() {
_quality = "High";
_root.StartGameFlag = false;
while (_root.MissileList.length) {
_root.MissileList[0].removeFly();
}
_root.SoundObj.Shot_loop.stop("shot_loop.wav");
_root.removeAllOjyamanBoo();
_root.GameOverFlag = true;
_root.MusicObj.musicStop(0.1);
_root.gotoAndStop("StageClear");
}
function drawPlayerIcon() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
if (targetPath(_root[_local2]).indexOf("PlayerIcon_") >= 0) {
_root[_local2].removeMovieClip();
}
}
}
var _local2 = 0;
while (_local2 < _root.PlayerCount) {
var _local3 = _root.attachMovie("PlayerIcon", "PlayerIcon_" + _local2, _root.getNextHighestDepth());
_local3._x = ((600 - (_local3._width / 2)) - 3) - ((_local2 * _local3._width) + 5);
_local3._y = 80;
_local2++;
}
}
function drawItemIcon() {
for (var _local3 in _root) {
if (typeof(_root[_local3]) == "movieclip") {
if (targetPath(_root[_local3]).indexOf("ItemIcon_") >= 0) {
_root[_local3].removeMovieClip();
}
}
}
var _local3 = 0;
while (_local3 < _root.ItemsList.length) {
if (_root.ItemsList[_local3] < 0) {
} else {
var _local4 = _root.attachMovie("ItemIcon", "ItemIcon_" + _local3, _root.getNextHighestDepth());
_local4._x = 235 + (_local3 * 38);
_local4._y = 22;
_local4.itemID = _local3;
_local4.removeBT = function () {
var _local3 = 0;
while (_local3 < _root.ItemsList.length) {
if (this.itemID == _local3) {
_root.ItemsList[_local3] = -1;
break;
}
_local3++;
}
this.removeMovieClip();
_root.drawPlayerIcon();
};
_local4.onRollOver = function () {
if (_root.GameOverFlag) {
return(undefined);
}
if (_root.PlayerDedFlag) {
return(undefined);
}
if (!_root.mouseMoveActive) {
return(undefined);
}
_root.setRGB2(100, -100, -100, this);
this._xscale = (this._yscale = 150);
};
_local4.onRollOut = function () {
if (_root.GameOverFlag) {
return(undefined);
}
if (_root.PlayerDedFlag) {
return(undefined);
}
if (!_root.mouseMoveActive) {
return(undefined);
}
_root.setRGB2(0, 0, 0, this);
this._xscale = (this._yscale = 100);
};
if (_root.ItemsList[_local3] == 0) {
_local4.onRelease = function () {
if (_root.GameOverFlag) {
return(undefined);
}
if (_root.PlayerDedFlag) {
return(undefined);
}
if (!_root.mouseMoveActive) {
return(undefined);
}
_root.mouseWidth = _root.mouseWidth * 2;
_root.mouseHeight = _root.mouseHeight * 2;
_root.Flyswatter._xscale = _root.Flyswatter._xscale * 2;
_root.Flyswatter._yscale = _root.Flyswatter._yscale * 2;
_root.Flyswatter.gotoAndPlay("item_Big");
_root.pauseGame(40);
_root.itemBigTimerAy.push(600);
this.removeBT();
};
}
}
_local3++;
}
}
function removeItem_Big() {
_root.mouseWidth = _root.mouseWidth / 2;
_root.mouseHeight = _root.mouseHeight / 2;
_root.Flyswatter._xscale = _root.Flyswatter._xscale / 2;
_root.Flyswatter._yscale = _root.Flyswatter._yscale / 2;
_root.Flyswatter.gotoAndPlay("item_Big_end");
_root.pauseGame(40);
_root.itemBigTimerAy.shift();
}
function addCombo(inFly) {
_root.MaxCombo.addCombo(inFly);
}
function resetCombo() {
_root.MaxCombo.resetCombo();
}
function removeAllOjyamanBoo() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
if (targetPath(_root[_local2]).indexOf("OjyamanBoo_") >= 0) {
_root[_local2].removeMovieClip();
}
}
}
}
function createOjyamanBoo(inShotCount) {
var _local6 = 0;
for (var _local3 in _root) {
if (typeof(_root[_local3]) == "movieclip") {
if (targetPath(_root[_local3]).indexOf("OjyamanBoo_") >= 0) {
_local6++;
}
}
}
var _local5 = _root.attachMovie("OjyamanBoo", "OjyamanBoo_" + _local6, _root.getNextHighestDepth());
if (Math.random() > 0.5) {
_local5._x = 0;
_local5._xscale = 100;
_local5.xSpeed = 1;
_local5.targetPos = 100;
_local5.endPos = 0;
} else {
_local5._x = Stage.width;
_local5._xscale = -100;
_local5.targetPos = Stage.width - 100;
_local5.endPos = Stage.width;
}
_local5._y = Stage.height - 100;
_local5.timer = 0;
_local5.shotCount = inShotCount;
_local5.onEnterFrame = function () {
if (_root.GameOverFlag) {
return(undefined);
}
if (_root.pauseTimer > 0) {
return(undefined);
}
this.timer++;
if (this.timer < 80) {
this._x = this._x + ((this.targetPos - this._x) * 0.2);
} else {
this._x = this._x + ((this.endPos - this._x) * 0.1);
}
if (this.timer == 40) {
var _local5 = (Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x) / Math.PI) * 180;
_local5 = _local5 - (((180 / this.shotCount) * (this.shotCount - 1)) / 2);
var _local3 = 0;
while (_local3 < this.shotCount) {
var _local4 = new as.Missile_fly(null, this._x, this._y);
_local4.myMc._rotation = _local5 + ((180 / this.shotCount) * _local3);
_root.MissileList.push(_local4);
_local3++;
}
_root.SoundObj.FlyShot.start();
}
if (this.timer > 100) {
this.removeMovieClip();
}
};
}
function NumbertoString(inNum) {
var _local3 = inNum + "";
if (_local3.length < 3) {
return(_local3);
}
var _local5 = new Array();
var _local4 = new Array();
var _local1 = 0;
while (_local1 < _local3.length) {
_local5.push(_local3.substr(_local1, 1));
_local1++;
}
_local5.reverse();
var _local2 = 0;
_local1 = 0;
while (_local1 < _local5.length) {
if (_local2 > 2) {
_local4.push(",");
_local2 = 0;
}
_local2++;
_local4.push(_local5[_local1]);
_local1++;
}
_local5 = _local4.reverse();
return(_local5.join(""));
}
function deleteAllGameObject() {
var _local2 = 0;
while (_local2 < _root.flyList.length) {
_root.flyList[_local2].myMc.removeMovieClip();
_root.flyList[_local2].myShade.removeMovieClip();
_local2++;
}
_root.flyList = new Array();
while (_root.MissileList.length) {
_root.MissileList[0].removeFly();
}
_root.SoundObj.Shot_loop.stop("shot_loop.wav");
_root.ItemsList = [-1, -1, -1];
_root.drawItemIcon();
_root.PlayerCount = 0;
_root.drawPlayerIcon();
_root.removeAllOjyamanBoo();
}
if (!_root.SoundSetUpFlag) {
trace("SoundSetUpFlag");
_root.SoundSetUpFlag = true;
_root.MusicObj = _root.attachMovie("MusicMovie", "MusicMovie", _root.getNextHighestDepth());
_root.MusicObj.addMusic("Boss.mp3");
_root.MusicObj.addMusic("Ranking.mp3");
_root.MusicObj.addMusic("Stage2.mp3");
_root.MusicObj.addMusic("Tittle.mp3");
_root.MusicObj.addMusic("Clear.mp3");
_root.SoundObj = {Hit:new Sound(), Attack:new Sound(), Bounce:new Sound(), Smash:new Sound(), Smash_Remove:new Sound(), Shot_loop:new Sound(), FlyShot:new Sound(), ShotCharge:new Sound(), MultiCombo:new Sound()};
_root.SoundObj.Hit.attachSound("Hit.wav");
_root.SoundObj.Attack.attachSound("attack.mp3");
_root.SoundObj.Bounce.attachSound("bounce.wav");
_root.SoundObj.Smash.attachSound("smash.wav");
_root.SoundObj.Smash_Remove.attachSound("smash_remove.wav");
_root.SoundObj.Shot_loop.attachSound("shot_loop.wav");
_root.SoundObj.FlyShot.attachSound("flyShot.wav");
_root.SoundObj.ShotCharge.attachSound("ShotCharge.wav");
_root.SoundObj.MultiCombo.attachSound("multiCombo.mp3");
_root.Shot_loopFlag = true;
}
_quality = "High";
var menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = false;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.zoom = false;
_root.menu = menu_cm;
_root.SITE_URL = "http://game.belcro.net/game.datas/Flyswatter";
_root.version = "1";
System.security.loadPolicyFile(_root.SITE_URL + "/crossdomain.xml");
Instance of Symbol 195 MovieClip in Frame 1
on (release) {
_root.PlayerDed();
}
Instance of Symbol 195 MovieClip in Frame 1
on (release) {
_root.StageClear();
}
Instance of Symbol 195 MovieClip in Frame 1
on (release) {
_root.GameOver();
}
Instance of Symbol 195 MovieClip in Frame 1
on (release) {
_root.createOjyamanBoo(5);
}
Instance of Symbol 229 MovieClip "MaxCombo" in Frame 5
onClipEvent (load) {
this.combo = 0;
this.ShowCombo = 0;
this.initX = this._x;
this.timerMax = 100;
this.lastHitFly = null;
this.multiCombo = 0;
this.ShowMultiCombo = "";
this.addCombo = function (inFly) {
if (this.timer < this.timerMax) {
this._x = 800;
} else {
this._x = this.initX;
}
this.combo++;
this.ShowCombo = this.combo;
this.timer = 0;
this._visible = true;
_root.setRGB2(255, -100, -100, this);
if (_root.StageComboMax < this.combo) {
_root.StageComboMax = this.combo;
}
if (_root.GameComboMax < this.combo) {
_root.GameComboMax = this.combo;
}
if (this.lastHitFly != inFly) {
this.lastHitFly = inFly;
if (this.combo > 1) {
var _local4 = 0;
var _local3 = 0;
while (_local3 < _root.flyList.length) {
if (_root.flyList[_local3].dedFlag and (_root.flyList[_local3].BounceCount == _root.flyList[_local3].BounceCountMax)) {
_local4++;
}
_local3++;
}
this.multiCombo = this.multiCombo + _local4;
_root.addScore(this.multiCombo * 100, inFly);
}
}
if (this.multiCombo > 1) {
_root.MultiCombo.ShowMultiCombo = this.multiCombo;
_root.MultiCombo._visible = true;
_root.setRGB2(-100, 100, 255, _root.MultiCombo);
_root.SoundObj.MultiCombo.start();
} else {
_root.MultiCombo._visible = false;
}
};
this.resetCombo = function () {
this.combo = 0;
_root.setRGB2(0, 0, 0, this);
this.lastHitFly = null;
this.multiCombo = 0;
_root.setRGB2(0, 0, 0, _root.MultiCombo);
};
}
onClipEvent (enterFrame) {
this.timer++;
if (this.timer < 20) {
this._x = this._x + ((580 - this._x) * 0.3);
_root.MultiCombo._x = _root.MultiCombo._x + ((this._x - _root.MultiCombo._x) * 0.3);
} else if (this.timer > this.timerMax) {
this._visible = false;
_root.MultiCombo._visible = false;
}
}
Frame 20
function RefreshRankingPage() {
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
var _local3 = false;
if (success) {
if (result_lv.result) {
_local3 = true;
createRankingList(result_lv.result.split(","));
_root.MsgBoxWindow.removeMovieClip();
}
} else {
trace("Error connecting to server.");
}
if (!_local3) {
_root.MsgBoxWindow.msgStr = "Error connecting to server. click close button retry!";
_root.setRGB2(50, -50, -50, _root.MsgBoxWindow.progress_bar);
var _local2 = _root.MsgBoxWindow.attachMovie("defualtButton", "defualtButton", _root.MsgBoxWindow.getNextHighestDepth());
_local2._y = 50;
_local2.label = "Close";
_local2.bt.onRelease = function () {
_root.MsgBoxWindow.removeMovieClip();
};
}
};
var _local4 = new LoadVars();
_local4.version = _root.version;
_local4.sendAndLoad(_root.SITE_URL + "/php/rankingFlash.php", result_lv, "POST");
trace(_root.SITE_URL + "/php/rankingFlash.php");
var _local5 = _root.attachMovie("MsgBoxWindow", "MsgBoxWindow", _root.getNextHighestDepth());
_root.setRGB2(-50, -50, 50, _root.MsgBoxWindow.progress_bar);
_local5.titleStr = "Conecting Server";
_local5.msgStr = "Please Wait. Get Ranking List.";
}
function createRankingList(inList) {
var _local7 = _root.createEmptyMovieClip("rankingMc", _root.getNextHighestDepth());
_local7._x = 15;
_local7._y = 60;
_local7.targetMc = null;
var _local8 = _local7.createEmptyMovieClip("backAnimation", _local7.getNextHighestDepth());
_local8.rad = 0;
_local8.onEnterFrame = function () {
this.rad = 4.18666666666667 - (((_root._ymouse / Stage.height) * 3.14) / 3);
};
var _local4 = 0;
while (_local4 < 20) {
var defualtFlyMc = _local8.attachMovie("defualtFly", "backFly_" + _local4, _local8.getNextHighestDepth());
defualtFlyMc._x = Stage.width;
defualtFlyMc._y = Math.random() * (Stage.height + (Stage.height / 2));
defualtFlyMc.Speed = 2 + (Math.random() * 2);
defualtFlyMc._xscale = (defualtFlyMc._yscale = (defualtFlyMc.Speed / 4) * 100);
defualtFlyMc._alpha = (defualtFlyMc.Speed / 4) * 100;
_root.setRGB2(100 + (Math.random() * -100), 100 + (Math.random() * -100), 100 + (Math.random() * -100), defualtFlyMc);
defualtFlyMc.onEnterFrame = function () {
this._x = this._x + (Math.cos(this._parent.rad) * this.Speed);
this._y = this._y + (Math.sin(this._parent.rad) * this.Speed);
if ((this._x < 0) || (this._y < 0)) {
this._x = Stage.width;
this._y = Math.random() * (Stage.height + (Stage.height / 2));
_root.setRGB2(100 + (Math.random() * -100), 100 + (Math.random() * -100), 100 + (Math.random() * -100), defualtFlyMc);
}
};
_local4++;
}
var _local10;
var _local6 = 0;
var _local9 = 0;
_local4 = 0;
while (_local4 < inList.length) {
if (_local4 > 19) {
break;
}
var _local5 = inList[_local4].split("|");
var _local3 = _local7.attachMovie("rankingLine", "rankingLine_" + _local4, _local7.getNextHighestDepth());
if (_local4 == 12) {
_local6 = _local9;
}
_local3.Score = _root.NumbertoString(_local5[0]);
_local3.UserName = _local5[1];
_local3.Rank = _local4 + 1;
_local3._x = 0;
_local3._y = _local6;
_local3.timerMax = _local4 * 5;
_local3.timer = 0;
_local3.sclaeY = 0;
_local3.onEnterFrame = function () {
this.timer++;
if (this.timer > this.timerMax) {
this._yscale = this._yscale + ((this.sclaeY - this._yscale) * 0.5);
}
};
if (_local4 == 0) {
_local3._xscale = (_local3.sclaeY = 100);
} else if ((_local4 == 1) || (_local4 == 2)) {
_local3.sclaeY = 65;
} else if (_local4 > 11) {
_local3._x = (_local3._width / 2) + 5;
_local3._xscale = (_local3.sclaeY = 50);
_local3._width = _local3._width - 5;
} else {
_local3._xscale = (_local3.sclaeY = 50);
}
if (Number(_local5[3]) == _root.myRankTimeStamp) {
_local10 = _local3;
}
_local3._yscale = _local3.sclaeY;
_local6 = _local6 + (_local3._height + 5);
_local3._yscale = 0;
if (_local4 == 2) {
_local9 = _local6;
}
_local4++;
}
if (_local10 != null) {
var _local12 = _local7.attachMovie("myRankingLine", "myRankingLine", _local7.getNextHighestDepth());
_local12.targetMc = _local10;
_local12._y = _local10._y;
_local12.onEnterFrame = function () {
this._x = this.targetMc._x;
this._y = this.targetMc._y;
this._width = this.targetMc._width;
this._height = this.targetMc._height;
};
_local7.targetMc = _local10;
_root.rankingInfo.htmlText = ((("Congratulations! " + _local10.UserName) + "'s Ranking ") + _local10.Rank) + "! Click <u><a href=\"asfunction:GotoStartLabel\">Back</a></u> button .";
} else if (_root.myRankTimeStamp) {
_root.rankingInfo.htmlText = ("Out of ranking you score <b>" + _root.ScoreDisplay) + "</b> Click <u><a href=\"asfunction:GotoStartLabel\">Back</a></u> button try again! <u><a href=\"asfunction:GotoRanking100\">Ranking100</a></u>";
} else {
_root.rankingInfo.htmlText = "<u><a href=\"asfunction:GotoStartLabel\">Click Back button</a></u> Start game!\nmore <u><a href=\"asfunction:GotoRanking100\">Ranking100</a></u>";
}
}
function GotoRanking100() {
getURL (_root.SITE_URL + "/ranking.php");
}
function GotoStartLabel() {
if (targetPath(_root.MsgBoxWindow)) {
return(undefined);
}
_root.rankingMc.removeMovieClip();
_root.gotoAndStop("Start");
}
_root.deleteAllGameObject();
_root.RefreshRankingPage();
_root.MusicObj.musicStart("Ranking.mp3", 0.1);
Symbol 27 MovieClip [SmashEff] Frame 9
this.removeMovieClip();
Symbol 32 MovieClip [showScoreMc] Frame 40
this.removeMovieClip();
Symbol 87 MovieClip [GameOverAnim] Frame 121
this.removeAfterProc();
this.removeMovieClip();
Symbol 160 MovieClip [MsgBoxWindow] Frame 1
this._x = this._width / 2;
this._y = this._height / 2;
Symbol 166 MovieClip [MusicMovie] Frame 1
#initclip 11
Object.registerClass("MusicMovie", as.Music);
#endinitclip
Symbol 169 MovieClip [fps] Frame 1
function calcFPS() {
numFrames++;
var _local3 = getTimer();
var _local2 = (_local3 - startTime) / 1000;
var _local1 = Math.round(numFrames / _local2);
fpsField.text = _local1;
}
var startTime = getTimer();
var numFrames = 0;
this.onEnterFrame = calcFPS;
Symbol 173 MovieClip [hitEffect] Frame 4
this.removeMovieClip();
Symbol 187 Button
on (release) {
if (_root.GameOverAnim) {
return(undefined);
}
_quality = "Low";
var GameOverAnimMc = _root.attachMovie("GameOverAnim", "GameOverAnim", _root.getNextHighestDepth());
GameOverAnimMc._x = Stage.width / 2;
GameOverAnimMc._y = Stage.height / 2;
_root.MusicObj.musicStop(0.015);
GameOverAnimMc.removeAfterProc = function () {
_root.main();
_quality = "HIGH";
_root.gotoAndStop("Play");
};
}
Symbol 189 Button
on (release) {
if (_root.GameOverAnim) {
return(undefined);
}
_root.gotoAndStop("Ranking");
}
Symbol 190 MovieClip Frame 1
this.timer = 0;
this.stop();
this.onEnterFrame = function () {
this.timer++;
if (this.timer > 30) {
play();
delete this.onEnterFrame;
delete this.timer;
}
};
Symbol 190 MovieClip Frame 7
_root.SoundObj.Smash.start();
Symbol 190 MovieClip Frame 10
_root.MusicObj.musicStart("Tittle.mp3", 0.1);
Symbol 190 MovieClip Frame 15
var flyCount = (6 + (Math.random() * 5));
var flysList = new Array();
var i = 0;
while (i < flyCount) {
flysList.push(new as.openning_fly(i, this));
i++;
}
this.onEnterFrame = function () {
var _local1 = 0;
while (_local1 < flysList.length) {
flysList[_local1].refresh();
_local1++;
}
};
Symbol 190 MovieClip Frame 40
stop();
Symbol 290 MovieClip [__Packages.as.fly] Frame 0
class as.fly
{
var ID, BounceCount, BounceCountMax, dedFlag, SpeedY, addSpeedY, thinkTimer, thinkTimer_Max, ModeID, myShade, posX, posZ, flyShotCount, Barrier, SmashFlag, hitpoint, myMc, rad, posY, smashPosX, smashPosY, Score, Speed;
function fly (inID) {
ID = inID;
BounceCount = (BounceCountMax = 2);
dedFlag = false;
SpeedY = 0;
addSpeedY = 0.5;
thinkTimer = 0;
thinkTimer_Max = 0;
ModeID = 0;
myShade = _root.attachMovie("Shade", "Shade_" + ID, _root.getNextHighestDepth());
myShade._x = posX;
myShade._y = posZ + _root.posYZero;
flyShotCount = 0;
Barrier = false;
}
function refresh() {
}
function hit() {
if (Barrier) {
return(undefined);
}
if (SmashFlag) {
return(undefined);
}
if (BounceCount != BounceCountMax) {
return(undefined);
}
hitpoint = hitpoint - 1;
if (hitpoint > 0) {
return(undefined);
}
_root.addCombo(this);
myMc._rotation = Math.random() * 360;
rad = Math.atan2(((posY + posZ) - _root.Flyswatter._y) + 20, posX - _root.Flyswatter._x);
if ((_ymouse < _root.SmashPoint_posY) && (dedFlag)) {
SpeedY = -30;
SmashFlag = true;
smashPosX = posX;
smashPosY = posY + posZ;
_root.SmashEvent();
} else {
SpeedY = 15 - ((1 - (addSpeedY / 0.5)) * 10);
flyShotCount++;
_root.addScore(Score * flyShotCount, this);
dedFlag = true;
if ((flyShotCount / 5) == Math.floor(flyShotCount / 5)) {
_root.createOjyamanBoo(flyShotCount / 5);
}
hitAfterProc();
}
}
function hitAfterProc() {
}
function removeFly() {
myMc.removeMovieClip();
myShade.removeMovieClip();
_root.removeFly(this);
if (SmashFlag) {
var _local4 = _root.attachMovie("SmashEff", "SmashEff_" + ID, _root.getNextHighestDepth());
_local4._x = posX;
_local4._y = posY;
var _local3 = _root.addScore(Score * Math.pow(flyShotCount, 2), this);
_local3._x = smashPosX;
_local3._y = smashPosY;
_local3._xscale = (_local3._yscale = 150);
}
}
function StageReflect(nor) {
var _local3 = {x:Math.cos(rad), y:Math.sin(rad)};
var _local4 = (-((nor.x * _local3.x) + (nor.y * _local3.y))) / ((nor.x * nor.x) + (nor.y * nor.y));
rad = Math.atan2(_local3.y + ((_local4 * nor.y) * 2), _local3.x + ((_local4 * nor.x) * 2));
}
function TransformGraphic() {
var _local4 = Math.cos(rad);
var _local3 = Math.sin(rad);
posX = posX + (_local4 * Speed);
posY = posY + (_local3 * Speed);
myMc._x = posX;
myMc._y = posY + posZ;
myShade._x = posX;
myShade._y = posZ + _root.posYZero;
}
function StageCollision() {
}
function checkCombo() {
if (SmashFlag) {
var _local4 = false;
var _local3 = 0;
while (_local3 < _root.flyList.length) {
if (_root.flyList[_local3] == this) {
} else if (_root.flyList[_local3].dedFlag && (_root.flyList[_local3].BounceCount == _root.flyList[_local3].BounceCountMax)) {
_local4 = true;
break;
}
_local3++;
}
if (!_local4) {
_root.resetCombo();
}
} else if (dedFlag) {
if (BounceCount == BounceCountMax) {
_root.resetCombo();
}
}
}
}
Symbol 291 MovieClip [__Packages.as.default_fly] Frame 0
class as.default_fly extends as.fly
{
var hitpoint, posX, posY, posZ, rad, Speed, rotSpeed, Width, Height, myMc, ID, Score, dedFlag, thinkTimer, thinkTimer_Max, ModeID, SpeedY, addSpeedY, TransformGraphic, StageReflect, checkCombo, SmashFlag, removeFly, BounceCount, myShade;
function default_fly (inID) {
super(inID);
hitpoint = 1;
posX = 200;
posY = 200;
posZ = Math.random() * (Stage.height - _root.posYZero);
rad = 0;
Speed = 2;
rotSpeed = 0.1;
Width = 20;
Height = 20;
myMc = _root.attachMovie("defualtFly", "defualtFly_" + ID, _root.getNextHighestDepth());
myMc._x = posX;
myMc._y = posY;
Score = 10;
}
function refresh() {
if (!dedFlag) {
thinkTimer++;
if (thinkTimer > thinkTimer_Max) {
thinkTimer = 0;
thinkTimer_Max = 50 + (Math.random() * 50);
ModeID = Math.floor(Math.random() * 5);
}
if (ModeID == 1) {
rad = rad + rotSpeed;
} else if (ModeID == 2) {
rad = rad - rotSpeed;
}
} else {
SpeedY = SpeedY - addSpeedY;
posY = posY - SpeedY;
}
StageCollision();
TransformGraphic();
}
function StageCollision() {
if (posX < 0) {
posX = posX + 10;
StageReflect({x:-1, y:0});
}
if (Stage.width < posX) {
posX = posX - 10;
StageReflect({x:1, y:0});
}
if ((posY + posZ) < _root.posYTop) {
posY = posY + 10;
StageReflect({x:0, y:-1});
if (dedFlag) {
SpeedY = SpeedY * -0.7;
}
}
if (_root.posYZero < posY) {
posY = posY - 10;
StageReflect({x:0, y:1});
addSpeedY = 0.5;
checkCombo();
if (SmashFlag) {
_root.SoundObj.Smash_Remove.start();
removeFly();
} else if (dedFlag) {
BounceCount--;
SpeedY = SpeedY * -0.5;
myMc._alpha = (myShade._alpha = 20);
if (BounceCount < 0) {
removeFly();
}
_root.SoundObj.Bounce.start();
}
}
}
}
Symbol 292 MovieClip [__Packages.as.Shot_fly] Frame 0
class as.Shot_fly extends as.default_fly
{
var hitpoint, defSpeed, Speed, myMc, Score, addThinkTimer, ShotChageFlag, ShotChageCount, ShotChageCountMax, thinkTimer_Max, ShotCount, dedFlag, thinkTimer, SpeedY, posY, StageCollision, TransformGraphic, posX;
function Shot_fly (inID) {
super(inID);
hitpoint = 1;
defSpeed = 3;
Speed = defSpeed;
_root.setRGB2(0, 50, 0, myMc);
Score = 50;
addThinkTimer = 200 - ((_root.StageCount - 1) * 5);
if (addThinkTimer < 50) {
addThinkTimer = 50;
}
ShotChageFlag = false;
ShotChageCount = 0;
ShotChageCountMax = 70;
thinkTimer_Max = (addThinkTimer / 2) + (Math.random() * 100);
ShotCount = 1 + ((_root.StageCount - 1) * 0.3);
if (ShotCount > 5) {
ShotCount = 5;
}
}
function hitAfterProc() {
myMc._xscale = (myMc._yscale = 100);
_root.setRGB2(0, 50, 0, myMc);
Speed = defSpeed;
}
function refresh() {
if (!dedFlag) {
thinkTimer++;
if (thinkTimer > thinkTimer_Max) {
thinkTimer = 0;
thinkTimer_Max = addThinkTimer + (Math.random() * 100);
ShotChageFlag = true;
_root.SoundObj.ShotCharge.start();
}
if (ShotChageFlag) {
Speed = 0;
ShotChageCount++;
myMc._xscale = (10 + (ShotChageCount * 3)) + (Math.random() * 100);
myMc._yscale = (10 + (ShotChageCount * 3)) + (Math.random() * 100);
_root.setRGB2(-255 + (Math.random() * 510), -255 + (Math.random() * 510), ShotChageCount * -2, myMc);
if (ShotChageCount > ShotChageCountMax) {
ShotProc(ShotCount);
}
}
} else {
SpeedY = SpeedY - 0.5;
posY = posY - SpeedY;
}
StageCollision();
TransformGraphic();
}
function ShotProc(inCount) {
ShotChageFlag = false;
ShotChageCount = 0;
Speed = defSpeed;
myMc._yscale = (myMc._xscale = 100);
_root.setRGB2(0, 50, 0, myMc);
var _local6 = (Math.atan2(_root.Flyswatter._y - posY, _root.Flyswatter._x - posX) / Math.PI) * 180;
_local6 = _local6 - (((180 / inCount) * (inCount - 1)) / 2);
var _local3 = 0;
while (_local3 < inCount) {
var _local4 = new as.Missile_fly(this);
_local4.myMc._rotation = _local6 + ((180 / inCount) * _local3);
_root.MissileList.push(_local4);
_local3++;
}
_root.SoundObj.FlyShot.start();
}
}
Symbol 293 MovieClip [__Packages.as.Missile_fly] Frame 0
class as.Missile_fly
{
var ID, myMc, posX, posY, rad, Speed, rotSpeed, followTime, followStartTime;
function Missile_fly (inFly, inPosX, inPosY) {
if (inFly != null) {
init(inFly.posX, inFly.posY + inFly.posZ);
} else {
init(inPosX, inPosY);
}
}
function init(inPosX, inPosY) {
ID = (new Date().getTime() + "_") + _root.MissileList.length;
myMc = _root.attachMovie("MissileFily", "MissileFily_" + ID, _root.getNextHighestDepth());
myMc._rotation = Math.random() * 360;
posX = inPosX;
posY = inPosY;
rad = 0;
Speed = 5 + ((_root.StageCount - 1) / 10);
rotSpeed = 5 + ((_root.StageCount - 1) / 10);
followTime = 80 + (_root.StageCount * 10);
followStartTime = 10;
}
function refresh() {
if (!_root.PlayerDedFlag) {
if (((_root.Flyswatter._x - (_root.mouseWidth / 2)) < posX) && (posX < (_root.Flyswatter._x + (_root.mouseWidth / 2)))) {
if (((_root.Flyswatter._y - (_root.mouseHeight / 2)) < posY) && (posY < (_root.Flyswatter._y + (_root.mouseHeight / 2)))) {
_root.PlayerDed();
removeFly();
return(undefined);
}
}
}
followStartTime--;
if (followStartTime < 0) {
followTime--;
if (followTime > 0) {
followRotation();
}
}
rad = (myMc._rotation * Math.PI) / 180;
StageCollision();
TransformGraphic();
}
function followRotation() {
var _local4 = Math.atan2(_root.Flyswatter._y - posY, _root.Flyswatter._x - posX);
var _local3 = (_local4 * 180) / Math.PI;
if ((myMc._rotation - 180) > _local3) {
_local3 = _local3 + 360;
}
if ((myMc._rotation + 180) < _local3) {
_local3 = _local3 - 360;
}
if ((myMc._rotation - _local3) > rotSpeed) {
myMc._rotation = myMc._rotation - rotSpeed;
} else if ((myMc._rotation - _local3) < (-rotSpeed)) {
myMc._rotation = myMc._rotation + rotSpeed;
} else {
myMc._rotation = _local3;
}
}
function TransformGraphic() {
var _local3 = Math.cos(rad);
var _local2 = Math.sin(rad);
posX = posX + (_local3 * Speed);
posY = posY + (_local2 * Speed);
myMc._x = posX;
myMc._y = posY;
}
function StageCollision() {
if (posX < 0) {
removeFly();
}
if (Stage.width < posX) {
removeFly();
}
if (posY < 0) {
removeFly();
}
if (Stage.width < posY) {
removeFly();
}
}
function removeFly() {
myMc.removeMovieClip();
_root.removeMissile(this);
}
}
Symbol 294 MovieClip [__Packages.as.Bonus_fly] Frame 0
class as.Bonus_fly extends as.default_fly
{
var hitpoint, Speed, myMc, Score, addSpeedY;
function Bonus_fly (inID) {
super(inID);
hitpoint = 1;
Speed = 1;
_root.setRGB2(50, 50, -50, myMc);
Score = 20;
addSpeedY = 0.1;
}
}
Symbol 295 MovieClip [__Packages.as.Speed_fly] Frame 0
class as.Speed_fly extends as.default_fly
{
var hitpoint, Speed, myMc, Score;
function Speed_fly (inID) {
super(inID);
hitpoint = 1;
Speed = 4;
_root.setRGB2(50, 0, 0, myMc);
Score = 20;
}
}
Symbol 296 MovieClip [__Packages.as.Cockroach] Frame 0
class as.Cockroach extends as.fly
{
var hitpoint, posX, posY, posZ, rad, Speed, rotSpeed, Width, Height, myMc, ID, Score, myShade, RunawayTimer, dedFlag, ModeID, thinkTimer, thinkTimer_Max, SpeedY, TransformGraphic, removeFly, StageReflect, checkCombo, SmashFlag, BounceCount;
function Cockroach (inID) {
super(inID);
hitpoint = 6;
posX = 0;
posY = 0;
posZ = Math.random() * (Stage.height - _root.posYZero);
rad = 0;
Speed = 4 + (_root.StageCount * 0.1);
rotSpeed = 0.1;
Width = 35;
Height = 35;
myMc = _root.attachMovie("Cockroach", "Cockroach_" + ID, _root.getNextHighestDepth());
myMc._x = posX;
myMc._y = posY;
Score = 200 * _root.StageCount;
myShade.removeMovieClip();
RunawayTimer = 200;
var _local4 = Math.random();
if (_local4 < 0.5) {
posX = 20;
rad = 0;
} else {
posX = Stage.width - 20;
rad = 3.14;
}
posY = _root.posYTop + (Math.random() * (_root.posYZero - _root.posYTop));
myMc._x = posX;
myMc._y = posY + posZ;
}
function refresh() {
if (!dedFlag) {
RunawayTimer--;
if (RunawayTimer == 0) {
Speed = Speed * 2;
ModeID = 0;
var _local2 = Math.random();
if (_local2 < 0.5) {
rad = 0;
} else {
rad = 3.14;
}
}
thinkTimer++;
if ((thinkTimer > thinkTimer_Max) and (RunawayTimer > 0)) {
thinkTimer = thinkTimer_Max * Math.random();
thinkTimer_Max = 50 + (Math.random() * 50);
ModeID = Math.floor(Math.random() * 10);
rad = Math.random() * 3.14;
}
if (ModeID == 1) {
rad = rad + rotSpeed;
} else if (ModeID == 2) {
rad = rad - rotSpeed;
}
} else {
SpeedY = SpeedY - 0.5;
posY = posY - SpeedY;
}
StageCollision();
TransformGraphic();
myMc._rotation = (rad * 180) / Math.PI;
}
function StageCollision() {
if (posX < 0) {
if ((RunawayTimer < 0) and (!dedFlag)) {
removeFly();
}
posX = posX + 10;
StageReflect({x:-1, y:0});
}
if (Stage.width < posX) {
if ((RunawayTimer < 0) and (!dedFlag)) {
removeFly();
}
posX = posX - 10;
StageReflect({x:1, y:0});
}
if ((posY + posZ) < _root.posYTop) {
posY = posY + 10;
StageReflect({x:0, y:-1});
if (dedFlag) {
SpeedY = SpeedY * -0.7;
}
}
if (_root.posYZero < posY) {
posY = posY - 10;
StageReflect({x:0, y:1});
checkCombo();
if (SmashFlag) {
_root.SoundObj.Smash_Remove.start();
removeFly();
} else if (dedFlag) {
BounceCount--;
SpeedY = SpeedY * -0.5;
myMc._alpha = (myShade._alpha = 20);
if (BounceCount < 0) {
removeFly();
}
_root.SoundObj.Bounce.start();
}
}
}
}
Symbol 297 MovieClip [__Packages.as.boss_fly] Frame 0
class as.boss_fly extends as.fly
{
var hitpoint, posX, posY, posZ, rad, defSpeed, Speed, rotSpeed, Width, Height, myMc, ID, Score, ShotChageCountMax, ShotChageFlag, ShotChageCount, thinkTimer_Max, ShotCount, BarrierTimer, BarrierTimerMax, dmgFlag, dmgTimer, dmgTimerMax, hideFlag, hideTimer, hideTimerMax, dedFlag, ModeID, thinkTimer, Barrier, SpeedY, TransformGraphic, StageReflect, checkCombo, SmashFlag, removeFly, BounceCount, myShade;
function boss_fly (inID) {
super(inID);
hitpoint = _root.StageCount;
posX = Stage.width / 2;
posY = Stage.height / 2;
posZ = (Stage.height - _root.posYZero) / 2;
rad = 0;
defSpeed = 2 + ((_root.StageCount - 1) * 0.1);
Speed = defSpeed;
rotSpeed = 0.1;
Width = 50;
Height = 50;
myMc = _root.attachMovie("boss_fly", "boss_fly_" + ID, _root.getNextHighestDepth());
myMc._x = posX;
myMc._y = posY;
Score = _root.StageCount * 100;
ShotChageCountMax = 70 - (_root.StageCount - 1);
if (ShotChageCountMax < 20) {
ShotChageCountMax = 20;
}
ShotChageFlag = false;
ShotChageCount = 0;
thinkTimer_Max = 0;
ShotCount = 1 + (_root.StageCount * 0.5);
if (ShotCount > 6) {
ShotCount = 10;
}
BarrierTimer = 0;
BarrierTimerMax = 100;
dmgFlag = false;
dmgTimer = 0;
dmgTimerMax = 60;
hideFlag = false;
hideTimer = 0;
hideTimerMax = 30;
}
function hitAfterProc() {
myMc._xscale = (myMc._yscale = 100);
_root.setRGB2(0, 0, 0, myMc);
Speed = defSpeed;
}
function refresh() {
if (!dedFlag) {
if (dmgFlag) {
if (dmgTimer < dmgTimerMax) {
dmgTimer++;
myMc._alpha = ((dmgTimerMax - dmgTimer) / dmgTimerMax) * 100;
myMc._x = posX + (Math.random() * (dmgTimerMax - dmgTimer));
myMc._y = posY + (Math.random() * (dmgTimerMax - dmgTimer));
if (dmgTimer == dmgTimerMax) {
dmgFlag = false;
dmgTimer = 0;
hideFlag = true;
myMc._visible = false;
_root.setRGB2(0, 0, 0, myMc);
}
}
return(undefined);
}
if (hideFlag) {
if (hideTimer < hideTimerMax) {
hideTimer++;
if (hideTimer == hideTimerMax) {
hideFlag = false;
hideTimer = 0;
posX = 50 + ((Math.random() * Stage.width) - 100);
posY = 50 + ((Math.random() * Stage.height) - 100);
ModeID = 3;
thinkTimer = 0;
ShotChageCount = ShotChageCountMax - 30;
}
}
return(undefined);
}
if (Barrier) {
if (BarrierTimer < BarrierTimerMax) {
BarrierTimer++;
if (myMc._visible) {
myMc._visible = false;
} else {
myMc._visible = true;
}
if (BarrierTimer == BarrierTimerMax) {
Barrier = false;
BarrierTimer = 0;
myMc._visible = true;
}
}
}
thinkTimer++;
if (thinkTimer > thinkTimer_Max) {
thinkTimer = 0;
thinkTimer_Max = 50 + (Math.random() * 50);
ModeID = Math.floor(Math.random() * 5);
}
if (ModeID == 1) {
rad = rad + rotSpeed;
} else if (ModeID == 2) {
rad = rad - rotSpeed;
} else if (ModeID == 3) {
if (!ShotChageFlag) {
ShotChageFlag = true;
_root.SoundObj.ShotCharge.start();
thinkTimer = 0;
ModeID = 5;
}
}
if (ShotChageFlag) {
Speed = 0;
ShotChageCount++;
myMc._xscale = (50 + ShotChageCount) + (Math.random() * 50);
myMc._yscale = (50 + ShotChageCount) + (Math.random() * 50);
_root.setRGB2(-255 + (Math.random() * 510), -255 + (Math.random() * 510), ShotChageCount * -2, myMc);
if (ShotChageCount > ShotChageCountMax) {
ShotProc(ShotCount);
}
}
} else {
SpeedY = SpeedY - 0.5;
posY = posY - SpeedY;
}
StageCollision();
TransformGraphic();
}
function hit() {
super.hit();
if (hitpoint > 0) {
Barrier = true;
dmgFlag = true;
_root.setRGB2(-100, -100, 100, myMc);
}
}
function StageCollision() {
if (posX < 0) {
posX = posX + 10;
StageReflect({x:-1, y:0});
}
if (Stage.width < posX) {
posX = posX - 10;
StageReflect({x:1, y:0});
}
if ((posY + posZ) < _root.posYTop) {
posY = posY + 10;
StageReflect({x:0, y:-1});
if (dedFlag) {
SpeedY = SpeedY * -0.7;
}
}
if (_root.posYZero < posY) {
posY = posY - 10;
StageReflect({x:0, y:1});
checkCombo();
if (SmashFlag) {
_root.SoundObj.Smash_Remove.start();
removeFly();
} else if (dedFlag) {
BounceCount--;
SpeedY = SpeedY * -0.5;
myMc._alpha = (myShade._alpha = 20);
if (BounceCount < 0) {
removeFly();
}
_root.SoundObj.Bounce.start();
}
}
}
function ShotProc(inCount) {
ShotChageFlag = false;
ShotChageCount = 0;
Speed = defSpeed;
myMc._yscale = (myMc._xscale = 100);
_root.setRGB2(0, 50, 0, myMc);
var _local6 = 180;
if (inCount > 5) {
_local6 = 360;
}
var _local7 = (Math.atan2(_root.Flyswatter._y - posY, _root.Flyswatter._x - posX) / Math.PI) * 180;
_local7 = _local7 - (((_local6 / inCount) * (inCount - 1)) / 2);
var _local3 = 0;
while (_local3 < inCount) {
var _local4 = new as.Missile_fly(this);
_local4.myMc._rotation = _local7 + ((_local6 / inCount) * _local3);
_root.MissileList.push(_local4);
_local3++;
}
_root.SoundObj.FlyShot.start();
}
}
Symbol 298 MovieClip [__Packages.as.openning_fly] Frame 0
class as.openning_fly
{
var ID, iStage, SpeedY, addSpeedY, posX, posY, rad, Speed, rotSpeed, myMc, DownFlag, defRotation, DownRadSpeed, DownRad, lifeNum, lifeTimer;
function openning_fly (inID, inStage) {
ID = inID;
iStage = inStage;
SpeedY = 10 + (Math.random() * 10);
addSpeedY = 0.5;
posX = Math.random() * Stage.width;
posY = 200 + (Math.random() * 200);
rad = Math.random() * 3.14;
Speed = 2;
rotSpeed = 0.1;
myMc = iStage.attachMovie("defualtFly", "defualtFly_" + ID, iStage.getNextHighestDepth());
myMc._x = posX;
myMc._y = posY;
myMc._rotation = Math.random() * 360;
DownFlag = false;
defRotation = myMc._rotation;
DownRadSpeed = 2;
DownRad = 0;
lifeNum = 0;
lifeTimer = 0;
}
function refresh() {
SpeedY = SpeedY - addSpeedY;
posY = posY - SpeedY;
if (DownFlag) {
DownRadSpeed = DownRadSpeed * 0.95;
DownRad = DownRad + DownRadSpeed;
myMc._rotation = defRotation + (Math.sin(DownRad) * 10);
}
if (myMc.hitTest(iStage._xmouse, iStage._ymouse, false)) {
SpeedY = Math.random() * 10;
Speed = SpeedY;
lifeTimer = 50 + Math.floor(Math.random() * 100);
myMc.play();
myMc._rotation = 0;
defRotation = myMc._rotation;
}
lifeTimer--;
if ((0 < lifeTimer) && (lifeTimer < 95)) {
if (10 < lifeTimer) {
lifeNum++;
} else {
lifeNum--;
}
if (lifeNum > 60) {
lifeNum = 60;
}
SpeedY = (Math.random() * lifeNum) * 0.1;
Speed = (Math.random() * lifeNum) * 0.1;
rad = rad + (lifeNum * (-1 + (Math.random() * 2)));
myMc._rotation = myMc._rotation + (-5 + (Math.random() * 10));
defRotation = myMc._rotation;
if (lifeTimer == 0) {
myMc.stop();
lifeNum = 0;
myMc._rotation = 180;
defRotation = myMc._rotation;
}
} else if (Math.random() < 0.001) {
myMc.gotoAndStop(Math.floor(1 + (Math.random() * 3)));
SpeedY = Math.random() * 2;
Speed = SpeedY;
}
StageCollision();
TransformGraphic();
}
function StageCollision() {
if (posX < 0) {
posX = posX + 10;
StageReflect({x:-1, y:0});
}
if (Stage.width < posX) {
posX = posX - 10;
StageReflect({x:1, y:0});
}
if (posY < 0) {
posY = posY + 10;
StageReflect({x:0, y:-1});
SpeedY = SpeedY * -0.7;
}
if ((Stage.height - 50) < posY) {
posY = Stage.height - 50;
StageReflect({x:0, y:1});
SpeedY = SpeedY * -0.5;
Speed = Speed * 0.9;
if (0 < lifeTimer) {
} else {
myMc.stop();
}
DownFlag = true;
if (Math.abs(SpeedY) > 3) {
myMc._rotation = Math.random() * 360;
defRotation = myMc._rotation;
}
}
}
function StageReflect(nor) {
var _local3 = {x:Math.cos(rad), y:Math.sin(rad)};
var _local4 = (-((nor.x * _local3.x) + (nor.y * _local3.y))) / ((nor.x * nor.x) + (nor.y * nor.y));
rad = Math.atan2(_local3.y + ((_local4 * nor.y) * 2), _local3.x + ((_local4 * nor.x) * 2));
}
function TransformGraphic() {
var _local3 = Math.cos(rad);
var _local2 = Math.sin(rad);
posX = posX + (_local3 * Speed);
posY = posY + (_local2 * Speed);
myMc._x = posX;
myMc._y = posY;
}
}
Symbol 299 MovieClip [__Packages.as.Music] Frame 0
class as.Music extends MovieClip
{
var MusicObj, createEmptyMovieClip, getNextHighestDepth, OldSound, Selection, MusicStr;
function Music (inVolMax) {
super();
MusicObj = new Object();
if (inVolMax) {
VOL_MAX = inVolMax;
}
}
function addMusic(inMusic) {
var _local3 = inMusic;
if (inMusic.indexOf(".") > 0) {
_local3 = inMusic.substr(0, inMusic.indexOf("."));
}
var _local4 = createEmptyMovieClip(_local3, getNextHighestDepth());
MusicObj[inMusic] = new Sound(_local4);
MusicObj[inMusic].attachSound(inMusic);
MusicObj[inMusic].setVolume(0);
}
function musicStart(inMusic, inRate) {
OldSound.stop();
OldSound = Selection;
VOL2 = VOL1;
VOL1 = 0;
Selection = MusicObj[inMusic];
Selection.start(0, 999999);
RATE1 = inRate;
trace(inMusic);
MusicStr = inMusic;
}
function musicStop(inRate) {
musicStart("dummy", inRate);
}
function onEnterFrame() {
VOL1 = VOL1 + ((VOL_MAX - VOL1) * RATE1);
Selection.setVolume(VOL1);
if (VOL2 < 2) {
if (VOL2 != 0) {
OldSound.stop();
}
VOL2 = 0;
} else {
VOL2 = VOL2 + ((-VOL2) * RATE1);
OldSound.setVolume(VOL2);
}
}
var VOL_MAX = 20;
var VOL1 = 0;
var VOL2 = 0;
var RATE1 = 0;
}
Symbol 223 MovieClip Frame 1
stop();
if (_root.StageCount) {
var count = _root.StageCount;
while (count > this._totalframes) {
count = count - this._totalframes;
}
this.gotoAndStop(count);
trace((count + " / ") + this._totalframes);
} else {
this.gotoAndStop(1);
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
play();
Symbol 225 MovieClip Frame 9
gotoAndStop (1);
Symbol 225 MovieClip Frame 10
play();
Symbol 225 MovieClip Frame 19
_root.SoundObj.Smash.start();
Symbol 225 MovieClip Frame 31
gotoAndStop (1);
Symbol 225 MovieClip Frame 32
play();
Symbol 225 MovieClip Frame 96
_root.mouseMoveActive = true;
gotoAndStop (1);
Symbol 225 MovieClip Frame 97
play();
Symbol 225 MovieClip Frame 123
gotoAndStop (1);
Symbol 225 MovieClip Frame 124
play();
Symbol 225 MovieClip Frame 150
gotoAndStop (1);
Symbol 237 MovieClip Frame 1
this.stop();
this.timer = 0;
this.onEnterFrame = function () {
this.timer++;
if (this.timer > this.timerMax) {
this.play();
delete this.onEnterFrame;
}
};
Symbol 237 MovieClip Frame 11
this.stop();
Symbol 240 Button
on (release) {
if (targetPath(_root.MsgBoxWindow)) {
return(undefined);
}
trace("sendMsg");
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
if (result_lv.result == 1) {
_root.gotoAndStop("Ranking");
_root.MsgBoxWindow.removeMovieClip();
_root.GameOverMc.removeMovieClip();
} else if (result_lv.result == 0) {
_root.MsgBoxWindow.msgStr = "Error Ranking Server DB. Please click Close Button and contact Webmaster.";
} else if (result_lv.result == -1) {
_root.MsgBoxWindow.msgStr = "Error Ranking Server PHP. Please click Close Button and contact Webmaster.";
} else if (result_lv.result == -2) {
_root.MsgBoxWindow.msgStr = "The error occurs by the server response. The cause is a part of the encryption. ";
} else {
_root.MsgBoxWindow.msgStr = "Error connecting to server. or Undefined server error. Click Close Button Retry!";
}
} else {
_root.MsgBoxWindow.msgStr = "Error connecting to server. Click Close Button Retry!";
}
if (result_lv.result != 1) {
_root.setRGB2(50, -50, -50, _root.MsgBoxWindow.progress_bar);
var _local2 = _root.MsgBoxWindow.attachMovie("defualtButton", "defualtButton", _root.MsgBoxWindow.getNextHighestDepth());
_local2._y = 50;
_local2.label = "Close";
_local2.bt.onRelease = function () {
_root.MsgBoxWindow.removeMovieClip();
};
}
};
var send_lv = new LoadVars();
send_lv.UserName = this.UserName.text;
send_lv.Score = _root.Score;
send_lv.Stage = _root.StageCount;
send_lv.version = _root.version;
send_lv.ComboMax = _root.GameComboMax;
send_lv.timestamp = new Date().getTime();
send_lv.crypt = crypt((((send_lv.UserName + ":") + send_lv.Score) + ":") + send_lv.timestamp, 2);
send_lv.sendAndLoad(_root.SITE_URL + "/php/sendScore.php", result_lv, "POST");
_root.myRankTimeStamp = send_lv.timestamp;
var MsgBoxWindow = _root.attachMovie("MsgBoxWindow", "MsgBoxWindow", _root.getNextHighestDepth());
_root.setRGB2(-50, -50, 50, _root.MsgBoxWindow.progress_bar);
MsgBoxWindow.titleStr = "Conecting Server";
MsgBoxWindow.msgStr = "Please Wait. Send Score to Ranking Server.";
var sObj = SharedObject.getLocal("UserData");
sObj.data.Name = this.UserName.text;
sObj.data.Score = _root.Score;
sObj.data.StageCount = _root.StageCount;
sObj.data.timestamp = new Date().getTime();
sObj.flush();
}
Symbol 245 Button
on (release) {
if (targetPath(_root.MsgBoxWindow)) {
return(undefined);
}
_root.deleteAllGameObject();
_root.gotoAndStop("Start");
this.removeMovieClip();
}
Symbol 251 MovieClip Frame 1
function crypt(inStr, inOffset) {
var _local4 = "";
var _local3 = unescape(inStr);
var _local2 = 0;
while (_local2 < _local3.length) {
var _local1 = _local3.charCodeAt(_local2);
_local1 = _local1 - (inOffset + _local2);
while (_local1 < 48) {
_local1 = 123 + (_local1 - 48);
}
while (_local1 > 122) {
_local1 = 47 + (_local1 - 122);
}
_local4 = _local4 + String.fromCharCode(_local1);
_local2++;
}
return(_local4);
}
var MostDepthMc = _root.getInstanceAtDepth(_root.getNextHighestDepth() - 1);
this.swapDepths(MostDepthMc);
var ScoreDisplay = _root.ScoreDisplay;
var GameComboMax = _root.GameComboMax;
Selection.setFocus("_root.GameOverMc.UserName");
Selection.setSelection(0, 0);
var sObj = SharedObject.getLocal("UserData");
if (sObj.data.Name) {
this.UserName.text = sObj.data.Name;
}
this.onEnterFrame = function () {
if (System.capabilities.hasIME) {
System.IME.setEnabled(false);
}
};
Instance of Symbol 237 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this.timerMax = 10;
}
Instance of Symbol 237 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this.timerMax = 30;
}
Symbol 251 MovieClip Frame 35
stop();
Instance of Symbol 262 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
var watter = this._parent.watter;
this._x = watter._x;
}
Symbol 266 MovieClip Frame 99
stop();
Symbol 275 MovieClip Frame 1
var Timer = 0;
var TimerMax = 2000;
var startTimer = 100;
var DisplayComboCount = 0;
var DisplayStageScore = 0;
var DisplayScore = 0;
var tempComboCount = 0;
var StageCount = _root.StageCount;
_root.MusicObj.musicStart("Clear.mp3", 0.1);
this.onEnterFrame = function () {
Timer++;
if (Timer > startTimer) {
if (DisplayComboCount < _root.StageComboMax) {
tempComboCount = tempComboCount + ((_root.StageComboMax - tempComboCount) * 0.03);
if (DisplayComboCount != Math.floor(tempComboCount + 0.5)) {
DisplayComboCount = Math.floor(tempComboCount + 0.5);
DisplayComboCount = _root.NumbertoString(DisplayComboCount);
_root.SoundObj.MultiCombo.start();
}
}
}
if (Timer == (startTimer + 200)) {
DisplayStageScore = _root.StageCount * 1000;
DisplayStageScore = _root.NumbertoString(DisplayStageScore);
_root.SoundObj.MultiCombo.start();
}
if (Timer == (startTimer + 300)) {
DisplayScore = _root.StageComboMax * (_root.StageCount * 1000);
DisplayScore = _root.NumbertoString(DisplayScore);
_root.SoundObj.MultiCombo.start();
_root.addScore(_root.StageComboMax * (_root.StageCount * 1000), null);
}
if (Timer == (startTimer + 350)) {
this.StageClearClickMc._visible = true;
this.StageClearClickMc.onRelease = function () {
_root.resetGame();
_root.MusicObj.musicStop(0.1);
_root.gotoAndStop("Play");
};
}
if (Timer > TimerMax) {
_root.resetGame();
_root.MusicObj.musicStop(0.1);
_root.gotoAndStop("Play");
}
};
Instance of Symbol 256 MovieClip "StageClearClickMc" in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 281 Button
on (release) {
_root.MusicObj.musicStop(0.1);
_root.GotoStartLabel();
}
Symbol 288 Button
on (release) {
_root.rankingMc.removeMovieClip();
_root.RefreshRankingPage();
}