Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var VictoryLevel = 21;
var LEVEL = 1;
var FirstLaunch = true;
var EasyHard = 1;
var Incr = 12;
var incrmax = 8;
var helpFlag = false;
var GirlID = "3936";
var CueNames = new Array(0, 0, 0, 0, 0, 0, 0);
var CueTimes = new Array(0, 0, 0, 0, 0, 0, 0);
var CueStr = "";
var TimStr = "";
var FLVwidth;
var FLVheight;
var videoFlvAddr = "";
var CuePercent = new Array(10);
var CueBytes = new Array(10);
var prcLoaded;
var Last_i = 0;
var FLVBytesTotal;
var VideoTimeTotal;
var StrCut = "";
var bytesStr = "";
var LevJumpFlag = false;
var X_start;
var Bar_start = PogrBar_mc.barMask_mc._x;
var pctLoaded = 0;
Play_btn._visible = false;
Rules_mc._visible = false;
ShineHair_mc.setMask(MaskFire_mc);
ShineHair_mc._alpha = 0;
stop();
ShineHair_mc.onEnterFrame = function () {
if (this._y > 80) {
this._y = this._y - 5;
} else {
this._y = 668;
this._alpha = 0;
}
if (this._y > 500) {
this._alpha = this._alpha + 2;
}
if (this._y < 210) {
this._alpha = this._alpha - 2;
}
};
Dark_mc.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 4;
}
};
Play_btn.onRelease = function () {
play();
};
Help_btn.onRelease = function () {
Rules_mc._visible = !Rules_mc._visible;
Story_mc._visible = !Story_mc._visible;
};
var Cells = new Array(65);
Cells[1] = C1;
Cells[2] = C2;
Cells[3] = C3;
Cells[4] = C4;
Cells[5] = C5;
Cells[6] = C6;
Cells[7] = C7;
Cells[8] = C8;
Cells[9] = C9;
Cells[10] = C10;
Cells[11] = C11;
Cells[12] = C12;
Cells[13] = C13;
Cells[14] = C14;
Cells[15] = C15;
Cells[16] = C16;
Cells[17] = C17;
Cells[18] = C18;
Cells[19] = C19;
Cells[20] = C20;
Cells[21] = C21;
Cells[22] = C22;
Cells[23] = C23;
Cells[24] = C24;
Cells[25] = C25;
Cells[26] = C26;
Cells[27] = C27;
Cells[28] = C28;
Cells[29] = C29;
Cells[30] = C30;
Cells[31] = C31;
Cells[32] = C32;
Cells[33] = C33;
Cells[34] = C34;
Cells[35] = C35;
Cells[36] = C36;
Cells[37] = C37;
Cells[38] = C38;
Cells[39] = C39;
Cells[40] = C40;
Cells[41] = C41;
Cells[42] = C42;
Cells[43] = C43;
Cells[44] = C44;
Cells[45] = C45;
Cells[46] = C46;
Cells[47] = C47;
Cells[48] = C48;
Cells[49] = C49;
Cells[50] = C50;
Cells[51] = C51;
Cells[52] = C52;
Cells[53] = C53;
Cells[54] = C54;
Cells[55] = C55;
Cells[56] = C56;
Cells[57] = C57;
Cells[58] = C58;
Cells[59] = C59;
Cells[60] = C60;
Cells[61] = C61;
Cells[62] = C62;
Cells[63] = C63;
Cells[64] = C64;
var CellQ = 64;
var i;
var cScl = new Array(65);
var colCArr = new Array(65);
var Colors = new Array(65);
var ColTraArr = new Array(65);
i = 1;
while (i <= CellQ) {
Colors[i] = new Color(Cells[i]);
ColTraArr[i] = new Object();
ColTraArr[i].ra = randRange(0, 100);
ColTraArr[i].ga = randRange(0, 100);
ColTraArr[i].ba = randRange(0, 100);
ColTraArr[i].aa = 100;
ColTraArr[i].ab = 100;
Colors[i].setTransform(ColTraArr[i]);
colCArr[i] = randRange(1, 9);
Cells[i]._xscale = randRange(90, 100);
Cells[i]._yscale = Cells[i]._xscale;
cScl[i] = randRange(1, 2);
i++;
}
var cLim = 95;
var cc = 0;
var sec = 0;
var colUp = true;
C1.onEnterFrame = function () {
i = 1;
while (i <= CellQ) {
if (colCArr[i] == 1) {
if (ColTraArr[i].ra > cLim) {
ColTraArr[i].ra--;
} else {
colCArr[i] = 2;
}
}
if (colCArr[i] == 2) {
if (ColTraArr[i].ga < 100) {
ColTraArr[i].ga++;
if (ColTraArr[i].ra < 100) {
ColTraArr[i].ra++;
}
} else {
colCArr[i] = 3;
}
}
if (colCArr[i] == 3) {
if (ColTraArr[i].ra > cLim) {
ColTraArr[i].ra--;
} else {
colCArr[i] = 4;
}
}
if (colCArr[i] == 4) {
if (ColTraArr[i].ra > 0) {
ColTraArr[i].ra--;
}
if (ColTraArr[i].ga > cLim) {
ColTraArr[i].ga--;
} else {
colCArr[i] = 5;
}
}
if (colCArr[i] == 5) {
if (ColTraArr[i].ga < 100) {
ColTraArr[i].ga++;
ColTraArr[i].ba++;
} else {
ColTraArr[i].ga = 100;
colCArr[i] = 6;
}
}
if (colCArr[i] == 6) {
if (ColTraArr[i].ga > cLim) {
ColTraArr[i].ga--;
} else {
colCArr[i] = 7;
}
}
if (colCArr[i] == 7) {
if (ColTraArr[i].ga > 0) {
ColTraArr[i].ga--;
}
if (ColTraArr[i].ba > cLim) {
ColTraArr[i].ba--;
} else {
colCArr[i] = 8;
}
}
if (colCArr[i] == 8) {
if (ColTraArr[i].ba < 100) {
ColTraArr[i].ba++;
ColTraArr[i].ra++;
} else {
ColTraArr[i].ba = 100;
colCArr[i] = 9;
}
}
if (colCArr[i] == 9) {
if (ColTraArr[i].ba > cLim) {
ColTraArr[i].ba--;
} else {
colCArr[i] = 1;
}
}
Colors[i].setTransform(ColTraArr[i]);
if (cScl[i] == 1) {
if (Cells[i]._xscale > 90) {
Cells[i]._xscale = Cells[i]._xscale - 1;
Cells[i]._yscale = Cells[i]._xscale;
} else {
cScl[i] = 2;
}
}
if (cScl[i] == 2) {
if (Cells[i]._xscale < 100) {
Cells[i]._xscale = Cells[i]._xscale + 1;
Cells[i]._yscale = Cells[i]._xscale;
} else {
cScl[i] = 1;
}
}
i++;
}
cc++;
if (cc >= 25) {
cc = 0;
sec++;
if (sec >= 1) {
sec = 0;
if (colUp) {
if (cLim > 40) {
cLim--;
} else {
colUp = false;
}
} else if (cLim < 95) {
cLim++;
} else {
colUp = true;
}
}
}
};
LoadLine_mc.setMask(LoadMask_mc);
var X_start = LoadMask_mc._x;
var frmsLoaded = 0;
var darkOff = true;
PlayGamcore_btn._visible = false;
GamcoreLink_mc.onRelease = function () {
getURL ("http://gamcore.com", "_blank");
};
var cc = 0;
var sec = 0;
var timelim = 50;
var secProc = 0;
LoadLine_mc.onEnterFrame = function () {
cc++;
if (cc >= 5) {
cc = 0;
if (sec < timelim) {
sec++;
secProc = (sec / timelim) * 100;
}
}
frmsLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (frmsLoaded >= secProc) {
LoadMask_mc._x = X_start + (1.45 * secProc);
procLoad_txt.text = ("loading " + secProc) + "%";
if (secProc >= 100) {
PlayGamcore_btn._visible = true;
Dark_mc._visible = false;
}
} else {
LoadMask_mc._x = X_start + (1.45 * frmsLoaded);
procLoad_txt.text = ("loading " + frmsLoaded) + "%";
if (frmsLoaded >= 100) {
PlayGamcore_btn._visible = true;
Dark_mc._visible = false;
}
}
};
PlayGamcore_btn.onRelease = function () {
play();
};
ShadePreload_mc.onEnterFrame = function () {
if (darkOff) {
if (this._alpha > 70) {
this._alpha--;
} else {
darkOff = false;
}
} else if (this._alpha < 100) {
this._alpha++;
} else {
darkOff = true;
}
};
Instance of Symbol 95 MovieClip "bannerVirtua_mc" in Frame 1
on (release) {
getURL ("http://c.actiondesk.com/?s=43872&p=26&pp=1", "_blank");
}
Instance of Symbol 98 MovieClip in Frame 1
on (release) {
getURL ("http://affiliates.thrixxx.com/scripts/connect.php?aid=9680956&ad=1&pr=8&gr=28&el=10606&ts=3&lg=en&c=0", "_blank");
}
Frame 2
stop();
ShineHair_mc.setMask(MaskFire_mc);
ShineHair_mc._alpha = 0;
ShineHair_mc.onEnterFrame = function () {
if (this._y > 80) {
this._y = this._y - 5;
} else {
this._y = 668;
this._alpha = 0;
}
if (this._y > 500) {
this._alpha = this._alpha + 2;
}
if (this._y < 210) {
this._alpha = this._alpha - 2;
}
};
Play_btn.onRelease = function () {
play();
};
Help_btn.onRelease = function () {
helpFlag = !helpFlag;
if (helpFlag) {
help_mc.gotoAndPlay("goCome");
Pause_Flag = true;
} else {
help_mc.gotoAndPlay("goOut");
Pause_Flag = false;
}
};
help_mc.onRelease = function () {
helpFlag = false;
Pause_Flag = false;
if (helpFlag) {
help_mc.gotoAndPlay("goCome");
} else {
help_mc.gotoAndPlay("goOut");
}
};
Frame 3
function initSet() {
Next_btn._visible = false;
MorePlay_btn._visible = false;
MoreHer_btn._visible = false;
CongrNextLev_mc._visible = false;
OopsLevDwn_mc._visible = false;
YouWin_mc._visible = false;
YouLoose2_mc._visible = false;
moveFlag = false;
Lim = randRange(1, 6);
cc = 0;
sec = 0;
wtLev = 0;
KatzMy_mc.footsMove_mc.gotoAndStop("footStop");
GNum = LEVEL;
i = 1;
while (i <= girlsQ) {
GirlsArr[i]._visible = false;
i++;
}
GirlsArr[GNum]._visible = true;
Point1.x = GirlsArr[GNum].cell_mc._x;
Point1.y = GirlsArr[GNum].cell_mc._y;
GirlsArr[GNum].localToGlobal(Point1);
PDX = Point1.x;
PDY = Point1.y;
EmptyCell_mc._x = PDX;
EmptyCell_mc._y = PDY;
EmptyCell_mc._visible = true;
i = 1;
while (i <= 4) {
if (QuartArr[i].hitTest(EmptyCell_mc._x, EmptyCell_mc._y, true)) {
cntrI = i + randRange(1, 3);
if (cntrI > 4) {
cntrI = cntrI - 4;
}
Queenbox_mc._x = (QuartArr[cntrI]._x + randRange(1, 200)) - 100;
Queenbox_mc._y = (QuartArr[cntrI]._y + randRange(1, 150)) - 75;
}
i++;
}
if (Queenbox_mc._x < EmptyCell_mc._x) {
alfarad = Math.atan((Queenbox_mc._y - EmptyCell_mc._y) / (Queenbox_mc._x - EmptyCell_mc._x));
} else {
alfarad = Math.atan((Queenbox_mc._y - EmptyCell_mc._y) / (Queenbox_mc._x - EmptyCell_mc._x)) - Math.PI;
}
alfa = (alfarad * 90) / 1.57;
alfa = AngleTo360(alfa);
dirAngle = (alfa + 180) + randRange(0, 60);
otskok();
Queenbox_mc.PicB_mc.attachMovie(PicNmskArrL[GNum], "BodyLPic" + i, 3);
Queenbox_mc.PicB_mc._x = Grl01_mc._x - EmptyCell_mc._x;
Queenbox_mc.PicB_mc._y = Grl01_mc._y - EmptyCell_mc._y;
Queenbox_mc.PicB_mc.setMask(Queenbox_mc.MaskB_mc);
Queenbox_mc._visible = true;
if (GNum >= 10) {
Point1.x = GirlsArr[GNum].cell2_mc._x;
Point1.y = GirlsArr[GNum].cell2_mc._y;
GirlsArr[GNum].localToGlobal(Point1);
PDX = Point1.x;
PDY = Point1.y;
EmptyCell2_mc._x = PDX;
EmptyCell2_mc._y = PDY;
EmptyCell2_mc._visible = true;
Queenbox2_mc._x = (QuartArr[2]._x + randRange(1, 200)) - 100;
Queenbox2_mc._y = (QuartArr[2]._y + randRange(1, 150)) - 75;
Queenbox2_mc.PicB_mc.attachMovie(PicNmskArrL[GNum], "BodyLPic" + i, 3);
Queenbox2_mc.PicB_mc._x = Grl01_mc._x - EmptyCell2_mc._x;
Queenbox2_mc.PicB_mc._y = Grl01_mc._y - EmptyCell2_mc._y;
Queenbox2_mc.PicB_mc.setMask(Queenbox2_mc.MaskB_mc);
Queenbox2_mc._visible = true;
dirAngle2 = randRange(0, 160) - 80;
incr2_x = Math.cos(dirAngle2 / 57.32) * Incr2;
incr2_y = Math.sin(dirAngle2 / 57.32) * Incr2;
}
pussFlag[1] = false;
pussFlag[2] = false;
winFlag = false;
}
function otskok() {
if (!winFlag) {
dirAngle = (dirAngle + randRange(0, 90)) - 45;
if (dirAngle > 360) {
dirAngle = dirAngle - 360;
}
if (dirAngle < 0) {
dirAngle = dirAngle + 360;
}
incr_x = Math.cos(dirAngle / 57.32) * Incr;
incr_y = Math.sin(dirAngle / 57.32) * Incr;
}
}
function AlfaCalc() {
if (Queenbox_mc._x < KatzMy_mc._x) {
alfarad = Math.atan((Queenbox_mc._y - KatzMy_mc._y) / (Queenbox_mc._x - KatzMy_mc._x));
} else {
alfarad = Math.atan((Queenbox_mc._y - KatzMy_mc._y) / (Queenbox_mc._x - KatzMy_mc._x)) - Math.PI;
}
alfa = (alfarad * 90) / 1.57;
alfa = AngleTo360(alfa);
return(alfa);
}
function AngleTo360(ang) {
dirAn_mc._rotation = ang;
ang = dirAn_mc._rotation;
return(ang);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var i;
var Incr = 2;
var incr_x = 0;
var incr_y = 0;
var Incr2 = 2;
var incr2_x = 0;
var incr2_y = 0;
var DisX = Queenbox_mc._width;
var DisY = Queenbox_mc._height;
var winFlag = false;
var dirAngle = randRange(1, 360);
var dirAngle2 = randRange(1, 360);
var dirFlag = new Array(5);
var BannedDir = new Array(5);
var Dir = 0;
var speed = 10;
var moveFlag = false;
var prevX = KatzMy_mc._x;
var prevY = KatzMy_mc._y;
var DKzX = ((KatzMy_mc._width / 2) + 10);
var DKzY = ((KatzMy_mc._height / 2) + 10);
var cc = 0;
var sec = 0;
var Lim = randRange(1, 6);
var alfa = 0;
var alfarad = 0;
var Point1 = new Object();
var PDX;
var PDY;
var wtLev = 0;
var pussFlag = new Array(3);
var PicNmskArrL = new Array(21);
PicNmskArrL[1] = "GirlL1";
PicNmskArrL[2] = "GirlL2";
PicNmskArrL[3] = "GirlL3";
PicNmskArrL[4] = "GirlL4";
PicNmskArrL[5] = "GirlL5";
PicNmskArrL[6] = "GirlL6";
PicNmskArrL[7] = "GirlL7";
PicNmskArrL[8] = "GirlL8";
PicNmskArrL[9] = "GirlL9";
PicNmskArrL[10] = "GirlL10";
PicNmskArrL[11] = "GirlL11";
PicNmskArrL[12] = "GirlL12";
PicNmskArrL[13] = "GirlL13";
PicNmskArrL[14] = "GirlL14";
PicNmskArrL[15] = "GirlL15";
PicNmskArrL[16] = "GirlL16";
PicNmskArrL[17] = "GirlL17";
PicNmskArrL[18] = "GirlL18";
PicNmskArrL[19] = "GirlL19";
PicNmskArrL[20] = "GirlL20";
var girlsQ = 20;
var GNum = 0;
var GirlsArr = new Array(11);
GirlsArr[1] = Grl01_mc;
GirlsArr[2] = GirlL2;
GirlsArr[3] = GirlL3;
GirlsArr[4] = GirlL4;
GirlsArr[5] = GirlL5;
GirlsArr[6] = GirlL6;
GirlsArr[7] = GirlL7;
GirlsArr[8] = GirlL8;
GirlsArr[9] = GirlL9;
GirlsArr[10] = GirlL10;
GirlsArr[11] = GirlL11;
GirlsArr[12] = GirlL12;
GirlsArr[13] = GirlL13;
GirlsArr[14] = GirlL14;
GirlsArr[15] = GirlL15;
GirlsArr[16] = GirlL16;
GirlsArr[17] = GirlL17;
GirlsArr[18] = GirlL18;
GirlsArr[19] = GirlL19;
GirlsArr[20] = GirlL20;
i = 1;
while (i <= girlsQ) {
GirlsArr[i]._x = 372;
GirlsArr[i]._y = 272;
GirlsArr[i]._visible = false;
i++;
}
var QuartArr = new Array(5);
QuartArr[1] = Quarter1_mc;
QuartArr[2] = Quarter2_mc;
QuartArr[3] = Quarter3_mc;
QuartArr[4] = Quarter4_mc;
var cntrI;
i = 1;
while (i <= 4) {
QuartArr[i]._visible = false;
i++;
}
var myListener = new Object();
myListener.onKeyDown = function () {
if (!winFlag) {
moveFlag = true;
switch (Key.getCode()) {
case 37 :
if (!BannedDir[3]) {
Dir = 3;
dirFlag[Dir] = true;
}
break;
case 38 :
if (!BannedDir[4]) {
Dir = 4;
dirFlag[Dir] = true;
}
break;
case 39 :
if (!BannedDir[1]) {
Dir = 1;
dirFlag[Dir] = true;
}
break;
case 40 :
if (!BannedDir[2]) {
Dir = 2;
dirFlag[Dir] = true;
}
break;
case 32 :
if (winFlag) {
break;
}
}
} else if (!(Key.getCode() === 32)) {
} else if (Next_btn._visible) {
initSet();
}
};
myListener.onKeyUp = function () {
switch (Key.getCode()) {
case 37 :
dirFlag[3] = false;
break;
case 38 :
dirFlag[4] = false;
break;
case 39 :
dirFlag[1] = false;
break;
case 40 :
dirFlag[2] = false;
}
if ((((!dirFlag[1]) && (!dirFlag[2])) && (!dirFlag[3])) && (!dirFlag[4])) {
moveFlag = false;
KatzMy_mc.footsMove_mc.gotoAndStop("footStop");
Dir = 0;
}
i = 0;
while (i <= 4) {
dirFlag[i] = false;
BannedDir[i] = false;
i++;
}
};
Key.addListener(myListener);
Queenbox2_mc._visible = false;
EmptyCell2_mc._visible = false;
Queenbox2_mc._x = -200;
EmptyCell2_mc._x = -200;
LEVEL = 1;
SoundOn_btn._visible = false;
levelUp3_mc.setMask(levMask3_mc);
helpFlag = false;
initSet();
stop();
KatzMy_mc.onEnterFrame = function () {
if (!winFlag) {
prevX = this._x;
prevY = this._y;
if (moveFlag) {
this.footsMove_mc.play();
switch (Dir) {
case 0 :
this.footsMove_mc.gotoAndStop("footStop");
break;
case 1 :
this._x = this._x + speed;
break;
case 2 :
this._y = this._y + speed;
break;
case 3 :
this._x = this._x - speed;
break;
case 4 :
this._y = this._y - speed;
}
if (Dir != 0) {
this._rotation = (Dir - 1) * 90;
}
}
if (borderLf_mc.hitTest(this)) {
this.footsMove_mc.gotoAndStop("footStop");
Dir = 0;
moveFlag = false;
BannedDir[3] = true;
this._x = borderLf_mc._x + DKzX;
}
if (borderUp_mc.hitTest(this)) {
this.footsMove_mc.gotoAndStop("footStop");
Dir = 0;
moveFlag = false;
BannedDir[4] = true;
this._y = borderUp_mc._y + DKzY;
}
if (borderRt_mc.hitTest(this)) {
this.footsMove_mc.gotoAndStop("footStop");
Dir = 0;
moveFlag = false;
BannedDir[1] = true;
this._x = borderRt_mc._x - DKzX;
}
if (borderDn_mc.hitTest(this)) {
this.footsMove_mc.gotoAndStop("footStop");
Dir = 0;
moveFlag = false;
BannedDir[2] = true;
this._y = borderDn_mc._y - DKzY;
}
if (this.Head_mc.hitTest(Queenbox_mc.MaskB_mc)) {
this._x = prevX;
this._y = prevY;
Dir = 0;
moveFlag = false;
this.footsMove_mc.gotoAndStop("footStop");
dirAngle = ((AlfaCalc() + 180) + randRange(0, 90)) - 45;
otskok();
Queenbox_mc._x = Queenbox_mc._x + (incr_x * 2);
Queenbox_mc._y = Queenbox_mc._y + (incr_y * 2);
}
if (LEVEL >= 10) {
if (this.Head_mc.hitTest(Queenbox2_mc.MaskB_mc)) {
this._x = prevX;
this._y = prevY;
BannedDir[Dir] = true;
Dir = 0;
moveFlag = false;
this.footsMove_mc.gotoAndStop("footStop");
if (Queenbox2_mc._x < KatzMy_mc._x) {
alfarad = Math.atan((Queenbox2_mc._y - KatzMy_mc._y) / (Queenbox2_mc._x - KatzMy_mc._x));
} else {
alfarad = Math.atan((Queenbox2_mc._y - KatzMy_mc._y) / (Queenbox2_mc._x - KatzMy_mc._x)) - Math.PI;
}
alfa = (alfarad * 90) / 1.57;
alfa = AngleTo360(alfa);
dirAngle2 = ((alfa + 180) + randRange(0, 90)) - 45;
incr2_x = Math.cos(dirAngle2 / 57.32) * Incr2;
incr2_y = Math.sin(dirAngle2 / 57.32) * Incr2;
if (!pussFlag[2]) {
Queenbox2_mc._x = Queenbox2_mc._x + (incr2_x * 2);
Queenbox2_mc._y = Queenbox2_mc._y + (incr2_y * 2);
}
}
}
}
};
Queenbox_mc.onEnterFrame = function () {
if (!pussFlag[1]) {
this._x = this._x + incr_x;
this._y = this._y + incr_y;
if (borderLf_mc.hitTest(this.MaskB_mc)) {
dirAngle = 90 + (90 - dirAngle);
otskok();
this._x = borderLf_mc._x + (DisX / 2);
this._x = this._x + (incr_x * 2);
this._y = this._y + (incr_y * 2);
}
if (borderUp_mc.hitTest(this.MaskB_mc)) {
dirAngle = 360 - dirAngle;
if ((dirAngle > 80) && (dirAngle < 100)) {
dirAngle = 45;
}
otskok();
this._y = borderUp_mc._y + (DisY / 2);
this._x = this._x + (incr_x * 2);
this._y = this._y + (incr_y * 2);
}
if (borderRt_mc.hitTest(this.MaskB_mc)) {
dirAngle = 90 + (90 - dirAngle);
otskok();
this._x = borderRt_mc._x - (DisX / 2);
this._x = this._x + (incr_x * 2);
this._y = this._y + (incr_y * 2);
}
if (borderDn_mc.hitTest(this.MaskB_mc)) {
dirAngle = 360 - dirAngle;
otskok();
this._y = borderDn_mc._y - (DisY / 2);
this._x = this._x + (incr_x * 2);
this._y = this._y + (incr_y * 2);
}
}
};
Queenbox2_mc.onEnterFrame = function () {
if (LEVEL >= 10) {
if (!pussFlag[2]) {
this._x = this._x + incr2_x;
this._y = this._y + incr2_y;
if (borderLf_mc.hitTest(this.MaskB_mc)) {
dirAngle2 = 90 + (90 - dirAngle2);
incr2_x = Math.cos(dirAngle2 / 57.32) * Incr2;
incr2_y = Math.sin(dirAngle2 / 57.32) * Incr2;
this._x = borderLf_mc._x + (DisX / 2);
this._x = this._x + (incr2_x * 2);
this._y = this._y + (incr2_y * 2);
}
if (borderUp_mc.hitTest(this.MaskB_mc)) {
dirAngle2 = 360 - dirAngle2;
if ((dirAngle2 > 80) && (dirAngle2 < 100)) {
dirAngle2 = 45;
}
incr2_x = Math.cos(dirAngle2 / 57.32) * Incr2;
incr2_y = Math.sin(dirAngle2 / 57.32) * Incr2;
this._y = borderUp_mc._y + (DisY / 2);
this._x = this._x + (incr2_x * 2);
this._y = this._y + (incr2_y * 2);
}
if (borderRt_mc.hitTest(this.MaskB_mc)) {
dirAngle2 = 90 + (90 - dirAngle2);
incr2_x = Math.cos(dirAngle2 / 57.32) * Incr2;
incr2_y = Math.sin(dirAngle2 / 57.32) * Incr2;
this._x = borderRt_mc._x - (DisX / 2);
this._x = this._x + (incr2_x * 2);
this._y = this._y + (incr2_y * 2);
}
if (borderDn_mc.hitTest(this.MaskB_mc)) {
dirAngle2 = 360 - dirAngle2;
incr2_x = Math.cos(dirAngle2 / 57.32) * Incr2;
incr2_y = Math.sin(dirAngle2 / 57.32) * Incr2;
this._y = borderDn_mc._y - (DisY / 2);
this._x = this._x + (incr2_x * 2);
this._y = this._y + (incr2_y * 2);
}
}
}
};
EmptyCell_mc.onEnterFrame = function () {
if (!winFlag) {
if (this.Center_mc.hitTest(Queenbox_mc._x, Queenbox_mc._y, true)) {
Queenbox_mc._x = this._x;
Queenbox_mc._y = this._y;
pussFlag[1] = true;
if (LEVEL < 10) {
winFlag = true;
wtLev++;
}
}
}
};
EmptyCell2_mc.onEnterFrame = function () {
if (!pussFlag[2]) {
if (this.Center_mc.hitTest(Queenbox2_mc._x, Queenbox2_mc._y, true)) {
Queenbox2_mc._x = this._x;
Queenbox2_mc._y = this._y;
if (!pussFlag[2]) {
Queenbox2_mc.swapDepths(Queenbox_mc);
}
pussFlag[2] = true;
}
}
if (!winFlag) {
if (pussFlag[1] && (pussFlag[2])) {
winFlag = true;
wtLev++;
}
}
};
timer_mc.onEnterFrame = function () {
if (!winFlag) {
cc++;
if (cc >= 25) {
cc = 0;
sec++;
if (sec >= Lim) {
sec = 0;
Lim = randRange(1, 6);
dirAngle = (dirAngle + randRange(0, 120)) - 60;
if (randRange(1, 100) > 50) {
if (Queenbox_mc._x < EmptyCell_mc._x) {
alfarad = Math.atan((Queenbox_mc._y - EmptyCell_mc._y) / (Queenbox_mc._x - EmptyCell_mc._x));
} else {
alfarad = Math.atan((Queenbox_mc._y - EmptyCell_mc._y) / (Queenbox_mc._x - EmptyCell_mc._x)) - Math.PI;
}
alfa = (alfarad * 90) / 1.57;
alfa = AngleTo360(alfa);
dirAngle = (alfa + 180) + randRange(0, 60);
otskok();
}
}
}
}
if (wtLev > 0) {
wtLev++;
if (wtLev == 25) {
if (LEVEL < VictoryLevel) {
LEVEL++;
VictorySound_mc.play();
CongrNextLev_mc._visible = true;
Next_btn._visible = true;
Queenbox_mc._visible = false;
EmptyCell_mc._visible = false;
Queenbox2_mc._visible = false;
EmptyCell2_mc._visible = false;
}
if (LEVEL == VictoryLevel) {
MoreHer_btn._visible = true;
Next_btn._visible = false;
YouWin_mc._visible = true;
MorePlay_btn._visible = true;
winFlag = true;
}
}
if (wtLev >= 50) {
MyBank = BankInit;
BankMy_txt.text = MyBank;
BankShine_mc.play();
CongrNextLev_mc._visible = false;
wtLev = 0;
cCn = 75;
}
}
};
END_btn.onRelease = function () {
LEVEL = 1;
Key.removeListener(myListener);
gotoAndPlay ("introPlay");
};
Help_btn.onRelease = function () {
helpFlag = !helpFlag;
if (helpFlag) {
help_mc.gotoAndPlay("goCome");
Pause_Flag = true;
} else {
help_mc.gotoAndPlay("goOut");
Pause_Flag = false;
}
};
help_mc.onRelease = function () {
helpFlag = false;
Pause_Flag = false;
if (helpFlag) {
help_mc.gotoAndPlay("goCome");
} else {
help_mc.gotoAndPlay("goOut");
}
};
Next_btn.onRelease = function () {
initSet();
};
MorePlay_btn.onRelease = function () {
LEVEL = 1;
Key.removeListener(myListener);
gotoAndPlay ("introPlay");
};
SoundOff_btn.onRelease = function () {
SoundOn_btn._visible = true;
this._visible = false;
};
SoundOn_btn.onRelease = function () {
SoundOff_btn._visible = true;
this._visible = false;
};
MoreGames_btn.onRelease = function () {
getURL ("http://gamcore.com", "_blank");
};
Test_btn.onRelease = function () {
Testdata_mc._visible = !Testdata_mc._visible;
};
YouLoose2_mc.onEnterFrame = function () {
if (this._visible) {
if (this._xscale < 200) {
this._xscale++;
this._yscale = this._xscale;
}
}
};
YouWin_mc.onEnterFrame = function () {
if (this._visible) {
if (this._xscale < 200) {
this._xscale = this._xscale + 1;
this._yscale = this._xscale;
} else {
this._xscale = 100;
this._yscale = this._xscale;
this._visible = false;
ScreenOff = 2;
CongrNextLev_mc._visible = false;
Next_btn._visible = false;
KatzMy_mc._visible = false;
}
}
};
var lev3Old = 0;
var lev3Cng = false;
var mem3Y = levelUp3_mc.level_txt._y;
var Licr3 = 2;
levelUp3_mc.onEnterFrame = function () {
if (lev3Old != LEVEL) {
this.levelN_txt.text = LEVEL;
lev3Cng = true;
if (LEVEL > lev3Old) {
Licr3 = 2;
} else {
Licr3 = -2;
this.levelN_txt._y = this.level_txt._y - 30;
}
}
if (lev3Cng) {
this.level_txt._y = this.level_txt._y - Licr3;
this.levelN_txt._y = this.levelN_txt._y - Licr3;
if (Licr3 > 0) {
if (this.levelN_txt._y <= mem3Y) {
this.level_txt.text = LEVEL;
this.level_txt._y = mem3Y;
this.levelN_txt._y = this.level_txt._y + 30;
lev3Cng = false;
lev3Old = LEVEL;
}
} else if (this.levelN_txt._y >= mem3Y) {
this.level_txt.text = LEVEL;
this.level_txt._y = mem3Y;
this.levelN_txt._y = this.level_txt._y + 30;
lev3Cng = false;
lev3Old = LEVEL;
}
}
};
Symbol 92 MovieClip Frame 1
var i;
var cc = 0;
var sec = 0;
var intvl = 5;
var crnt = 0;
var advsLim = 12;
var AdvArr = new Array(14);
var URLsArr = new Array(14);
var AdsTexts = new Array();
var StrngTmp = new String();
var httpN;
var adN;
advSponsored_mc._visible = false;
advSponsored_mc.onRelease = function () {
getURL (URLsArr[crnt], "_blank");
};
advGamcore_mc.onRelease = function () {
getURL ("http://gamcore.com", "_blank");
};
RedString_mc.onEnterFrame = function () {
cc++;
if (cc >= 25) {
cc = 0;
sec++;
if (sec >= intvl) {
sec = 0;
crnt++;
if (crnt >= advsLim) {
crnt = 0;
}
advSponsored_mc.advString_txt.text = AdvArr[crnt];
}
}
};
var reviews_xml = new XML();
reviews_xml.ignoreWhite = true;
reviews_xml.onLoad = function (success) {
if (success) {
AdsTexts = reviews_xml.firstChild.childNodes;
i = 0;
while (i < AdsTexts.length) {
AdvArr[i] = AdsTexts[i].firstChild.nodeValue;
StrngTmp = AdsTexts[i].toString();
httpN = StrngTmp.indexOf("http");
adN = StrngTmp.indexOf(">") - 1;
URLsArr[i] = StrngTmp.substring(httpN, adN);
i++;
}
advSponsored_mc.advString_txt.text = AdvArr[crnt];
advSponsored_mc._visible = true;
}
};
reviews_xml.load("http://zazzybabes.com/misc/adverts.xml");
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 16
stop();
Symbol 126 MovieClip Frame 24
gotoAndStop (1);
Symbol 155 MovieClip Frame 10
gotoAndPlay ("footsGo");
Symbol 203 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();