Frame 1
fscommand ("fullscreen", false);
fscommand ("allowscale", false);
Frame 4
ClipMask = _root.createEmptyMovieClip("ScreenMask", 50000);
ClipMask.beginFill(16777215, 100);
ClipMask.lineStyle(0, 16777215, 100);
ClipMask.moveTo(0, 0);
ClipMask.lineTo(640, 0);
ClipMask.lineTo(640, 480);
ClipMask.lineTo(0, 480);
ClipMask.lineTo(0, 0);
ClipMask.endFill();
ClipMask._visible = false;
_root.setMask(ClipMask);
Frame 5
AutoTutorial = false;
BorderY = 238;
LayerIDSize = 1000;
BackBulletLayer = 0;
CatsFallLayer = 1 * LayerIDSize;
WallLayer = 2 * LayerIDSize;
SplashLayer = 3 * LayerIDSize;
CatsMoveLayer = 4 * LayerIDSize;
CatsSitLayer = 5 * LayerIDSize;
EventLayer = 6 * LayerIDSize;
FrontBulletLayer = 7 * LayerIDSize;
PowerLayer = 8 * LayerIDSize;
SlingLayer = PowerLayer + 5;
StatLayer = SlingLayer + 5;
ArrowLayer = StatLayer + 5;
HelpLayer = ArrowLayer + 5;
MessageLayer = HelpLayer + 1000;
ThrowTimeMax = 30;
Started = false;
HelpMode = false;
WaitClick = 0;
HitCombo = 0;
TimeCombo = 0;
HelpInterrupt = 0;
HelpMiss = 0;
HelpStun = 0;
HelpFear = 0;
HelpFall = 0;
HelpScream = 0;
BeginMode = true;
AboutMode = false;
cMessage = function () {
this._visible = false;
this.Init = function (mess) {
this.GameMessage = mess;
this._x = 320;
this._y = -100;
this.dy = 20;
this.BounceCount = 3;
this._visible = true;
stop();
};
this.onEnterFrame = function () {
if (WaitClick < 3) {
if (this.BounceCount > 0) {
this.dy = this.dy + 3;
if (this._y > 370) {
this.dy = -Math.abs(this.dy * 0.3);
this._y = 370;
this.BounceCount--;
if (this.BounceCount == 0) {
this.dy = 5;
WaitClick = 1;
}
}
this._y = this._y + this.dy;
}
} else {
this.dy = this.dy + 1;
this._y = this._y + this.dy;
if (this._y > 500) {
WaitClick = 0;
play();
this.removeMovieClip();
}
}
};
};
cMessage.prototype = new MovieClip();
Object.registerClass("GameMessage", cMessage);
Object.registerClass("HelpMessage", cMessage);
cTip = function () {
this._visible = false;
this.Init = function (x, y, mess, time) {
this._x = x;
this._y = -50;
this.TargetY = y;
this.Max = time;
this.Count = 0;
this.EventText = mess;
this.dy = 20;
this.BounceCount = 3;
this.Mode = 0;
this._visible = true;
};
this.onEnterFrame = function () {
if (this.Mode == 0) {
this.dy = this.dy + 3;
if (this._y > this.TargetY) {
this.dy = -Math.abs(this.dy * 0.3);
this._y = this.TargetY;
this.BounceCount--;
if (this.BounceCount == 0) {
this.dy = 5;
this.Mode = 1;
}
}
this._y = this._y + this.dy;
} else if (this.Mode == 1) {
if (this.Max > 0) {
this.Count++;
if (this.Count >= this.Max) {
this.Fall();
}
}
} else {
this.dy = this.dy + 1;
this._y = this._y + this.dy;
if (this._y > 500) {
this.removeMovieClip();
}
}
};
this.Fall = function () {
this.Mode = 2;
};
};
cTip.prototype = new MovieClip();
Object.registerClass("HelpTips", cTip);
cLevel = function () {
this.Init = function (cat_num, sit_num, c_sit_time, d_sit_time, move_num, c_scream_time, d_scream_time, scream_num) {
this.CatNum = cat_num;
this.SitNum = sit_num;
this.ConstSitTime = c_sit_time;
this.DeltaSitTime = d_sit_time;
this.MoveNum = move_num;
this.ConstScreamTime = c_scream_time;
this.DeltaScreamTime = d_scream_time;
this.ScreamNum = scream_num;
};
};
LevelParam = new cLevel();
LevelParam.Init(10, 5, 150, 0, 3, 30, 0, 3);
this.MakeLevel = function () {
var num;
switch (GameLevel) {
case 0 :
LevelParam.Init(2, 2, 300, 150, 0, 60, 60, 0);
return;
case 1 :
LevelParam.Init(3, 3, 150, 150, 0, 60, 60, 0);
return;
case 2 :
LevelParam.Init(3, 3, 60, 60, 0, 60, 0, 0);
return;
case 3 :
LevelParam.Init(6, 3, 150, 150, 2, 40, 40, 0);
return;
case 4 :
LevelParam.Init(8, 4, 150, 150, 2, 40, 40, 0);
return;
case 5 :
LevelParam.Init(10, 5, 150, 150, 3, 30, 30, 2);
return;
case 6 :
LevelParam.Init(10, 5, 150, 150, 3, 30, 0, 3);
return;
case 7 :
LevelParam.Init(15, 5, 150, 150, 0, 30, 0, 0);
return;
default :
num = 5 + random(2);
LevelParam.Init(15 + (2 * (GameLevel - 7)), num, 90 + random(100), random(150), random(num), 20 + random(15), 15 + random(45), random(num));
}
};
this.findFreeSit = function () {
var id = -1;
var max = 0;
var i = 0;
while (i < SitPlaceNum) {
if (SitList[i].ID == -1) {
var d = (random(100) + 1);
if (d > max) {
id = i;
max = d;
}
}
i++;
}
return(id);
};
this.ScreamQuant = function () {
if (ScreamCount > 0) {
ScreamCount--;
} else {
var max = 0;
var ind = -1;
var sit_num = 0;
var i = 0;
while (i < SitPlaceNum) {
if (SitList[i].ID >= 0) {
if (eval ("c" + SitList[i].ID).canScream()) {
var d = (random(100) + 1);
if (d > max) {
ind = SitList[i].ID;
max = d;
}
sit_num++;
} else if (eval ("c" + SitList[i].ID).isSit()) {
sit_num++;
}
}
i++;
}
if (((sit_num >= LevelParam.ScreamNum) || (CatCount <= 0)) && (ind >= 0)) {
eval ("c" + ind).startScream();
}
ScreamCount = LevelParam.ConstScreamTime + random(LevelParam.DeltaScreamTime);
}
};
this.SitQuant = function () {
if (SitCount > 0) {
SitCount--;
} else {
var sit_free = 0;
var sit_cur = 0;
var sit_num = 0;
var i;
i = 0;
while (i < SitPlaceNum) {
if (SitList[i].ID >= 0) {
sit_free++;
if (eval ("c" + SitList[i].ID).canMove()) {
sit_cur++;
sit_num++;
} else if (eval ("c" + SitList[i].ID).isSit()) {
sit_num++;
}
}
i++;
}
if (((sit_num >= LevelParam.MoveNum) || (CatCount <= 0)) && (sit_cur > 0)) {
if ((sit_free >= SitPlaceNum) || ((sit_cur > 2) && (random(100) < 25))) {
var min = 1000;
var max = 0;
var ind0 = -1;
var ind1 = -1;
i = 0;
while (i < SitPlaceNum) {
if ((SitList[i].ID >= 0) && (eval ("c" + SitList[i].ID).canMove())) {
var d = (random(100) + 1);
if (d < min) {
min = d;
ind0 = i;
}
if (d > max) {
max = d;
ind1 = i;
}
}
i++;
}
if (ind0 != ind1) {
var id0 = SitList[ind0].ID;
var id1 = SitList[ind1].ID;
eval ("c" + id0).startMove();
eval ("c" + id1).startMove();
eval ("c" + id0).setSit(ind1);
eval ("c" + id1).setSit(ind0);
}
} else {
var max0 = 0;
var max1 = 0;
var ind0 = 0;
var ind1 = 0;
i = 0;
while (i < SitPlaceNum) {
var d = (random(100) + 1);
if (SitList[i].ID >= 0) {
if (eval ("c" + SitList[i].ID).canMove() && (d > max0)) {
max0 = d;
ind0 = i;
}
} else if (d > max1) {
max1 = d;
ind1 = i;
}
i++;
}
if ((ind0 != -1) && (ind1 != -1)) {
var id0 = SitList[ind0].ID;
eval ("c" + id0).startMove();
eval ("c" + id0).setSit(ind1);
}
}
}
SitCount = LevelParam.ConstSitTime + random(LevelParam.DeltaSitTime);
}
};
this.CreateQuant = function () {
if (CreateCount > 0) {
CreateCount--;
} else if ((CatsNum < LevelParam.SitNum) && (CatCount > 0)) {
var ind = this.findFreeSit();
if (ind != -1) {
var t = this.attachMovie("c0", "c" + ObjectID, ObjectID + CatsMoveLayer);
if (random(100) < 50) {
t.initMoveCat(ObjectID, 1);
} else {
t.initMoveCat(ObjectID, -1);
}
t.setSit(ind);
CatsNum++;
CatCount--;
ObjectID = nextObjectID(ObjectID);
}
CreateCount = 30 + random(30);
}
};
this.menuPress = function (n) {
if ((((n == "PlayButton") || (n == "MoreButton")) || (n == "HelpButton")) || (n == "About0")) {
TitleFear.Active = true;
this.PressSound = new Sound();
this.PressSound.attachSound("cathiss");
this.PressSound.setVolume(50);
this.PressSound.start();
}
if ((((n == "AgainButton") || (n == "MoreButton1")) || (n == "HelpButton1")) || (n == "About1")) {
FinalMyay.Active = true;
this.PressSound = new Sound();
this.PressSound.attachSound("mur" + random(3));
this.PressSound.setVolume(50);
this.PressSound.start();
}
if (n == "ReturnButton") {
this.PressSound = new Sound();
this.PressSound.attachSound("cathiss");
this.PressSound.setVolume(50);
this.PressSound.start();
}
};
this.menuRelease = function (n) {
if (((n == "PlayButton") || (n == "MoreButton")) || (n == "About0")) {
TitleFear.Active = false;
}
if (((n == "AgainButton") || (n == "MoreButton1")) || (n == "About1")) {
FinalMyay.Active = false;
}
if ((n == "PlayButton") || (n == "AgainButton")) {
InitGame();
play();
}
if ((n == "MoreButton1") || (n == "MoreButton")) {
getURL ("http://www.realore.com/", "_blank");
}
if ((n == "HelpButton") || (n == "HelpButton1")) {
InitGame();
HelpMode = true;
play();
}
if ((n == "About0") || (n == "About1")) {
AboutMode = true;
play();
}
if (n == "ReturnButton") {
play();
}
};
this.menuNormal = function (n) {
if ((((n == "PlayButton") || (n == "MoreButton")) || (n == "HelpButton")) || (n == "About0")) {
TitleFear.Active = false;
}
if ((((n == "AgainButton") || (n == "HelpButton1")) || (n == "MoreButton1")) || (n == "About1")) {
FinalMyay.Active = false;
}
};
this.menuOver = function (n) {
this.PressSound = new Sound();
this.PressSound.attachSound("toggle");
this.PressSound.setVolume(50);
this.PressSound.start();
if ((((n == "AgainButton") || (n == "HelpButton1")) || (n == "MoreButton1")) || (n == "About1")) {
FinalMyay.Active = false;
return(undefined);
}
if (n == "PlayButton") {
TitleFear._xscale = -100;
TitleFear.Active = false;
return(undefined);
}
if (((n == "MoreButton") || (n == "HelpButton")) || (n == "About0")) {
TitleFear._xscale = 100;
TitleFear.Active = false;
return(undefined);
}
};
SitPlace = function (tx) {
this.x = tx;
this.ID = -1;
};
SitPlaceNum = 6;
SitList = new Array();
var i = 0;
while (i < SitPlaceNum) {
SitList[i] = new SitPlace(70 + ((i * 500) / SitPlaceNum));
i++;
}
sign = function (v) {
if (v > 0) {
return(1);
}
if (v < 0) {
return(-1);
}
return(0);
};
gr2Rad = function (a) {
return((3.14 * a) / 180);
};
Object.prototype.isCat = function () {
return(false);
};
Object.prototype.isBullet = function () {
return(false);
};
cCat = function () {
this.Direction = 0;
this.Collision = 0;
this.SitFlag = false;
this.SitID = -1;
this.MoveEnable = true;
this.Locked = false;
this.DamageLevel = 0;
this.MurkCount = random(5);
this.Alive = true;
this.HoldEnable = false;
this.ScreamEnable = false;
this.ScreamRequest = false;
this.MyaySound = new Sound();
this.FishHit = true;
this._visible = false;
this.initMoveCat = function (id, dir) {
this.ID = id;
if (dir > 0) {
this.Direction = 2.5 + (Math.random() * 0.5);
this._x = -60;
this._xscale = 120 - (((this.Direction - 2.5) * 40) / 0.5);
} else if (dir < 0) {
this.Direction = -(2.5 + (Math.random() * 0.5));
this._x = 700;
this._xscale = -120 - (((this.Direction + 2.5) * 40) / 0.5);
}
this._yscale = Math.abs(this._xscale);
this._y = BorderY;
this.gotoAndPlay("move");
this.Locked = true;
this._visible = true;
};
this.initSitCat = function (id, dir, sit_id) {
this.ID = id;
this.SitID = sit_id;
SitList[this.SitID].ID = this.ID;
this.SitFlag = true;
this.HoldEnable = true;
this.MoveEnable = false;
if (dir > 0) {
this.Direction = 2.5 + (Math.random() * 0.5);
this._xscale = 120 - (((this.Direction - 2.5) * 40) / 0.5);
} else if (dir < 0) {
this.Direction = -(2.5 + (Math.random() * 0.5));
this._xscale = -120 - (((this.Direction + 2.5) * 40) / 0.5);
}
this._yscale = Math.abs(this._xscale);
this._x = SitList[this.SitID].x;
this._y = BorderY;
this.gotoAndPlay("hold");
this.Locked = true;
this._visible = true;
};
this.canScream = function () {
if (((this.HoldEnable == true) && (this.ScreamEnable == false)) && (this.ScreamRequest == false)) {
return(true);
}
return(false);
};
this.canMove = function () {
if (((this.HoldEnable == true) && (this.ScreamEnable == false)) && (this.ScreamRequest == false)) {
return(true);
}
return(false);
};
this.isSit = function () {
return(this.HoldEnable);
};
this.setDirection = function (dir) {
this.Direction = dir;
if (this.Direction > 0) {
this._xscale = 120 - (((this.Direction - 2.5) * 40) / 0.5);
} else {
this._xscale = -120 - (((this.Direction + 2.5) * 40) / 0.5);
}
};
this.startScream = function () {
this.ScreamRequest = true;
};
this.startMove = function () {
this.SitFlag = false;
SitList[this.SitID].ID = -1;
this.HoldEnable = false;
this.gotoAndPlay("sit_i");
this.Locked = true;
this.swapDepths(this.ID + CatsMoveLayer);
this.SitID = -1;
};
this.setSit = function (id) {
this.SitID = id;
SitList[this.SitID].ID = this.ID;
if (this.Direction > 0) {
if ((SitList[this.SitID].x - this._x) < 0) {
this.setDirection(-this.Direction);
}
} else if ((SitList[this.SitID].x - this._x) > 0) {
this.setDirection(-this.Direction);
}
};
this.onEnterFrame = function () {
this.Locked = false;
if (this.DamageLevel < this.Collision) {
this.DamageLevel = this.Collision;
this.Locked = true;
if (this.DamageLevel == 2) {
this.gotoAndPlay("fall");
var delta_score;
if (this.FishHit) {
delta_score = 7;
} else {
delta_score = 21;
}
var tmp = getTimer();
if ((tmp - TimeCombo) < 1000) {
delta_score = delta_score + ((1000 - tmp) + TimeCombo);
_root.createEvent("Quick\n" + ((1000 - tmp) + TimeCombo), this._x + 60, this._y - 120, "EventCombo");
}
TimeCombo = tmp;
HitCombo++;
if (HitCombo > 1) {
delta_score = delta_score * HitCombo;
_root.createEvent("Combo\nx " + HitCombo, this._x - 60, this._y - 120, "EventCombo");
}
if (GameLives < 6) {
tmp = Math.floor((GameScores + delta_score) / 2000) - Math.floor(GameScores / 2000);
if (tmp > 0) {
_root.createEvent("Meow\n " + tmp, this._x, this._y - 150, "EventCombo");
UpdateLives(tmp);
}
}
_root.createEvent("Happy\n" + delta_score, this._x, this._y - 100, "EventHappy");
UpdateScores(delta_score);
HelpFall++;
} else if (this.SitFlag == false) {
HelpFear++;
this.gotoAndPlay("fear");
} else {
HelpStun++;
if (this.ScreamEnable) {
HelpInterrupt++;
}
this.gotoAndPlay("stun");
}
this.ScreamEnable = false;
this.HoldEnable = false;
}
this.Collision = 0;
if ((this.DamageLevel == 0) && (this.SitFlag == false)) {
if (this.MoveEnable == true) {
this._x = this._x + this.Direction;
if (this.Direction > 0) {
if (this._x > 700) {
this.Kill();
}
} else if (this._x < -60) {
this.Kill();
}
if ((this.SitID >= 0) && (Math.abs(SitList[this.SitID].x - this._x) < (5 + random(15)))) {
this.SitFlag = true;
var left = 0;
var right = 0;
if ((this.SitID > 0) && (SitList[this.SitID - 1].ID >= 0)) {
left = eval ("c" + SitList[this.SitID - 1].ID).Direction;
}
if ((this.SitID < (SitPlaceNum - 1)) && (SitList[this.SitID + 1].ID >= 0)) {
right = eval ("c" + SitList[this.SitID + 1].ID).Direction;
}
if ((sign(this.Direction) == sign(left)) || (sign(this.Direction) == sign(right))) {
SetDirection(-this.Direction);
}
this.gotoAndPlay("sit");
this.MoveEnable = false;
this.Locked = true;
this.swapDepths(this.ID + CatsSitLayer);
}
}
} else if (this.Alive == false) {
this.Kill();
}
};
this.Kill = function () {
if (this.SitID >= 0) {
SitList[this.SitID].ID = -1;
}
this.removeMovieClip();
CatsNum--;
CatCompleted--;
};
this.isCollision = function (x, y, p) {
if (this.hitTest(p)) {
if (this.ScreamEnable && (this.JawsTest.hitTest(p))) {
this.Collision = 2;
if (p.SplashFlag) {
this.FishHit = true;
} else {
this.FishHit = false;
}
return(2);
}
if (this.Collision < 1) {
this.Collision = 1;
}
return(1);
}
return(0);
};
this.playMyay = function () {
this.MyaySound.attachSound("myay_0" + random(6));
this.MyaySound.setVolume(25 + random(25));
this.MyaySound.start();
};
this.playMurk = function () {
this.MyaySound.attachSound("mur" + random(3));
this.MyaySound.setVolume(25 + random(25));
this.MyaySound.start();
};
this.isCat = function () {
return(true);
};
this.isBullet = function () {
return(false);
};
};
cCat.prototype = new MovieClip();
Object.registerClass("c0", cCat);
cBullet = function () {
this._visible = false;
this.startBullet = function (id, x, y, v, splash_flag) {
this.ID = id;
this.x0 = 320 + x;
this.y0 = 480 - y;
this._rotation = random(360);
this.da = 20 + random(20);
var a = gr2Rad(30);
var f = (1.5 + ((9 * v) / ThrowTimeMax));
this.dy = (Math.sin(a) * f) * 2;
this.dz = Math.cos(a) * f;
this.dx = 0;
this.mx = 0;
this.my = 0;
this.mz = 0;
this.Arrival = false;
this.pmz = this.mz;
this.SplashFlag = splash_flag;
this._x = this.x0 + this.mx;
this._y = this.y0 - (this.my / ((this.mz * 0.01) + 0.1));
this._xscale = 50 / ((this.mz * 0.025) + 1);
this._yscale = this._xscale;
this._visible = true;
this.ComboFlag = true;
};
this.onEnterFrame = function () {
if (this.Arrival == true) {
if (this.SplashFlag) {
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
this.removeMovieClip();
}
} else {
this._y = this._y + this.dy;
this._rotation = this.mx + (45 * Math.sin(this.my));
this.my = this.my + 0.157;
this.dy = this.dy + 0.3;
if (this._y > 500) {
this.removeMovieClip();
}
}
} else {
this.pmz = this.mz;
this.mx = this.mx + this.dx;
this.my = this.my + this.dy;
this.mz = this.mz + this.dz;
this.dy = this.dy - 0.7;
this._x = this.x0 + this.mx;
this._y = this.y0 - (this.my / ((this.mz * 0.01) + 0.1));
this._xscale = 50 / ((this.mz * 0.025) + 1);
this._yscale = this._xscale;
this._rotation = this._rotation + this.da;
if ((this.mz > 60) && (this.pmz <= 60)) {
if (this._y > 270) {
if (this.SplashFlag) {
this.gotoAndStop("splash");
this._xscale = 100 - (Math.random() * 15);
this._yscale = 100 - (Math.random() * 15);
this._rotation = this._rotation + random(20);
this._alpha = 100;
} else {
this.dy = 0.05 + (Math.random() * 0.05);
this._xscale = this._xscale * 0.8;
this._yscale = this._xscale;
this.mx = this._rotation;
this.my = (Math.random() * 3.14) * 0.3;
}
this.Arrival = true;
HitCombo = 0;
this.ComboFlag = false;
HelpMiss++;
} else {
var coll = CollisionCat(this._x, this._y, this);
if (coll == 0) {
HelpMiss++;
if (this._y > 210) {
this.bounce();
this.BounceSound = new Sound();
this.BounceSound.attachSound("fish_miss");
this.BounceSound.start();
HitCombo = 0;
this.ComboFlag = false;
}
} else if (coll == 1) {
this.swapDepths(BackBulletLayer);
this.bounce();
HitCombo = 0;
this.ComboFlag = false;
} else if (coll == 2) {
this.removeMovieClip();
}
}
}
if ((this.mz > 80) && (this.pmz <= 80)) {
this.swapDepths(BackBulletLayer);
this.ComboFlag = false;
HitCombo = 0;
}
if (((this.ComboFlag == true) && (this._dy > 0)) && (this._y > 210)) {
this.ComboFlag = false;
HitCombo = 0;
}
if ((this.mz > 200) || (this._y > 500)) {
if (this.ComboFlag == true) {
HitCombo = 0;
}
this.removeMovieClip();
}
}
};
this.isCat = function () {
return(false);
};
this.isBullet = function () {
return(true);
};
this.bounce = function () {
this.dy = (Math.abs(dy) + 10) + (Math.random() * 5);
this.dx = 5 - (Math.random() * 10);
};
this.isCollision = function (x, y) {
return(0);
};
};
cBullet.prototype = new MovieClip();
Object.registerClass("b0", cBullet);
Object.registerClass("b1", cBullet);
cSling = function () {
this._visible = false;
this.Rubber = this.createEmptyMovieClip("Rubber", 1);
this.update = function () {
Power.gotoAndStop(1 + Math.round((99 * MouseCount) / ThrowTimeMax));
var tx = ((50 * MouseCount) / ThrowTimeMax);
var ty = tx;
var dx = ((60 * (320 - this._x)) / 320);
var dy = ((60 * (150 - this._y)) / 250);
this.Rubber.clear();
this.Rubber.lineStyle(0, 0, 100);
this.Rubber.beginFill(10396359, 100);
this.Rubber.moveTo(-67, 16);
this.Rubber.lineTo((-70 + dx) - tx, ((80 + dy) + ty) - (ty * 0.2));
this.Rubber.lineTo((-70 + dx) - tx, ((100 + dy) + ty) + (ty * 0.2));
this.Rubber.lineTo(-67, 26);
this.Rubber.lineTo(-67, 16);
this.Rubber.endFill();
this.Rubber.beginFill(10396359, 100);
this.Rubber.moveTo(67, 16);
this.Rubber.lineTo((70 + dx) + tx, ((80 + dy) + ty) - (ty * 0.2));
this.Rubber.lineTo((70 + dx) + tx, ((100 + dy) + ty) + (ty * 0.2));
this.Rubber.lineTo(67, 26);
this.Rubber.lineTo(67, 16);
this.Rubber.endFill();
};
this.init = function () {
this._visible = true;
};
this.finit = function () {
this._visible = false;
};
this.isCat = function () {
return(false);
};
this.isBullet = function () {
return(false);
};
};
cSling.prototype = new MovieClip();
Object.registerClass("Sling", cSling);
Sling = this.attachMovie("Sling", "sling0", SlingLayer);
Statistic = this.attachMovie("Statistic", "stat0", StatLayer);
Statistic._x = 0;
Statistic._y = 0;
Statistic._visible = false;
Power = this.attachMovie("Power", "power0", PowerLayer);
Power._x = 0;
Power._y = 480;
Power._visible = false;
WallBorder = this.attachMovie("WallBorder", "WallBorder", WallLayer);
WallBorder._x = 0;
WallBorder._y = 205;
WallBorder._visible = false;
this.InitGame = function () {
GameLives = 0;
GameScores = 0;
GameLevel = 0;
ForceMyay = false;
};
this.StartGame = function () {
MakeLevel();
WallBorder._visible = true;
var i = 0;
while (i < SitPlaceNum) {
SitList[i].ID = -1;
i++;
}
HitCombo = 0;
TimeCombo = 0;
CatsNum = 0;
ObjectID = 0;
BulletID = 0;
EventID = 0;
HelpID = 0;
DollarCount = 1 + random(2);
SitCount = LevelParam.ConstSitTime + LevelParam.random(DeltaSitTime);
ScreamCount = LevelParam.ConstScreamTime + LevelParam.random(DeltaScreamTime);
CreateCount = 0;
GameLives = 6;
UpdateScores(0);
Statistic.initLives();
Statistic._visible = true;
Power._visible = true;
HelpInterrupt = 0;
HelpMiss = 0;
HelpStun = 0;
HelpFear = 0;
HelpFall = 0;
HelpScream = 0;
if (HelpMode == false) {
CatCompleted = LevelParam.CatNum;
CatCount = LevelParam.CatNum;
var i = 0;
while (i < LevelParam.SitNum) {
ind = this.findFreeSit();
if (ind != -1) {
var t = this.attachMovie("c0", "c" + ObjectID, ObjectID + CatsSitLayer);
if (random(100) < 50) {
t.initSitCat(ObjectID, 1, ind);
} else {
t.initSitCat(ObjectID, -1, ind);
}
CatsNum++;
CatCount--;
ObjectID = nextObjectID(ObjectID);
}
i++;
}
} else {
CatCompleted = 2;
CatCount = 2;
var t = this.attachMovie("c0", "c" + ObjectID, ObjectID + CatsSitLayer);
if (random(100) < 50) {
t.initSitCat(ObjectID, 1, 3);
} else {
t.initSitCat(ObjectID, -1, 3);
}
CatsNum++;
CatCount--;
ObjectID = nextObjectID(ObjectID);
}
};
this.EndLevel = function () {
for (var i in this) {
if (this[i].isCat() || (this[i].isBullet())) {
this[i].removeMovieClip();
}
}
};
this.EndGame = function () {
EndLevel();
WallBorder._visible = false;
Statistic._visible = false;
Power._visible = false;
};
this.UpdateScores = function (d) {
GameScores = GameScores + d;
if (GameScores < 0) {
GameScores = 0;
}
Statistic.ScoresValue = "";
if (GameScores < 100000000) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 10000000) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 1000000) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 100000) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 10000) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 1000) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 100) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
if (GameScores < 10) {
Statistic.ScoresValue = Statistic.ScoresValue + "0";
} else {
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
return(undefined);
}
Statistic.ScoresValue = Statistic.ScoresValue + GameScores;
};
this.UpdateLives = function (d) {
GameLives = GameLives + d;
if (GameLives > 5) {
GameLives = 6;
}
Statistic.updateLives(GameLives - 1);
};
CollisionCat = function (x, y, p) {
var log = 0;
for (var i in this) {
var t = this[i].isCollision(x, y, p);
if (t > log) {
log = t;
}
}
return(log);
};
this.onMouseDown = function () {
MousePress = true;
if (Started == true) {
MouseCount++;
Sling.update();
}
if (WaitClick == 1) {
WaitClick = 2;
}
};
this.updateMousePosition = function (x, y) {
MouseX = x - 320;
MouseY = 480 - y;
if (MouseY > 400) {
MouseY = 400;
} else if (MouseY < 100) {
MouseY = 100;
}
if (MouseX > 320) {
MouseX = 320;
} else if (MouseX < -320) {
MouseX = -320;
}
Sling._x = 320 + MouseX;
Sling._y = 480 - MouseY;
Sling.update();
};
this.onMouseUp = function () {
MousePress = false;
if (Started == true) {
var t;
if (HelpMode == false) {
if (DollarCount > 0) {
t = this.attachMovie("b0", "b" + BulletID, BulletID + FrontBulletLayer);
t.startBullet(BulletID, MouseX, MouseY, MouseCount, true);
DollarCount--;
} else {
t = this.attachMovie("b1", "b" + BulletID, BulletID + FrontBulletLayer);
t.startBullet(BulletID, MouseX, MouseY, MouseCount, false);
DollarCount = 1 + random(2);
}
} else {
t = this.attachMovie("b0", "b" + BulletID, BulletID + FrontBulletLayer);
t.startBullet(BulletID, MouseX, MouseY, MouseCount, true);
}
playFishShot();
BulletID = nextObjectID(BulletID);
MouseCount = 0;
Sling.update();
}
if (WaitClick == 2) {
WaitClick = 3;
}
};
this.onMouseMove = function () {
if (Started == true) {
updateMousePosition(_xmouse, _ymouse);
}
};
this.nextObjectID = function (id) {
id++;
if (id >= LayerIDSize) {
id = 0;
}
return(id);
};
this.onEnterFrame = function () {
if (Started == true) {
if (HelpMode == false) {
this.ScreamQuant();
this.SitQuant();
this.CreateQuant();
if (MousePress) {
if (MouseCount < ThrowTimeMax) {
MouseCount++;
Sling.update();
}
}
if (CatCompleted <= 0) {
Sling.finit();
Started = false;
EndLevel();
GameLevel++;
Power.gotoAndStop(1);
gotoAndPlay (19);
} else if (GameLives <= 0) {
Sling.finit();
Started = false;
ForceMyay = true;
gotoAndPlay (32);
}
} else if (MousePress) {
if (MouseCount < ThrowTimeMax) {
MouseCount++;
Sling.update();
}
}
}
};
this.playFishShot = function () {
if (this.FishShotSound != undefined) {
delete this.FishShotSound;
}
this.FishShotSound = new Sound();
this.FishShotSound.attachSound("shot");
this.FishShotSound.start();
};
cEvent = function () {
this._visible = false;
this.cnt = 20;
this.onEnterFrame = function () {
this._y = this._y + this.dy;
this.dy = this.dy * 0.95;
if (this.cnt > 0) {
this.cnt--;
} else {
this.removeMovieClip();
}
};
this.isBullet = function () {
return(true);
};
};
cEvent.prototype = new MovieClip();
Object.registerClass("EventScream", cEvent);
Object.registerClass("EventHappy", cEvent);
Object.registerClass("EventCombo", cEvent);
this.createEvent = function (txt, x, y, name) {
temp_event = _root.attachMovie(name, "event" + EventID, EventLayer + EventID);
temp_event.EventText = txt;
temp_event._x = x;
temp_event._y = y;
temp_event.dy = -2;
temp_event._visible = true;
EventID = nextObjectID(EventID);
};
this.createTip = function (x, y, txt, time) {
temp_event = _root.attachMovie("HelpTips", "tip" + HelpID, HelpLayer + HelpID);
eval ("tip" + HelpID).Init(x, y, txt, time);
HelpID = nextObjectID(HelpID);
return(temp_event);
};
Frame 6
stop();
BeginMode = true;
TitleFear.Active = false;
TitleFear._xscale = -100;
TitleFear.gotoAndPlay("start");
PlayButton.ButtonText = "PLAY";
MoreButton.ButtonText = "MORE GAMES";
HelpButton.ButtonText = "TUTORIAL";
About0.ButtonText = "ABOUT";
Realore.onRelease = function () {
getURL ("http://www.realore.com/", "_blank");
};
Frame 18
if (HelpMode == true) {
gotoAndPlay (62);
} else if (AboutMode == true) {
gotoAndPlay (106);
}
Frame 19
StartGame();
this.attachMovie("GameMessage", "gm_mess0", MessageLayer);
gm_mess0.Init("Level " + (GameLevel + 1));
Frame 31
MouseCount = 0;
MouseX = 0;
MouseY = 0;
updateMousePosition(_xmouse, _ymouse);
Sling.init();
Started = true;
stop();
Frame 32
this.attachMovie("GameMessage", "gm_mess0", MessageLayer);
gm_mess0.Init("Meow Over");
Frame 45
if ((AutoTutorial == false) && ((GameScores == 0) || (GameLevel == 0))) {
EndGame();
InitGame();
HelpMode = true;
gotoAndPlay (62);
AutoTutorial = true;
}
Frame 46
BeginMode = false;
EndGame();
AgainButton.ButtonText = "PLAY AGAIN";
MoreButton1.ButtonText = "MORE GAMES";
HelpButton1.ButtonText = "TUTORIAL";
About1.ButtonText = "ABOUT";
FinalMyay.gotoAndPlay("start");
FinalMyay.Active = false;
FinalScores = Statistic.ScoresValue;
Realore.onRelease = function () {
getURL ("http://www.realore.com/", "_blank");
};
stop();
Frame 61
if (AboutMode == true) {
gotoAndPlay (106);
} else if (HelpMode == false) {
gotoAndPlay (19);
}
Frame 62
AutoTutorial = true;
StartGame();
this.attachMovie("HelpMessage", "gm_mess0", MessageLayer);
gm_mess0.Init("Welcome to\nthe tutorial!");
Frame 74
Started = true;
Frame 75
MouseCount = 0;
MouseX = 0;
MouseY = 0;
updateMousePosition(_xmouse, _ymouse);
Sling.init();
HelpCount = 0;
LeftTip = createTip(150, 150, "\nHold left mouse\nbutton to force\nthe catapult.", 0);
attachMovie("HelpArrow", "arrow1", ArrowLayer);
arrow1._x = 100;
arrow1._y = 400;
arrow1._xscale = 50;
arrow1._yscale = 50;
arrow1._rotation = -135;
arrow1._visible = true;
Frame 76
HelpCount++;
Frame 77
if (MouseCount < ThrowTimeMax) {
gotoAndPlay (76);
} else {
LeftTip.Fall();
arrow1.removeMovieClip();
}
Frame 78
HelpCount = 0;
HelpMiss = 0;
HelpStun = 0;
LeftTip = createTip(150, 150, "Release left\nmouse button\nto throw a fish\ninto the cat's\nmouth.", 0);
Frame 79
HelpCount++;
Frame 80
if (HelpStun == 0) {
if (HelpMiss > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "\nYou missed\nthe target!", 120);
HelpMiss = 0;
}
gotoAndPlay (79);
} else {
RightTip.Fall();
LeftTip.Fall();
}
Frame 81
LeftTip = createTip(150, 150, "Fire\nthe catapult\nbetter aiming\nthe cat's\nopen mouth.", 0);
TargetTipFlag = true;
HelpScream = 0;
HelpFall = 0;
HelpStun = 0;
HelpCount = 200;
HelpInterrupt = 0;
HelpMiss = 0;
attachMovie("HelpArrow", "arrow0", ArrowLayer);
arrow0._visible = false;
arrow0._x = eval ("c" + SitList[3].ID)._x;
arrow0._y = eval ("c" + SitList[3].ID)._y - 60;
arrow0._xscale = 50;
arrow0._yscale = 50;
arrow0._rotation = 25;
attachMovie("HelpArrow", "arrow2", ArrowLayer + 1);
arrow2._visible = false;
arrow2._xscale = 50;
arrow2._yscale = 50;
arrow2._rotation = -45;
Frame 82
HelpCount++;
if (eval ("c" + SitList[3].ID).ScreamEnable) {
arrow0._visible = true;
} else {
arrow0._visible = false;
}
Frame 83
if (CatsNum > 0) {
if (HelpScream > 0) {
if (GameLives <= 0) {
LeftTip.Fall();
LeftTip = createTip(150, 150, "Too many\nmeows.\nThe real game\nwould have\nbeen over.", 0);
UpdateLives(6 - GameLives);
} else {
arrow2._x = 110 + (30 * (6 - GameLives));
arrow2._y = 20;
arrow2._visible = true;
LeftTip.Fall();
LeftTip = createTip(150, 150, "Don't let\ncats meow six\ntimes or game\nwill be over.", 0);
}
HelpScream = 0;
HelpCount = 0;
TargetTipFlag = false;
}
if (HelpInterrupt > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "You stop\nthe meowing\nof the cat,\nbut didn't\nfeed it.", 120);
} else if (HelpStun > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "\nYou stunned\nthe cat.", 120);
} else if (HelpMiss > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "\nYou missed\nthe target!", 120);
}
HelpInterrupt = 0;
HelpStun = 0;
HelpMiss = 0;
if ((HelpCount > 200) && (TargetTipFlag == false)) {
TargetTipFlag = true;
LeftTip.Fall();
LeftTip = createTip(150, 150, "When cat\ngets the fish\nit happily\nmoves away!", 0);
}
if (HelpCount > 300) {
HelpCount = 0;
eval ("c" + SitList[3].ID).startScream();
arrow2._visible = false;
}
gotoAndPlay (82);
} else {
LeftTip.Fall();
RightTip.Fall();
arrow0.removeMovieClip();
arrow2.removeMovieClip();
}
Frame 84
TargetTipFlag = true;
HelpScream = 0;
HelpFall = 0;
HelpStun = 0;
HelpCount = 100;
HelpInterrupt = 0;
HelpMiss = 0;
HelpFear = 0;
LeftTip = createTip(150, 150, "\nWell done!\nDo it with\na new cat.", 0);
this.attachMovie("c0", "c" + ObjectID, ObjectID + CatsMoveLayer);
eval ("c" + ObjectID).initMoveCat(ObjectID, 1);
eval ("c" + ObjectID).setSit(3);
CatsNum++;
CatCount--;
ObjectID = nextObjectID(ObjectID);
attachMovie("HelpArrow", "arrow0", ArrowLayer);
arrow0._visible = false;
arrow0._xscale = 50;
arrow0._yscale = 50;
arrow0._rotation = 25;
attachMovie("HelpArrow", "arrow2", ArrowLayer + 1);
arrow2._visible = false;
arrow2._xscale = 50;
arrow2._yscale = 50;
arrow2._rotation = -45;
Frame 85
HelpCount++;
if (eval ("c" + SitList[3].ID).ScreamEnable) {
arrow0._x = eval ("c" + SitList[3].ID)._x;
arrow0._y = eval ("c" + SitList[3].ID)._y - 60;
arrow0._visible = true;
} else {
arrow0._visible = false;
}
Frame 86
if (CatsNum > 0) {
if (HelpScream > 0) {
if (GameLives <= 0) {
LeftTip.Fall();
LeftTip = createTip(150, 150, "Too many\nmeows.\nThe real game\nwould have\nbeen over.", 90);
UpdateLives(6 - GameLives);
} else {
arrow2._x = 110 + (30 * (6 - GameLives));
arrow2._y = 20;
arrow2._visible = true;
LeftTip.Fall();
LeftTip = createTip(150, 150, "Don't let\ncats meow six\ntimes or game\nwill be over.", 90);
}
HelpScream = 0;
HelpCount = 0;
TargetTipFlag = false;
}
if (HelpFear > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "\nYou scared\nthe cat.", 90);
} else if (HelpInterrupt > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "You stop\nthe meowing\nof the cat,\nbut didn't\nfeed it.", 90);
} else if (HelpStun > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "\nYou stunned\nthe cat.", 90);
} else if (HelpMiss > 0) {
RightTip.Fall();
RightTip = createTip(450, 150, "\nYou missed\nthe target!", 90);
}
HelpFear = 0;
HelpInterrupt = 0;
HelpStun = 0;
HelpMiss = 0;
if ((HelpCount > 160) && (TargetTipFlag == false)) {
TargetTipFlag = true;
LeftTip.Fall();
LeftTip = createTip(150, 150, "When cat\ngets the fish\nit happily\nmoves away!", 0);
}
if (HelpCount > 200) {
HelpCount = 0;
if (eval ("c" + SitList[3].ID).canScream()) {
eval ("c" + SitList[3].ID).startScream();
arrow2._visible = false;
}
}
gotoAndPlay (85);
} else {
LeftTip.Fall();
RightTip.Fall();
arrow0.removeMovieClip();
arrow2.removeMovieClip();
}
Frame 87
this.attachMovie("HelpMessage", "gm_mess0", MessageLayer);
gm_mess0.Init("Now you are ready\nfor a real game!");
Started = false;
HelpMode = false;
Frame 105
EndGame();
Sling.finit();
InitGame();
play();
gotoAndPlay (19);
Frame 106
stop();
ReturnButton.ButtonText = "DONE";
Realore.onRelease = function () {
getURL ("http://www.realore.com/", "_blank");
};
Frame 118
AboutMode = false;
if (BeginMode == true) {
gotoAndPlay (6);
} else {
gotoAndPlay (46);
}
Symbol 36 MovieClip Frame 1
Percents = "00%";
_root.stop();
Loaded = false;
Symbol 36 MovieClip Frame 2
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
Percents = "(99%)";
Loaded = true;
LoadIcon.gotoAndStop(100);
} else {
var t = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
LoadIcon.gotoAndStop(t);
Percents = "(";
if (t < 10) {
Percents = Percents + "0";
}
Percents = Percents + (t + "%)");
}
Symbol 36 MovieClip Frame 3
if (Loaded == false) {
gotoAndPlay (2);
} else {
_root.play("start");
stop();
}
Symbol 70 MovieClip Frame 1
Delay = random(50);
Symbol 70 MovieClip Frame 2
Delay--;
Symbol 70 MovieClip Frame 3
if (Delay > 0) {
gotoAndPlay (2);
}
Symbol 83 MovieClip Frame 18
stop();
Symbol 84 MovieClip Frame 18
stop();
Symbol 95 MovieClip Frame 1
this.onEnterFrame = function () {
if (InitFlag == undefined) {
Flag = 1;
Count = (_totalframes / 2) + random(_totalframes * 4);
InitFlag = true;
} else if (Count > 0) {
Count--;
} else {
Count = (_totalframes / 2) + random(_totalframes * 4);
if (Flag) {
Flag = 0;
stop();
} else {
play();
Flag = 1;
}
}
};
Symbol 117 MovieClip Frame 1
RoundCount = 2;
Symbol 117 MovieClip Frame 2
Delay = random(50);
Symbol 117 MovieClip Frame 3
Delay--;
Symbol 117 MovieClip Frame 4
if (Delay > 0) {
gotoAndPlay (3);
} else if (RoundCount > 0) {
RoundCount--;
} else {
gotoAndPlay (25);
RoundCount = 2;
}
Symbol 117 MovieClip Frame 24
gotoAndPlay (2);
Symbol 117 MovieClip Frame 66
gotoAndPlay (2);
Symbol 126 MovieClip Frame 1
Delay = 10 + random(60);
Symbol 126 MovieClip Frame 2
Delay--;
Symbol 126 MovieClip Frame 3
if (Delay > 0) {
gotoAndPlay (2);
}
Symbol 143 MovieClip Frame 16
_parent.playMurk();
Symbol 156 MovieClip Frame 9
_parent.playMyay();
Symbol 156 MovieClip Frame 48
stop();
Symbol 162 MovieClip Frame 1
_visible = false;
Symbol 162 MovieClip Frame 48
stop();
Symbol 181 MovieClip Frame 7
gotoAndPlay (15);
Symbol 181 MovieClip Frame 23
_parent.swapDepths(_parent.ID + _root.CatsFallLayer);
Symbol 181 MovieClip Frame 42
stop();
Symbol 193 MovieClip Frame 1
Count = 8;
Symbol 193 MovieClip Frame 5
Count--;
Symbol 193 MovieClip Frame 20
if (Count > 0) {
gotoAndPlay (5);
}
Symbol 204 MovieClip [c0] Frame 1
if (Locked == false) {
MoveEnable = true;
}
Symbol 204 MovieClip [c0] Frame 5
if (Locked == false) {
gotoAndPlay (1);
}
Symbol 204 MovieClip [c0] Frame 17
if (Locked == false) {
gotoAndPlay (32);
}
Symbol 204 MovieClip [c0] Frame 31
if (Locked == false) {
gotoAndPlay (1);
}
Symbol 204 MovieClip [c0] Frame 32
if (Locked == false) {
HoldEnable = true;
if ((ScreamRequest == true) || (_root.ForceMyay == true)) {
gotoAndPlay (100);
ScreamRequest = false;
} else {
MurkCount--;
if (MurkCount <= 0) {
gotoAndPlay (59);
MurkCount = 2 + random(5);
}
}
}
Symbol 204 MovieClip [c0] Frame 58
if (Locked == false) {
gotoAndPlay (32);
}
Symbol 204 MovieClip [c0] Frame 99
if (Locked == false) {
gotoAndPlay (32);
}
Symbol 204 MovieClip [c0] Frame 100
ScreamEnable = true;
Symbol 204 MovieClip [c0] Frame 150
ScreamEnable = false;
if (_root.ForceMyay == false) {
_root.HelpScream++;
_root.HitCombo = 0;
_root.UpdateLives(-1);
_root.createEvent("Meow!", this._x, this._y - 140, "EventScream");
}
if (Locked == false) {
gotoAndPlay (32);
}
Symbol 204 MovieClip [c0] Frame 151
_y = _root.BorderY;
if (FishHit == true) {
FallCat.gotoAndPlay("fish");
} else {
FallCat.gotoAndPlay("dollar");
}
Symbol 204 MovieClip [c0] Frame 185
stop();
_visible = false;
Alive = false;
Symbol 204 MovieClip [c0] Frame 220
if (Locked == false) {
if (SitFlag == true) {
gotoAndPlay (32);
} else {
gotoAndPlay (18);
}
}
if (DamageLevel <= 1) {
DamageLevel = 0;
}
Symbol 204 MovieClip [c0] Frame 227
_x = (_x - (Direction * 15));
_y = (_root.BorderY - 15);
Symbol 204 MovieClip [c0] Frame 231
_x = (_x - (Direction * 15));
_y = _root.BorderY;
Symbol 204 MovieClip [c0] Frame 240
if (Locked == false) {
if (SitFlag == false) {
gotoAndPlay (1);
} else {
gotoAndPlay (6);
}
}
if (DamageLevel <= 1) {
DamageLevel = 0;
}
Symbol 210 MovieClip [b0] Frame 1
stop();
Symbol 210 MovieClip [b0] Frame 2
stop();
Symbol 242 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Active == false) {
if (_currentframe != 1) {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
} else if (_currentframe != 12) {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
};
Symbol 243 MovieClip [Statistic] Frame 1
this.initLives = function () {
var i = 0;
while (i < 5) {
eval ("m" + i).gotoAndStop("white");
eval ("m" + i).Active = true;
i++;
}
};
this.updateLives = function (n) {
var i = 0;
while (i < n) {
eval ("m" + i).Active = true;
i++;
}
var i = n;
while (i < 5) {
eval ("m" + i).Active = false;
i++;
}
};
Symbol 251 MovieClip [GameMessage] Frame 1
ContinueClick.onRelease = function () {
_root.WaitClick = 3;
};
Symbol 265 MovieClip [Power] Frame 1
stop();
Symbol 274 MovieClip [HelpMessage] Frame 1
ContinueClick.onRelease = function () {
_root.WaitClick = 3;
};
Symbol 304 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Active == false) {
if (_currentframe != 1) {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
} else if (_currentframe != 12) {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
};
Symbol 307 MovieClip Frame 1
_visible = false;
stop();
this.onPress = function () {
this.changeAnim(10, 80, 10, 0.314159265358979, 100, 80, 30);
_root.menuPress(_name);
};
this.onRelease = function () {
this.changeAnim(5, 100, 5, 0.15707963267949, 100, 100, 100);
_root.menuRelease(_name);
};
this.onReleaseOutside = function () {
this.changeAnim(5, 100, 5, 0.15707963267949, 100, 100, 100);
_root.menuRelease(_name);
};
this.onRollOut = function () {
this.changeAnim(5, 100, 5, 0.15707963267949, 100, 100, 100);
_root.menuNormal(_name);
};
this.onRollOver = function () {
this.changeAnim(5, 130, 5, 0.15707963267949, 100, 90, 70);
_root.menuOver(_name);
};
this.onEnterFrame = function () {
if (InitFlag == undefined) {
init();
} else {
if (time > 0) {
const_scale = const_scale + d_cscale;
noise_scale = noise_scale + d_nscale;
da = da + d_da;
c_r = c_r + d_r;
c_g = c_g + d_g;
c_b = c_b + d_b;
time--;
}
a = (a + da) % (Math.PI*2);
update();
}
};
this.init = function () {
InitFlag = true;
a = (Math.random() * Math.PI) * 2;
da = 0.15707963267949;
noise_scale = 5;
const_scale = 100;
c_r = 100;
c_g = 100;
c_b = 100;
time = 0;
d_cscale = 0;
d_nscale = 0;
d_da = 0;
d_r = 0;
d_g = 0;
d_b = 0;
color_object = new Color(this);
color_data = new Object();
update();
_visible = true;
};
this.setAnim = function (c_s, n_s, a, r, g, b) {
this.time = 0;
this.const_scale = c_s;
this.noise_scale = n_s;
this.da = a;
this.c_r = r;
this.c_g = g;
this.c_b = b;
};
this.changeAnim = function (t, c_s, n_s, a, r, g, b) {
this.d_cscale = (c_s - this.const_scale) / t;
this.d_nscale = (n_s - this.noise_scale) / t;
this.d_da = (a - this.da) / t;
this.d_r = (r - this.c_r) / t;
this.d_g = (g - this.c_g) / t;
this.d_b = (b - this.c_b) / t;
this.time = t;
};
this.update = function () {
_xscale = (const_scale + (Math.sin(a) * noise_scale));
_yscale = _xscale;
color_data.ra = c_r;
color_data.rb = 0;
color_data.ga = c_g;
color_data.gb = 0;
color_data.ba = c_b;
color_data.bb = 0;
color_data.aa = 100;
color_data.ab = 0;
color_object.setTransform(color_data);
};
Symbol 310 MovieClip Frame 1
_visible = false;
stop();
this.onPress = function () {
this.changeAnim(10, 80, 10, 0.314159265358979, 100, 80, 30);
_root.menuPress(_name);
};
this.onRelease = function () {
this.changeAnim(5, 100, 5, 0.15707963267949, 100, 100, 100);
_root.menuRelease(_name);
};
this.onReleaseOutside = function () {
this.changeAnim(5, 100, 5, 0.15707963267949, 100, 100, 100);
_root.menuRelease(_name);
};
this.onRollOut = function () {
this.changeAnim(5, 100, 5, 0.15707963267949, 100, 100, 100);
_root.menuNormal(_name);
};
this.onRollOver = function () {
this.changeAnim(5, 130, 5, 0.15707963267949, 100, 90, 70);
_root.menuOver(_name);
};
this.onEnterFrame = function () {
if (InitFlag == undefined) {
init();
} else {
if (time > 0) {
const_scale = const_scale + d_cscale;
noise_scale = noise_scale + d_nscale;
da = da + d_da;
c_r = c_r + d_r;
c_g = c_g + d_g;
c_b = c_b + d_b;
time--;
}
a = (a + da) % (Math.PI*2);
update();
}
};
this.init = function () {
InitFlag = true;
a = (Math.random() * Math.PI) * 2;
da = 0.15707963267949;
noise_scale = 5;
const_scale = 100;
c_r = 100;
c_g = 100;
c_b = 100;
time = 0;
d_cscale = 0;
d_nscale = 0;
d_da = 0;
d_r = 0;
d_g = 0;
d_b = 0;
color_object = new Color(this);
color_data = new Object();
update();
_visible = true;
};
this.setAnim = function (c_s, n_s, a, r, g, b) {
this.time = 0;
this.const_scale = c_s;
this.noise_scale = n_s;
this.da = a;
this.c_r = r;
this.c_g = g;
this.c_b = b;
};
this.changeAnim = function (t, c_s, n_s, a, r, g, b) {
this.d_cscale = (c_s - this.const_scale) / t;
this.d_nscale = (n_s - this.noise_scale) / t;
this.d_da = (a - this.da) / t;
this.d_r = (r - this.c_r) / t;
this.d_g = (g - this.c_g) / t;
this.d_b = (b - this.c_b) / t;
this.time = t;
};
this.update = function () {
_xscale = (const_scale + (Math.sin(a) * noise_scale));
_yscale = _xscale;
color_data.ra = c_r;
color_data.rb = 0;
color_data.ga = c_g;
color_data.gb = 0;
color_data.ba = c_b;
color_data.bb = 0;
color_data.aa = 100;
color_data.ab = 0;
color_object.setTransform(color_data);
};
Symbol 326 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Active == false) {
if (_currentframe != 1) {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
} else if (_currentframe != 16) {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
};