Frame 1
function PRSFndStr(str, fstr) {
var _local5 = true;
var _local4 = false;
var _local2 = 0;
var _local1 = 0;
while (_local5) {
_local4 = true;
_local1 = 0;
while (_local1 < fstr.length) {
if (str.charAt(_local1 + _local2) != fstr.charAt(_local1)) {
_local4 = false;
}
_local1++;
}
if (_local4 == true) {
_local5 = false;
} else {
_local2++;
}
if ((_local2 + fstr.length) > str.length) {
_local5 = false;
_local2 = -1;
}
}
return(_local2);
}
function startGame() {
_root.o_menu.defclip._visible = false;
var i = 0;
var tm;
_root.cground.attachMovie("nL2_sneg", "frame0", 1003);
_root.cground.attachMovie("nL2_sneg", "frame1", 1002);
_root.cground.attachMovie("nL2_sneg", "frame2", 1001);
i = 0;
while (i < 3) {
_root.o_frm[i] = eval ("_root.cground.frame" + i);
i++;
}
_root.cground.attachMovie("nfinline", "ilbr", 1161);
_root.o_lnb = _root.cground.ilbr;
_root.o_lnb._width = _root.o_lnb._width * 1.8;
_root.o_lnb._height = _root.o_lnb._height * 1.8;
_root.o_lnb._x = POS_LNB;
_root.o_lnb._y = 330;
_root.o_lnb.ofire._visible = false;
var un = [];
var h = 1;
var g;
un[0] = Math.floor(Math.random() * 3) + 1;
i = 1;
while (i < 20) {
do {
h = Math.floor(Math.random() * 3) + 1;
} while (un[i - 1] == h);
un[i] = h;
i++;
}
var j = 0;
while (j < 3) {
i = 0;
while (i < 2) {
_root.o_frm[j].attachMovie("nboard_gr_" + un[i], "ibackgr_" + i, 10 + i);
_root.o_brd[(10 * j) + i] = eval ((("_root.cground.frame" + j) + ".ibackgr_") + i);
_root.o_brd[(10 * j) + i]._width = _root.o_brd[(10 * j) + i]._width * CS;
_root.o_brd[(10 * j) + i]._height = _root.o_brd[(10 * j) + i]._height * CS;
_root.o_brd[(10 * j) + i]._x = (i * 64) * CS;
_root.o_brd[(10 * j) + i]._y = (Math.floor(Math.random() * 15) - 284) + (158 * CS);
i++;
}
j++;
}
_root.SetRandPlanks();
i = 0;
while (i < 3) {
_root.o_frm[i].attachMovie("nplanka", "iplanka_" + i, 26 + i);
_root.o_plk[i] = eval ((("_root.cground.frame" + i) + ".iplanka_") + i);
_root.o_plk[i]._width = _root.o_plk[i]._width * CS;
_root.o_plk[i]._height = _root.o_plk[i]._height * CS;
_root.o_plk[i]._x = 0;
_root.o_plk[i]._y = -114;
i++;
}
i = 0;
while (i < 3) {
_root.o_frm[i].attachMovie("ngrd_" + (i + 1), "igrd_" + i, 50 + i);
_root.o_gr[i] = eval ((("_root.cground.frame" + i) + ".igrd_") + i);
_root.o_gr[i]._width = _root.o_gr[i]._width * CS;
_root.o_gr[i]._height = _root.o_gr[i]._height * CS;
_root.o_frm[i]._y = 284;
_root.o_frm[i]._x = (i * 320) * CS;
i++;
}
_root.cground.attachMovie("nline_hide_javel", "ilhj", 1401);
_root.o_ln_hide = _root.cground.ilhj;
_root.o_ln_hide._width = 550;
_root.o_ln_hide._height = _root.o_ln_hide._height * CS;
_root.o_ln_hide._y = 284;
_root.o_ln_hide._x = 0;
_root.o_ln_hide._visible = false;
_root.cground.attachMovie("ntbl_res1", "itbl_1", 1028);
_root.o_tbl[0] = _root.cground.itbl_1;
_root.o_tbl[0]._width = (_root.o_tbl[0]._width * CS) * 1.4;
_root.o_tbl[0]._height = (_root.o_tbl[0]._height * CS) * 1.4;
_root.o_tbl[0]._x = 30;
_root.o_tbl[0]._y = 150;
_root.o_tbl[0].gotoAndStop(1);
_root.cground.attachMovie("ntbl_res2", "itbl_2", 1029);
_root.o_tbl[1] = _root.cground.itbl_2;
_root.o_tbl[1]._width = (_root.o_tbl[1]._width * CS) * 1;
_root.o_tbl[1]._height = (_root.o_tbl[1]._height * CS) * 1;
_root.o_tbl[1]._x = 270;
_root.o_tbl[1]._y = 145;
_root.cground.attachMovie("ntblt_3", "itbl_3", 1030);
_root.o_tbl[2] = _root.cground.itbl_3;
_root.o_tbl[2]._width = (_root.o_tbl[2]._width * CS) * 1;
_root.o_tbl[2]._height = (_root.o_tbl[2]._height * CS) * 1;
_root.o_tbl[2]._x = 600;
_root.o_tbl[2]._y = 175;
var my_mcl = new MovieClipLoader();
myListener = new Object();
my_mcl.addListener(myListener);
my_mcl.loadClip(_root.LINK_BANERS_SWF, _root.o_tbl[2].cload);
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt.stop();
my_mcl.onLoadComplete = function (success) {
_root.bnr_loaded = true;
};
_root.o_menu.topline1._visible = false;
_root.o_menu.topline2._visible = false;
un[0] = Math.floor(Math.random() * 12) + 1;
i = 0;
while (i < 12) {
do {
h = Math.floor(Math.random() * 12) + 1;
} while (un[i - 1] == h);
un[i] = h;
i++;
}
var k = 0;
var j = 0;
while (j < 3) {
i = 0;
while (i < 3) {
_root.o_frm[j].attachMovie("nmus_" + un[k], "imsr_" + k, 65 + k);
_root.o_msr[k] = eval ((("_root.cground.frame" + j) + ".imsr_") + k);
_root.o_msr[k]._width = _root.o_msr[k]._width * CS;
_root.o_msr[k]._height = _root.o_msr[k]._height * CS;
_root.o_msr[k]._x = _root.pos_mus[i].x;
_root.o_msr[k]._y = _root.pos_mus[i].y;
k++;
i++;
}
j++;
}
_root.cground.attachMovie("nrat", "irat", 1200);
_root.o_rat = _root.cground.irat;
_root.o_rat._width = _root.o_rat._width * CS;
_root.o_rat._height = _root.o_rat._height * CS;
_root.o_rat._x = 300 * CS;
_root.o_rat._y = 310;
_root.o_rat.body_brs._visible = false;
_root.o_rat.body_run._visible = false;
_root.cground.attachMovie("njavelin", "ijav", 1400);
_root.o_jav = _root.cground.ijav;
_root.o_jav._width = _root.o_jav._width * CS;
_root.o_jav._height = _root.o_jav._height * CS;
_root.o_jav._x = 318;
_root.o_jav._y = 322;
_root.o_jav._rotation = 90;
_root.o_jav._visible = false;
_root.c_rat.SetDefault();
_root.c_jav.SetDefault();
i = 0;
while (i < 3) {
_root.o_frm[i].attachMovie("nmouse_ballon", "ims_ballon" + i, 255 + i);
_root.o_msb[i] = eval ((("_root.cground.frame" + i) + ".ims_ballon") + i);
_root.o_msb[i]._width = _root.o_msb[i]._width * CS;
_root.o_msb[i]._height = _root.o_msb[i]._height * CS;
_root.o_msb[i]._y = -191;
_root.o_msb[i]._x = 0;
_root.o_msb[i]._visible = false;
i++;
}
i = 0;
while (i < 3) {
_root.o_frm[i].attachMovie("nballon", "iballon" + i, 1260 + i);
_root.o_bln[i] = eval ((("_root.cground.frame" + i) + ".iballon") + i);
_root.o_bln[i]._width = _root.o_bln[i]._width * CS;
_root.o_bln[i]._height = _root.o_bln[i]._height * CS;
_root.o_bln[i]._y = -250;
_root.o_bln[i]._x = 50;
_root.o_bln[i]._visible = false;
_root.o_bln[i].gotoAndStop(2);
i++;
}
_root.cground.attachMovie("nrat_score", "irat_score", 1460);
_root.o_rsr = _root.cground.irat_score;
_root.o_rsr._width = _root.o_rsr._width * CS;
_root.o_rsr._height = _root.o_rsr._height * CS;
_root.o_rsr._y = 375;
_root.o_rsr._x = -70;
_root.o_rsr.gotoAndStop("stoprat");
var nn = [-40, -80, -100, -135, -200];
var nn2 = [-70, 450, 190, 320, 60];
i = 0;
while (i < 5) {
_root.cground.attachMovie("ncloud", "icloud" + i, 270 + i);
_root.o_cld[i] = eval ("_root.cground.icloud" + i);
_root.o_cld[i]._width = _root.o_cld[i]._width * 1.5;
_root.o_cld[i]._height = _root.o_cld[i]._height;
_root.o_cld[i]._y = nn[i];
_root.o_cld[i]._x = nn2[i] + Math.floor(Math.random() * 100);
i++;
}
var wwe = ["nf_Egg", "nf_Tomato", "nf_Tomato", "nf_Egg", "nf_Tomato", "nf_Egg", "nf_Tomato", "nf_Tomato", "nf_Egg", "nf_Tomato"];
var u = 0;
i = 0;
while (i < 10) {
if (i > 4) {
u = 1010;
}
_root.cground.attachMovie(wwe[i], ("i" + wwe[i]) + i, (370 + i) + u);
_root.o_etm[i] = eval (("_root.cground.i" + wwe[i]) + i);
_root.o_etm[i]._y = 550;
_root.o_etm[i].gotoAndPlay(1 + Math.floor(Math.random() * 25));
_root.o_etm[i].stop();
i++;
}
var wwe = ["nFlower_1", "nFlower_2", "nFlower_3", "nFlower_4", "nFlower_5", "nFlower_1", "nFlower_2", "nFlower_3", "nFlower_4", "nFlower_5"];
var u = 0;
i = 0;
while (i < 10) {
if (i > 4) {
u = 1021;
}
_root.cground.attachMovie(wwe[i], (("i" + wwe[i]) + "") + i, (381 + i) + u);
_root.o_flw[i] = eval (("_root.cground.i" + wwe[i]) + i);
_root.o_flw[i]._y = 500;
_root.o_flw[i].gotoAndPlay(1 + Math.floor(Math.random() * 25));
_root.o_flw[i].stop();
i++;
}
_root.SetRatLenta();
_root.o_menu.gotoAndStop(5);
_root.o_rcd._visible = false;
_root.o_rpr.gotoAndStop(1);
_root.c_menu.state = 1;
}
function OnTimer() {
if (_root.fbnr == 0) {
_root.fbnr = 1;
_root.o_tbl[2].cload.stop();
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt._visible = true;
_root.o_menu.omenu_top._visible = false;
}
if (_root.state_bras == 1) {
var _local2 = 0;
while (_local2 < 5) {
if (_root.o_etm[_local2]._y > -100) {
_root.o_etm[_local2]._y = _root.o_etm[_local2]._y - 15;
}
_local2++;
}
_local2 = 5;
while (_local2 < 10) {
if (_root.etm_endfall[_local2 - 5] != 0) {
if (_root.o_etm[_local2]._y < _root.etm_endfall[_local2 - 5]) {
_root.o_etm[_local2]._y = _root.o_etm[_local2]._y + 15;
} else {
_root.etm_endfall[_local2 - 5] = 0;
_root.o_etm[_local2].gotoAndStop("brok");
}
}
_local2++;
}
} else if (_root.state_bras == 2) {
var _local2 = 0;
while (_local2 < 5) {
if (_root.o_flw[_local2]._y > -100) {
_root.o_flw[_local2]._y = _root.o_flw[_local2]._y - 15;
}
_local2++;
}
_local2 = 5;
while (_local2 < 10) {
if (_root.etm_endfall[_local2 - 5] != 0) {
if (_root.o_flw[_local2]._y < _root.etm_endfall[_local2 - 5]) {
_root.o_flw[_local2]._y = _root.o_flw[_local2]._y + 15;
} else {
_root.etm_endfall[_local2 - 5] = 0;
_root.o_flw[_local2].stop();
}
}
_local2++;
}
}
if (_root.c_menu.state == 1) {
return(undefined);
}
if ((_root.o_lnb._visible == true) && ((_root.o_lnb._x > 650) || (_root.o_lnb._x < -150))) {
_root.o_lnb._visible = false;
} else if ((_root.o_lnb._visible == false) && ((_root.o_lnb._x < 650) && (_root.o_lnb._x > -150))) {
_root.o_lnb._visible = true;
}
if (_root.state == 0) {
if (_root.o_rat._currentframe == 1) {
var _local7 = Number;
_local7 = Math.floor(Math.random() * 30);
if (_local7 == 1) {
_local7 = Math.floor(Math.random() * 6) + 1;
if (_local7 > 4) {
_local7 = 1;
}
_root.o_rat.gotoAndPlay("a_" + _local7);
}
}
}
var _local3 = Math.round(_root.c_rat.step_dx);
if ((_root.state == 1) || (_root.state == 2)) {
var _local2 = 0;
while (_local2 < 3) {
_root.o_frm[_local2]._x = _root.o_frm[_local2]._x - _local3;
_local2++;
}
_root.o_rsr._x = _root.o_rsr._x - _local3;
_root.o_tbl[0]._x = _root.o_tbl[0]._x - _local3;
_root.o_tbl[1]._x = _root.o_tbl[1]._x - _local3;
_root.o_tbl[2]._x = _root.o_tbl[2]._x - _local3;
_local2 = 0;
while (_local2 < 5) {
_root.o_cld[_local2]._x = _root.o_cld[_local2]._x - _local3;
if (_root.o_cld[_local2]._x < -200) {
_root.o_cld[_local2]._x = 600;
}
_local2++;
}
if ((_root.o_rat._currentframe == 66) && (_root.c_rat.leg_run == false)) {
_root.c_rat.leg_run = true;
_root.c_rat.chg_frm = 10;
_root.c_rat.id_nf = 1;
_root.o_rat.legs_run.stop();
_root.o_rat.body_run.stop();
_root.c_rat.cnt_tikrun = 0;
}
if (_root.c_rat.leg_run == true) {
_root.c_rat.dx_usk = _root.c_rat.dx_usk + _root.c_rat.ADD_TO_USK;
_root.c_rat.now_frm = _root.c_rat.now_frm + _root.c_rat.dx_usk;
if (Math.round(_root.c_rat.now_frm) > 8) {
_root.c_rat.now_frm = 0;
}
var _local20 = Math.round(_root.c_rat.now_frm);
_root.o_rat.legs_run.gotoAndStop("f_" + _local20);
if (_root.state == 1) {
_root.o_rat.body_run.gotoAndStop("f_" + _local20);
}
}
_root.o_lnb._x = _root.o_lnb._x - _local3;
_root.c_rat.pxl_run = _root.c_rat.pxl_run + _local3;
if (_root.c_rat.pxl_run >= _root.c_rat.LNG_RUN) {
var _local15;
var _local19;
var _local18;
_local15 = _root.c_rat.minV[_root.c_rat.rtype];
_local19 = _root.c_rat.minF[_root.c_rat.rtype];
_local18 = _root.c_rat.minD[_root.c_rat.rtype];
if ((_root.c_rat.VV - _local15) >= _root.c_rat.stV[_root.c_rat.rtype]) {
_root.c_rat.VV = _root.c_rat.VV - _local15;
} else {
_root.c_rat.VV = _root.c_rat.stV[_root.c_rat.rtype];
}
if ((_root.c_rat.DD - _local18) >= _root.c_rat.stD[_root.c_rat.rtype]) {
_root.c_rat.DD = _root.c_rat.DD - _local18;
} else {
_root.c_rat.DD = _root.c_rat.stD[_root.c_rat.rtype];
}
if ((_root.c_rat.FF - _local19) >= _root.c_rat.stF[_root.c_rat.rtype]) {
_root.c_rat.FF = _root.c_rat.FF - _local19;
} else {
_root.c_rat.FF = _root.c_rat.stF[_root.c_rat.rtype];
}
_root.state = 3;
_root.o_lnb.ofire._visible = true;
_root.o_lnb.ofire.gotoAndPlay(1);
}
_root.c_rat.onTimer();
}
if (_root.state == 5) {
_root.c_rat.length_fly = _root.c_rat.length_fly + _root.c_jav.dx;
var _local24 = Math.floor(89 - u);
var _local25 = Math.floor(Math.sqrt(_root.c_rat.FF + (_root.c_rat.spd_V * _root.c_rat.spd_V)));
var _local27 = (_local25 * Math.sin((_local24 / 180) * 3.14)) * 0.7;
var _local29 = _root.c_jav.fulltime - _root.c_jav.timefly;
_root.c_jav.start_vy = _root.c_jav.start_vy - G;
var _local9 = true;
var _local2 = 0;
while (_local2 < 3) {
_root.o_frm[_local2]._x = _root.o_frm[_local2]._x - _root.c_jav.dx;
if ((_root.o_frm[_local2]._y + _root.c_jav.start_vy) >= 284) {
_root.o_frm[_local2]._y = _root.o_frm[_local2]._y + _root.c_jav.start_vy;
} else {
_root.o_frm[_local2]._y = 284;
_local9 = false;
}
_local2++;
}
_root.o_tbl[0]._x = _root.o_tbl[0]._x - _root.c_jav.dx;
_root.o_tbl[1]._x = _root.o_tbl[1]._x - _root.c_jav.dx;
_root.o_tbl[0]._y = _root.o_tbl[0]._y + _root.c_jav.start_vy;
_root.o_tbl[1]._y = _root.o_tbl[1]._y + _root.c_jav.start_vy;
_root.o_tbl[2]._x = _root.o_tbl[2]._x - _root.c_jav.dx;
_root.o_tbl[2]._y = _root.o_tbl[2]._y + _root.c_jav.start_vy;
_root.o_rsr._x = _root.o_rsr._x - _root.c_jav.dx;
_root.o_rsr._y = _root.o_rsr._y + _root.c_jav.start_vy;
_local2 = 0;
while (_local2 < 5) {
_root.o_cld[_local2]._y = _root.o_cld[_local2]._y + _root.c_jav.start_vy;
_root.o_cld[_local2]._x = _root.o_cld[_local2]._x - _root.c_jav.dx;
if (_root.o_cld[_local2]._x < -200) {
_root.o_cld[_local2]._x = 600;
}
_local2++;
}
if (_local9 == true) {
_root.o_rat._y = _root.o_rat._y + _root.c_jav.start_vy;
_root.o_lnb._y = _root.o_lnb._y + _root.c_jav.start_vy;
} else {
_root.o_rat._y = 310;
_root.o_lnb._y = 330;
var _local16 = 0;
if (_root.c_jav.angle > 70) {
_local16 = 10;
}
if ((((_root.o_jav._y + _root.c_jav.angle) - 14) - _local16) < 362) {
_root.o_jav._y = _root.o_jav._y + ((_root.c_jav.angle - 14) - _local16);
}
_root.o_ln_hide._visible = true;
}
_root.o_rat._x = _root.o_rat._x - _root.c_jav.dx;
_root.o_lnb._x = _root.o_lnb._x - _root.c_jav.dx;
_root.c_jav.next_point = _root.c_jav.next_point - _root.c_jav.dx;
if (_root.c_jav.next_point <= ((-3 + (77.5 * Math.cos(((80 - _root.o_jav._rotation) / 180) * 3.14))) + _root.o_jav._x)) {
_root.c_jav.cnt_frm++;
_root.c_jav.next_point = _root.c_jav.next_point + (CS * 320);
}
if (_root.c_jav.timefly > 0) {
_root.c_jav.timefly--;
if (_root.c_jav.timefly <= 0) {
_root.o_tbl[2]._y = 175;
var _local10 = _root.o_jav._x + (77.5 * Math.cos(((80 - _root.o_jav._rotation) / 180) * 3.14));
_root.c_jav.xkon = _root.o_jav._x + (77.5 * Math.cos(((80 - _root.o_jav._rotation) / 180) * 3.14));
_root.c_rat.last_bras = _root.c_jav.xkon;
var _local7 = 2;
while ((_root.o_frm[_root.ar_mv[_local7]]._x + 60) > _local10) {
_local7--;
}
var _local12 = (((_local10 - (_root.o_frm[_root.ar_mv[_local7]]._x + 60)) / (CS * 320)) * 10) + (_root.c_jav.cnt_frm * 10);
var _local13 = Math.sqrt((_root.c_rat.FF - 1200) + (((_root.c_rat.VV * _root.c_rat.VV) * 0.7) * 0.7));
_local13 = _local13 * 0.7073882691672;
var _local23 = Math.floor(_local13 * 0.7);
_local13 = ((_local13 * _local23) / 275) * 10;
var _local8 = (_local12 / _local13) * 100;
if (_root.c_rat.max_record < _local12) {
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s28");
}
_root.o_rcd._visible = true;
_root.o_rpr.gotoAndPlay(1);
}
if (_local8 >= 94) {
if (_root.c_rat.rtype == 0) {
var _local15 = 30;
var _local19 = 300;
var _local18 = 4;
} else if (_root.c_rat.rtype == 1) {
var _local15 = 100;
var _local19 = 200;
var _local18 = 3;
} else if (_root.c_rat.rtype == 2) {
var _local15 = 40;
var _local19 = 100;
var _local18 = 8;
}
_root.c_rat.VV = _root.c_rat.VV + (Math.floor(_local15 * (6 - (100 - _local8))) / 600);
_root.c_rat.FF = _root.c_rat.FF + (Math.floor(_local19 * (6 - (100 - _local8))) / 6);
_root.c_rat.DD = _root.c_rat.DD + (Math.floor(_local18 * (6 - (100 - _local8))) / 600);
if (_local8 > 92) {
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s28");
}
_root.state_bras = 2;
_root.SetEggsFlowers();
var _local5 = 0;
while (_local5 < 10) {
_root.o_flw[_local5].play();
_local5++;
}
}
}
_local8 = (_local12 / _root.c_rat.max_record) * 100;
if ((_local8 < 41) && (_root.c_rat.max_record > 0)) {
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s17");
}
_root.state_bras = 1;
_root.SetEggsTomato();
var _local5 = 0;
while (_local5 < 10) {
_root.o_etm[_local5].play();
_local5++;
}
}
_root.o_rsr.gotoAndPlay("forward");
_root.c_jav.rat_src_now = Math.floor(_local12 * 10) / 10;
if (_root.c_rsr.last_bras <= (Math.floor(_local12 * 10) / 10)) {
_root.c_rsr.dir_move = 1;
if ((_root.o_rsr._x < -70) || (_root.c_rat.last_bras == -1)) {
_root.o_rsr._x = -70;
}
_root.o_rsr.gotoAndPlay("forward");
} else {
if ((_root.c_rsr.last_bras - (Math.floor(_local12 * 10) / 10)) > 15) {
_root.o_rsr._x = 650;
}
_root.c_rsr.dir_move = 2;
_root.o_rsr.gotoAndPlay("back");
}
_root.o_rsr._y = 375;
_root.c_rsr.last_bras = Math.floor(_local12 * 10) / 10;
if (_root.c_rsr.last_bras < 0) {
_root.c_rsr.last_bras = -1;
}
_root.state = 4;
if (_root.c_jav.rat_src_now > _root.c_rat.max_record) {
_root.c_rat.max_record = _root.c_jav.rat_src_now;
_root.o_tbl[1].imax = _root.c_jav.rat_src_now;
if (_root.c_jav.rat_src_now == Math.floor(_root.c_jav.rat_src_now)) {
_root.o_tbl[1].imax = _root.c_jav.rat_src_now + ".0";
}
}
}
}
_root.c_jav.FlyRotation();
_root.o_jav._rotation = _root.c_jav.now_rotat;
}
if ((_root.state == 4) || (_root.state == 5)) {
var _local28 = _root.o_jav._x + (77.5 * Math.cos(((80 - _root.o_jav._rotation) / 180) * 3.14));
var _local6;
var _local4 = 0;
while (_local4 < 2) {
_local6 = (_root.c_jav.step_metr - (2 - _local4)) * 10;
if (_local6 >= 30) {
if (_local6 <= (_root.c_jav.cnt_frm * 10)) {
_root.o_bln[_root.ar_mv[_local4]]._y = _root.o_bln[_root.ar_mv[_local4]]._y - 4;
}
}
_local4++;
}
}
if (_root.state == 4) {
if (_root.c_rsr.dir_move == 1) {
if ((_root.o_rsr._x - 50) < _root.c_jav.xkon) {
_root.o_rsr._x = _root.o_rsr._x + 5;
var _local11 = _root.c_jav.xkon - (_root.o_rsr._x - 50);
_local11 = _root.c_jav.rat_src_now - (Math.floor((_local11 / 275) * 100) / 10);
if (_local11 > _root.c_jav.rat_src_now) {
_local11 = _root.c_jav.rat_src_now;
}
if (_local11 > 0) {
var _local17 = _local11;
var _local21;
_local21 = Math.floor((_local17 - Math.floor(_local17)) * 10);
_root.o_rsr.resl = (Math.floor(_local17) + ".") + _local21;
if (_root.c_jav.rat_src_now == _local11) {
_root.o_rsr.resl = _root.c_jav.rat_src_now;
if (_root.c_jav.rat_src_now == Math.floor(_root.c_jav.rat_src_now)) {
_root.o_rsr.resl = _root.c_jav.rat_src_now + ".0";
}
}
} else {
_root.o_rsr.resl = "0.0";
}
} else if (_root.o_rsr._currentframe < 17) {
_root.o_rsr.gotoAndPlay("rstop");
_root.btnmenu._visible = true;
}
} else if (_root.c_rsr.dir_move == 2) {
if ((_root.o_rsr._x - 50) > _root.c_jav.xkon) {
_root.o_rsr._x = _root.o_rsr._x - 5;
var _local11 = (_root.o_rsr._x - 50) - _root.c_jav.xkon;
_local11 = _root.c_jav.rat_src_now + (Math.floor((_local11 / 275) * 100) / 10);
if (_local11 < _root.c_jav.rat_src_now) {
_local11 = _root.c_jav.rat_src_now;
}
if (_local11 > 0) {
var _local17 = _local11;
var _local21 = Math.floor((_local17 - Math.floor(_local17)) * 10);
_root.o_rsr.resl = (Math.floor(_local17) + ".") + _local21;
if (_root.c_jav.rat_src_now == _local11) {
_root.o_rsr.resl = _root.c_jav.rat_src_now;
if (_root.c_jav.rat_src_now == Math.floor(_root.c_jav.rat_src_now)) {
_root.o_rsr.resl = _root.c_jav.rat_src_now + ".0";
}
}
} else {
_root.o_rsr.resl = "0.0";
}
} else if (_root.o_rsr._currentframe >= 25) {
_root.o_rsr.gotoAndPlay("rstop");
_root.btnmenu._visible = true;
}
}
}
if (_root.o_frm[_root.ar_mv[0]]._x <= (-320 * CS)) {
_root.o_frm[_root.ar_mv[0]]._x = _root.o_frm[_root.ar_mv[0]]._x + (960 * CS);
if (_root.o_lnb._x < -100) {
_root.o_msb[_root.ar_mv[0]]._visible = true;
_root.o_bln[_root.ar_mv[0]]._visible = true;
_root.c_jav.step_metr++;
_root.o_bln[_root.ar_mv[0]].vl = "" + (_root.c_jav.step_metr * 10);
if (_root.o_tbl[2]._x < -50) {
_root.o_tbl[2]._x = 600;
if (_root.bnr_loaded) {
var _local26 = Math.floor(Math.random() * _root.o_tbl[2].cload._totalframes) + 1;
_root.o_tbl[2].cload.gotoAndStop(_local26);
_root.o_tbl[2].cdflt._visible = false;
_root.o_tbl[2].cload._visible = true;
} else {
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt._visible = true;
}
}
if ((_root.c_jav.step_metr * 10) < _root.c_rat.max_record) {
_root.o_bln[_root.ar_mv[0]].gotoAndStop(1);
} else {
_root.o_bln[_root.ar_mv[0]].gotoAndStop(2);
}
var _local14 = _root.o_frm[2]._y;
if (((_local14 - 284) > 300) && (_root.c_jav.all_frm >= _root.c_jav.step_metr)) {
_local14 = (_local14 - 284) - 300;
} else {
_local14 = 0;
}
_root.o_bln[_root.ar_mv[0]]._y = -250 - _local14;
} else {
_root.o_msb[_root.ar_mv[0]]._visible = false;
_root.o_bln[_root.ar_mv[0]]._visible = false;
_root.c_jav.step_metr = 2;
}
var _local22 = _root.ar_mv[0];
_root.ar_mv[0] = _root.ar_mv[1];
_root.ar_mv[1] = _root.ar_mv[2];
_root.ar_mv[2] = _local22;
}
_root.c_jav.onTimer(_root.state);
if ((_root.state == 2) || ((_root.state == 3) && (_root.o_rat.body_brs._visible == true))) {
_root.o_jav._x = (318 + _root.o_rat.body_brs.jx) + 30;
_root.o_jav._y = 322 + _root.o_rat.body_brs.jy;
_root.c_jav.SetAngle();
_root.o_jav._rotation = _root.c_jav.angle;
}
_local3 = Math.round(_root.c_rat.step_dx);
if (_root.state == 3) {
var _local2 = 0;
while (_local2 < 3) {
_root.o_frm[_local2]._x = _root.o_frm[_local2]._x - _local3;
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
_root.o_cld[_local2]._x = _root.o_cld[_local2]._x - _local3;
if (_root.o_cld[_local2]._x < -200) {
_root.o_cld[_local2]._x = 600;
}
_local2++;
}
_root.o_rsr._x = _root.o_rsr._x - _local3;
if (_root.c_rat.leg_run == true) {
if ((_root.c_rat.dx_usk - (11 * _root.c_rat.ADD_TO_USK)) > 0) {
_root.c_rat.dx_usk = _root.c_rat.dx_usk - (11 * _root.c_rat.ADD_TO_USK);
} else {
_root.c_rat.dx_usk = 0;
_root.btnmenu._visible = true;
}
if (_local3 < 5) {
if (_root.o_rat._currentframe < 74) {
_root.o_rat.gotoAndPlay("torm");
if (_root.o_jav._visible == true) {
_root.o_jav._visible = false;
}
}
if (_local3 <= 0) {
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s10");
}
_root.state = 7;
_root.c_rat.otdih = 60;
}
} else {
_root.c_rat.now_frm = _root.c_rat.now_frm + _root.c_rat.dx_usk;
if (Math.round(_root.c_rat.now_frm) > 8) {
_root.c_rat.now_frm = 1;
}
var _local20 = Math.round(_root.c_rat.now_frm);
_root.o_rat.legs_run.gotoAndStop("f_" + _local20);
if (_root.o_rat.body_run._visible == true) {
_root.o_rat.body_run.gotoAndStop("f_" + _local20);
}
}
}
_root.o_lnb._x = _root.o_lnb._x - _local3;
_root.c_rat.onTimerZamedl();
}
if (_root.state == 7) {
_root.c_rat.otdih--;
if (_root.c_rat.otdih <= 0) {
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s10");
}
_root.o_rat.gotoAndPlay("vdoh");
_root.c_rat.otdih = 50 + Math.floor(Math.random() * 90);
}
}
}
function MouseClickP(x, y) {
if ((_root.c_menu.state == 1) && ((x != -1) && (y != -1))) {
return(undefined);
}
if ((_root.o_rsr.rrun == true) && ((x != -1) && (y != -1))) {
return(undefined);
}
var _local5;
var _local9;
var _local4;
var _local17 = "";
_local4 = _root.c_rat.VV;
_local5 = Math.floor((_local4 - Math.floor(_local4)) * 10);
_local9 = Math.floor((_local4 - Math.floor(_local4)) * 100) - (_local5 * 10);
_root.o_tbl[0].pspd = (((Math.floor(_local4) + ".") + _local5) + "") + _local9;
_local4 = _root.c_rat.FF / 100;
_local5 = Math.floor((_local4 - Math.floor(_local4)) * 10);
_local9 = Math.floor((_local4 - Math.floor(_local4)) * 100) - (_local5 * 10);
_root.o_tbl[0].pstr = (((Math.floor(_local4) + ".") + _local5) + "") + _local9;
_local4 = _root.c_rat.DD * 20;
_local5 = Math.floor((_local4 - Math.floor(_local4)) * 10);
_local9 = Math.floor((_local4 - Math.floor(_local4)) * 100) - (_local5 * 10);
_root.o_tbl[0].pdex = (((Math.floor(_local4) + ".") + _local5) + "") + _local9;
_root.o_rcd._visible = false;
if ((_root.state == 0) && (_root.o_rat.p_astart == false)) {
_root.o_rat.gotoAndPlay("astart");
_root.btnmenu._visible = false;
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s0");
}
_root.c_rat.SetSpeedPrir();
}
if (_root.state == 5) {
if ((_root.c_jav.fulltime - _root.c_jav.timefly) <= 0) {
_root.state = 4;
}
}
if (_root.state == 2) {
if (Math.floor(89 - _root.c_jav.angle) > 15) {
if (_root.sndplay) {
_root.csnd.gotoAndPlay("s20");
}
_root.c_jav.cnt_frm = -1;
_root.o_rat.stop();
_root.o_rat.body_run.stop();
_root.o_rat.body_brs.stop();
var _local8 = Math.floor(89 - _root.c_jav.angle);
if ((_local8 > 42) && (_local8 < 48)) {
_local8 = _local8 + (Math.floor(Math.random() * 10) - 5);
}
var _local6 = _root.c_rat.spd_V + Math.floor(Math.random() * _root.c_rat.DD);
_local6 = _local6 * 0.67;
if (_local6 > 100) {
G = 200 / _local6;
_local6 = 100;
} else {
G = 2;
}
var _local12 = Math.floor(Math.sqrt((_root.c_rat.FF - 1000) + (_local6 * _local6)));
var _local11 = _local12 * Math.cos((_local8 / 180) * 3.14);
var _local10 = (_local12 * Math.sin((_local8 / 180) * 3.14)) * 0.7;
_root.c_jav.SetDxDy(_local11, _local10);
_root.c_jav.SetTimeFly(Math.floor((2 * _local10) / G));
_root.c_jav.SetAnglRotation((15 + ((_root.c_jav.now_frm * 2) * 1.5)) / _root.c_jav.timefly);
_root.c_jav.start_vy = _local10;
_root.c_jav.all_frm = Math.floor(((((2 * _local10) / G) * _local11) - (_root.o_lnb._x - _root.o_jav._x)) / 275);
_root.c_rat.length_finish = Math.floor(_root.o_lnb._x - 278);
_root.c_jav.next_point = _root.o_lnb._x;
_root.state = 5;
}
}
if (_root.state == 1) {
_root.o_rat.body_brs._visible = true;
_root.o_rat.body_brs.gotoAndPlay("start_br");
_root.o_rat.body_run._visible = false;
_root.o_jav._visible = true;
_root.state = 2;
}
if (((_root.state == 4) || (_root.state == 7)) || ((x == -1) || (y == -1))) {
var _local2 = 0;
while (_local2 < 3) {
_root.o_frm[_root.ar_mv[_local2]]._x = (320 * CS) * _local2;
_root.o_frm[_local2]._y = 284;
_root.o_msb[_root.ar_mv[_local2]]._visible = false;
_root.o_bln[_root.ar_mv[_local2]]._visible = false;
_local2++;
}
_root.o_lnb._x = POS_LNB;
_root.o_rat.gotoAndPlay(1);
_root.o_rat.body_run._visible = false;
_root.o_rat.body_brs._visible = false;
_root.o_rat._x = 300 * CS;
_root.o_rat._y = 310;
_root.o_rat.gotoAndPlay(1);
_root.c_rat.SetDefault();
_root.c_jav.SetDefault();
_root.o_jav._visible = false;
_root.o_jav._x = 318;
_root.o_jav._y = 322;
_root.o_lnb._x = POS_LNB;
_root.o_lnb._y = 330;
_root.c_jav._y = 322;
_root.o_ln_hide._visible = false;
_root.o_lnb.ofire._visible = false;
_root.o_rpr.gotoAndStop(1);
_root.o_tbl[0]._x = 30;
_root.o_tbl[1]._x = 270;
_root.o_tbl[0]._y = 150;
_root.o_tbl[1]._y = 145;
_root.o_tbl[2]._x = 550 + Math.floor(Math.random() * 250);
if (_root.bnr_loaded) {
var _local14 = Math.floor(Math.random() * _root.o_tbl[2].cload._totalframes) + 1;
_root.o_tbl[2].cload.gotoAndStop(_local14);
_root.o_tbl[2].cdflt._visible = false;
_root.o_tbl[2].cload._visible = true;
} else {
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt._visible = true;
}
_root.o_tbl[2]._y = 175;
_root.SetRandPlanks();
_root.SetRatLenta();
if (_root.c_rsr.last_bras >= 0) {
var _local13 = Math.floor(_root.c_rsr.last_bras / 10);
_root.o_rsr._x = (((_root.o_lnb._x + 2) + (275 * _local13)) + 60) + Math.floor((_root.c_rsr.last_bras - (_local13 * 10)) * 27.5);
} else {
_root.o_rsr._x = -70;
}
if (_root.state_bras == 1) {
SetEggsTomato();
}
if (_root.state_bras == 2) {
SetEggsFlowers();
}
_root.state_bras = 0;
var _local7 = [-40, -80, -100, -135, -200];
var _local3 = 0;
while (_local3 < 5) {
_root.o_cld[_local3]._y = _local7[_local3];
_local3++;
}
_root.state = 0;
}
if (exitclick == 1) {
exitclick = 0;
_root.btnmenu._visible = true;
}
}
function SetEggsTomato() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 10) {
if (_local2 > 4) {
_local3 = 1010;
}
_root.o_etm[_local2]._y = (550 - Math.floor(Math.random() * 120)) - (_local3 * 1.5);
if (_local3 == 0) {
_root.o_etm[_local2]._x = ((200 + (30 * _local2)) + 15) - Math.floor(Math.random() * 30);
} else {
_root.etm_endfall[_local2 - 5] = 300 + Math.floor(Math.random() * 50);
_root.o_etm[_local2]._x = ((100 + (81 * (_local2 - 5))) + 30) - Math.floor(Math.random() * 60);
_root.o_etm[_local2]._y = _root.o_etm[_local2]._y - Math.floor(Math.random() * 400);
}
_root.o_etm[_local2].gotoAndStop(1 + Math.floor(Math.random() * 25));
_local2++;
}
}
function SetEggsFlowers() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 10) {
if (_local2 > 4) {
_local3 = 1021;
}
_root.o_flw[_local2]._y = (550 - Math.floor(Math.random() * 120)) - (_local3 * 1.5);
if (_local3 == 0) {
_root.o_flw[_local2]._x = ((200 + (30 * _local2)) + 15) - Math.floor(Math.random() * 30);
} else {
_root.etm_endfall[_local2 - 5] = 300 + Math.floor(Math.random() * 50);
_root.o_flw[_local2]._x = ((100 + (81 * (_local2 - 5))) + 30) - Math.floor(Math.random() * 60);
_root.o_flw[_local2]._y = _root.o_flw[_local2]._y - Math.floor(Math.random() * 400);
}
_root.o_flw[_local2].gotoAndStop(1 + Math.floor(Math.random() * 25));
_local2++;
}
}
function SetRandPlanks() {
var _local2 = [];
var _local5 = 0;
while (_local5 < 2) {
_local2[_local5] = new Number();
_local5++;
}
var _local4 = 0;
while (_local4 < 3) {
do {
_local2[0] = Math.floor(Math.random() * 5);
} while (_local2[0] == 0);
do {
_local2[1] = Math.floor(Math.random() * 5);
} while ((_local2[1] == 0) || (Math.abs(_local2[0] - _local2[1]) <= 1));
var _local3 = 0;
while (_local3 < 2) {
_root.o_brd[(10 * _local4) + _local3]._x = (_local2[_local3] * 64) * CS;
_local3++;
}
_local4++;
}
}
function SetRatLenta() {
if (_root.c_rat.rtype == 0) {
_root.o_rat.bngrn._visible = true;
_root.o_rat.bnred._visible = false;
_root.o_rat.bnblu._visible = false;
_root.o_rat.bngrn2._visible = true;
_root.o_rat.bnred2._visible = false;
_root.o_rat.bnblu2._visible = false;
_root.o_rat.body_brs.bngrn._visible = true;
_root.o_rat.body_brs.bnred._visible = false;
_root.o_rat.body_brs.bnblu._visible = false;
_root.o_rat.body_run.bngrn._visible = true;
_root.o_rat.body_run.bnred._visible = false;
_root.o_rat.body_run.bnblu._visible = false;
} else if (_root.c_rat.rtype == 1) {
_root.o_rat.bngrn._visible = false;
_root.o_rat.bnred._visible = false;
_root.o_rat.bnblu._visible = true;
_root.o_rat.bngrn2._visible = false;
_root.o_rat.bnred2._visible = false;
_root.o_rat.bnblu2._visible = true;
_root.o_rat.body_brs.bngrn._visible = false;
_root.o_rat.body_brs.bnred._visible = false;
_root.o_rat.body_brs.bnblu._visible = true;
_root.o_rat.body_run.bngrn._visible = false;
_root.o_rat.body_run.bnred._visible = false;
_root.o_rat.body_run.bnblu._visible = true;
} else if (_root.c_rat.rtype == 2) {
_root.o_rat.bngrn._visible = false;
_root.o_rat.bnred._visible = true;
_root.o_rat.bnblu._visible = false;
_root.o_rat.bngrn2._visible = false;
_root.o_rat.bnred2._visible = true;
_root.o_rat.bnblu2._visible = false;
_root.o_rat.body_brs.bngrn._visible = false;
_root.o_rat.body_brs.bnred._visible = true;
_root.o_rat.body_brs.bnblu._visible = false;
_root.o_rat.body_run.bngrn._visible = false;
_root.o_rat.body_run.bnred._visible = true;
_root.o_rat.body_run.bnblu._visible = false;
}
}
function CalcURLLink() {
var _local6 = new String();
_local6 = "";
_local6 = _root.c_rat.max_record * 10;
_local6 = _local6 + "\t";
_local6 = _local6 + "0";
_local6 = _local6 + "\t";
_local6 = _local6 + _root.o_tbl[0].plrname;
if (_root.c_rat.rtype == 0) {
_local6 = _local6 + " (Strong)";
} else if (_root.c_rat.rtype == 1) {
_local6 = _local6 + " (Quick)";
} else if (_root.c_rat.rtype == 2) {
_local6 = _local6 + " (Smart)";
}
_local6 = _local6 + "\trat\texe";
var _local17 = [123, 232, 128, 2, 211, 127, 100, 51, 22, 33];
var _local15 = 0;
var _local14 = 0;
var _local11 = _local6.length;
var _local2 = 0;
while (_local2 < _local11) {
_local15 = _local15 + _local6.charCodeAt(_local2);
_local14 = _local14 + (_local6.charCodeAt(_local2) ^ 175);
_local2++;
}
_local15 = _local15 % 256;
_local14 = _local14 % 256;
var _local12 = [];
_local12[0] = String.fromCharCode(_local15);
_local12[1] = String.fromCharCode(_local14);
_local2 = 0;
while (_local2 < _local11) {
_local12[2 + _local2] = _local6.charAt(_local2);
_local2++;
}
var _local16 = new String();
_local16[0] = 0;
var _local13 = 193;
var _local8 = new String();
_local8 = "";
_local11 = _local11 + 2;
_local2 = 0;
while (_local2 < _local11) {
var _local9 = ord(_local12[_local2]);
var _local7 = _local9 ^ _local13;
_local7 = _local7 ^ _local17[_local2 % 10];
_local8 = "" + _local7;
var _local4 = new String();
_local4 = _local8;
var _local10 = _local4.length;
var _local5 = new String();
_local5 = "";
var _local3 = 0;
while (_local3 < (3 - _local10)) {
_local5 = _local5 + "0";
_local3++;
}
_local8 = (("" + _local5) + "") + _local4;
_local4 = _local8;
_local16 = _local16 + _local4;
_local13 = _local9;
_local2++;
}
var _local18 = "http://msnbroadcast.com/cgi-bin/gameres.pl?g=rat&e=" + _local16;
getURL (_local18, "blank");
}
function LoadDataSwf() {
var _local3 = new MovieClipLoader();
myListener1 = new Object();
_local3.addListener(myListener1);
_local3.loadClip(_root.LINK_TOP_SWF, _root.o_menu.omenu_top);
_local3.onLoadComplete = function (success) {
_root.topclip_def = 0;
if (_root.o_menu._currentframe == 6) {
_root.o_menu.defclip._visible = false;
}
};
var data_val = new String();
var tmpstr = new String();
tmpstr = "";
var allstr = new String();
allstr = "";
var pogoda = new LoadVars();
pogoda.load(_root.LINK_DATA_TOP);
pogoda.onLoad = function (success) {
if (success == false) {
return(undefined);
}
if (_root.o_menu._currentframe == 6) {
_root.o_menu.defclip._visible = false;
_root.o_menu.topline1._visible = true;
_root.o_menu.topline2._visible = true;
}
_root.topclip_def = 0;
_root.topclip_3data = 1;
data_val = pogoda.toString();
var _local2 = new Integer();
_local2 = PRSFndStr(data_val, "%3CBODY%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2);
_local2 = 0;
_local2 = PRSFndStr(data_val, "%3CB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 7);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
tmpstr = data_val.slice(0, _local2);
allstr = unescape(tmpstr) + unescape("%0D");
_root.o_menu.strt1 = allstr;
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 10);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 10);
_local2 = PRSFndStr(data_val, "%3CB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 7);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
tmpstr = data_val.slice(0, _local2);
allstr = "1st Place:" + unescape("%0D");
allstr = allstr + unescape(tmpstr);
_root.o_menu.strt2 = allstr;
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 10);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 10);
_local2 = PRSFndStr(data_val, "%3CB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 7);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
tmpstr = data_val.slice(0, _local2);
allstr = "2nd Place:" + unescape("%0D");
allstr = allstr + unescape(tmpstr);
_root.o_menu.strt3 = allstr;
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 10);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 10);
_local2 = PRSFndStr(data_val, "%3CB%3E");
if (_local2 == -1) {
return(undefined);
}
data_val = data_val.slice(_local2 + 7);
_local2 = PRSFndStr(data_val, "%3C%2FB%3E");
if (_local2 == -1) {
return(undefined);
}
tmpstr = data_val.slice(0, _local2);
allstr = "3rd Place:" + unescape("%0D");
allstr = allstr + unescape(tmpstr);
_root.o_menu.strt4 = allstr;
};
}
var LINK_BANERS_SWF = "http://msnbroadcast.com/rats_spears/UPDATE/rats_logo.swf";
var LINK_TOP_SWF = "http://msnbroadcast.com/rats_spears/UPDATE/top_players.swf";
var LINK_DATA_TOP = "http://msnbroadcast.com/rats_spears/UPDATE/data1000.dat";
var CS = 0.86;
var G = 2;
var o_frm = [];
var o_bgr;
var o_brd = [];
var o_plk = [];
var o_gr = [];
var o_tbl = [];
var o_msr = [];
var o_rat;
var o_ln_hide;
var o_msb = [];
var o_bln = [];
var o_rsr;
var c_rsr = new CRatsrc();
var o_cld = [];
var o_etm = [];
var etm_endfall = [];
var o_flw = [];
var o_jav;
var c_jav = new CJavelin();
var c_menu = new CMenu();
var o_lnb;
var uuu = 0;
var s1 = 0;
var s2 = 0;
var sset = 21;
var W_WIDTH = 755;
var W_HEIGHT = 160;
var state = 0;
var state_bras = 0;
var pos_mus = [];
var i = 0;
while (i < 3) {
pos_mus[i] = new CPoint();
i++;
}
pos_mus[0].SetPoint(10, 0);
pos_mus[1].SetPoint(185, 20);
pos_mus[2].SetPoint(80, 40);
var ar_mv = new Array(0, 1, 2);
var c_rat = new CRat();
var MAX_RATRUN = (1500 * CS);
var POS_LNB = ((1660 * CS) + 5);
var exitclick = 0;
var stexithelp = 0;
var sndplay = true;
var fbnr = 0;
var topclip_def = 1;
var topclip_3data = 0;
var bnr_loaded = new Boolean();
bnr_loaded = false;
var swfdata_loaded = new Boolean();
swfdata_loaded = false;
startGame();
var yy = 0;
Instance of Symbol 231 MovieClip "mouseC" in Frame 1
onClipEvent (mouseDown) {
if ((_root._ymouse > 365) && (_root._xmouse < 220)) {
return(undefined);
}
if ((_root._ymouse > 40) && (_root._xmouse > 80)) {
_root.MouseClickP(1, 1);
}
}
onClipEvent (keyDown) {
if (Key.getCode() != 32) {
return(undefined);
}
if ((_root._ymouse > 40) && (_root._xmouse > 80)) {
_root.MouseClickP(1, 1);
}
}
Frame 2
OnTimer();
Frame 3
gotoAndPlay (2);
Symbol 9 MovieClip Frame 10
this.gotoAndPlay(5);
Symbol 66 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
this.bnred.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bngrn.gotoAndStop(1);
Symbol 92 MovieClip Frame 2
this.bnred.gotoAndStop(2);
this.bnblu.gotoAndStop(2);
this.bngrn.gotoAndStop(2);
Symbol 92 MovieClip Frame 3
this.bnred.gotoAndStop(3);
this.bnblu.gotoAndStop(3);
this.bngrn.gotoAndStop(3);
Symbol 92 MovieClip Frame 4
this.bnred.gotoAndStop(4);
this.bnblu.gotoAndStop(4);
this.bngrn.gotoAndStop(4);
Symbol 92 MovieClip Frame 5
this.bnred.gotoAndStop(5);
this.bnblu.gotoAndStop(5);
this.bngrn.gotoAndStop(5);
Symbol 92 MovieClip Frame 6
this.bnred.gotoAndStop(6);
this.bnblu.gotoAndStop(6);
this.bngrn.gotoAndStop(6);
Symbol 92 MovieClip Frame 7
this.bnred.gotoAndStop(7);
this.bnblu.gotoAndStop(7);
this.bngrn.gotoAndStop(7);
Symbol 92 MovieClip Frame 8
this.bnred.gotoAndStop(8);
this.bnblu.gotoAndStop(8);
this.bngrn.gotoAndStop(8);
Symbol 95 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 106 MovieClip [nratbody_br] Frame 1
jx = 0;
jy = 0;
this.bngrn.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bnred.gotoAndStop(1);
Symbol 106 MovieClip [nratbody_br] Frame 4
this.bngrn.gotoAndStop(4);
this.bnblu.gotoAndStop(4);
this.bnred.gotoAndStop(4);
Symbol 106 MovieClip [nratbody_br] Frame 7
jx = -28;
jy = 3;
this.bngrn.gotoAndStop(7);
this.bnblu.gotoAndStop(7);
this.bnred.gotoAndStop(7);
Symbol 106 MovieClip [nratbody_br] Frame 10
jx = -46;
jy = -8;
this.bngrn.gotoAndStop(10);
this.bnblu.gotoAndStop(10);
this.bnred.gotoAndStop(10);
Symbol 106 MovieClip [nratbody_br] Frame 13
jx = -51;
jy = -11;
this.bngrn.gotoAndStop(13);
this.bnblu.gotoAndStop(13);
this.bnred.gotoAndStop(13);
Symbol 106 MovieClip [nratbody_br] Frame 16
jx = -63;
jy = -20;
this.bngrn.gotoAndStop(16);
this.bnblu.gotoAndStop(16);
this.bnred.gotoAndStop(16);
Symbol 106 MovieClip [nratbody_br] Frame 19
jx = -79;
jy = -16;
this.bngrn.gotoAndStop(19);
this.bnblu.gotoAndStop(19);
this.bnred.gotoAndStop(19);
Symbol 106 MovieClip [nratbody_br] Frame 22
jx = -93;
jy = -24;
this.bngrn.gotoAndStop(22);
this.bnblu.gotoAndStop(22);
this.bnred.gotoAndStop(22);
Symbol 106 MovieClip [nratbody_br] Frame 25
jx = -104;
jy = -22;
this.bngrn.gotoAndStop(25);
this.bnblu.gotoAndStop(25);
this.bnred.gotoAndStop(25);
Symbol 106 MovieClip [nratbody_br] Frame 28
jx = -107;
jy = -15;
this.bngrn.gotoAndStop(28);
this.bnblu.gotoAndStop(28);
this.bnred.gotoAndStop(28);
Symbol 106 MovieClip [nratbody_br] Frame 31
jx = -128;
jy = -7;
this.bngrn.gotoAndStop(31);
this.bnblu.gotoAndStop(31);
this.bnred.gotoAndStop(31);
Symbol 106 MovieClip [nratbody_br] Frame 51
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 153 MovieClip [nrat] Frame 1
this.p_astart = false;
this.bngrn.gotoAndStop(1);
this.bnred.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 2
this.bngrn.gotoAndStop(1);
this.bnred.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 13
gotoAndStop (1);
Symbol 153 MovieClip [nrat] Frame 14
this.bngrn.gotoAndStop(1);
this.bnred.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 28
gotoAndStop (1);
Symbol 153 MovieClip [nrat] Frame 29
this.bngrn.gotoAndStop(1);
this.bnred.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 43
gotoAndStop (1);
Symbol 153 MovieClip [nrat] Frame 44
this.bngrn.gotoAndStop(1);
this.bnred.gotoAndStop(1);
this.bnblu.gotoAndStop(1);
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 55
gotoAndStop (1);
Symbol 153 MovieClip [nrat] Frame 56
this.p_astart = true;
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 58
this.bngrn.gotoAndStop(58);
this.bnred.gotoAndStop(58);
this.bnblu.gotoAndStop(58);
Symbol 153 MovieClip [nrat] Frame 60
this.bngrn.gotoAndStop(60);
this.bnred.gotoAndStop(60);
this.bnblu.gotoAndStop(60);
Symbol 153 MovieClip [nrat] Frame 62
this.bngrn.gotoAndStop(62);
this.bnred.gotoAndStop(62);
this.bnblu.gotoAndStop(62);
Symbol 153 MovieClip [nrat] Frame 64
this.bngrn.gotoAndStop(64);
this.bnred.gotoAndStop(64);
this.bnblu.gotoAndStop(64);
Symbol 153 MovieClip [nrat] Frame 65
if (_root.state == 0) {
_root.state = 1;
}
Symbol 153 MovieClip [nrat] Frame 66
if (_root.state == 1) {
if (this.body_run._visible == false) {
this.body_run._visible = true;
}
} else if (_root.state == 2) {
if (this.body_brs._visible == false) {
this.body_brs._visible = true;
}
}
this.bngrn2.gotoAndStop(106);
this.bnblu2.gotoAndStop(106);
this.bnred2.gotoAndStop(106);
Symbol 153 MovieClip [nrat] Frame 73
gotoAndPlay ("ar1");
Symbol 153 MovieClip [nrat] Frame 74
this.bngrn2.gotoAndStop(74);
this.bnblu2.gotoAndStop(74);
this.bnred2.gotoAndStop(74);
Symbol 153 MovieClip [nrat] Frame 76
this.bngrn2.gotoAndStop(76);
this.bnblu2.gotoAndStop(76);
this.bnred2.gotoAndStop(76);
Symbol 153 MovieClip [nrat] Frame 78
this.bngrn2.gotoAndStop(78);
this.bnblu2.gotoAndStop(78);
this.bnred2.gotoAndStop(78);
Symbol 153 MovieClip [nrat] Frame 80
this.bngrn2.gotoAndStop(80);
this.bnblu2.gotoAndStop(80);
this.bnred2.gotoAndStop(80);
Symbol 153 MovieClip [nrat] Frame 82
this.bngrn2.gotoAndStop(82);
this.bnblu2.gotoAndStop(82);
this.bnred2.gotoAndStop(82);
Symbol 153 MovieClip [nrat] Frame 84
this.bngrn2.gotoAndStop(84);
this.bnblu2.gotoAndStop(84);
this.bnred2.gotoAndStop(84);
Symbol 153 MovieClip [nrat] Frame 86
this.bngrn2.gotoAndStop(86);
this.bnblu2.gotoAndStop(86);
this.bnred2.gotoAndStop(86);
Symbol 153 MovieClip [nrat] Frame 88
this.bngrn2.gotoAndStop(88);
this.bnblu2.gotoAndStop(88);
this.bnred2.gotoAndStop(88);
Symbol 153 MovieClip [nrat] Frame 90
this.bngrn2.gotoAndStop(90);
this.bnblu2.gotoAndStop(90);
this.bnred2.gotoAndStop(90);
Symbol 153 MovieClip [nrat] Frame 92
this.bngrn2.gotoAndStop(92);
this.bnblu2.gotoAndStop(92);
this.bnred2.gotoAndStop(92);
Symbol 153 MovieClip [nrat] Frame 94
this.bngrn2.gotoAndStop(94);
this.bnblu2.gotoAndStop(94);
this.bnred2.gotoAndStop(94);
Symbol 153 MovieClip [nrat] Frame 96
this.bngrn2.gotoAndStop(96);
this.bnblu2.gotoAndStop(96);
this.bnred2.gotoAndStop(96);
Symbol 153 MovieClip [nrat] Frame 98
this.bngrn2.gotoAndStop(98);
this.bnblu2.gotoAndStop(98);
this.bnred2.gotoAndStop(98);
Symbol 153 MovieClip [nrat] Frame 100
this.bngrn2.gotoAndStop(100);
this.bnblu2.gotoAndStop(100);
this.bnred2.gotoAndStop(100);
Symbol 153 MovieClip [nrat] Frame 102
this.bngrn2.gotoAndStop(102);
this.bnblu2.gotoAndStop(102);
this.bnred2.gotoAndStop(102);
Symbol 153 MovieClip [nrat] Frame 104
this.bngrn2.gotoAndStop(104);
this.bnblu2.gotoAndStop(104);
this.bnred2.gotoAndStop(104);
Symbol 153 MovieClip [nrat] Frame 105
stop();
Symbol 163 MovieClip [nballon] Frame 1
stop();
Symbol 163 MovieClip [nballon] Frame 2
stop();
Symbol 188 MovieClip [nRat_score] Frame 1
var rrun = true;
Symbol 188 MovieClip [nRat_score] Frame 16
gotoAndPlay ("forward");
Symbol 188 MovieClip [nRat_score] Frame 17
rrun = true;
Symbol 188 MovieClip [nRat_score] Frame 24
rrun = false;
stop();
Symbol 188 MovieClip [nRat_score] Frame 25
rrun = true;
Symbol 188 MovieClip [nRat_score] Frame 40
gotoAndPlay ("back");
Symbol 191 MovieClip [nf_Tomato] Frame 30
gotoAndPlay ("start_rt");
Symbol 191 MovieClip [nf_Tomato] Frame 31
stop();
Symbol 194 MovieClip [nf_Egg] Frame 30
gotoAndPlay ("start_rt");
Symbol 194 MovieClip [nf_Egg] Frame 31
stop();
Symbol 196 MovieClip [nFlower_1] Frame 30
gotoAndPlay (1);
Symbol 199 MovieClip [nFlower_2] Frame 30
gotoAndPlay (1);
Symbol 201 MovieClip [nFlower_3] Frame 30
gotoAndPlay (1);
Symbol 203 MovieClip [nFlower_4] Frame 30
gotoAndPlay (1);
Symbol 205 MovieClip [nFlower_5] Frame 30
gotoAndPlay (1);
Symbol 230 MovieClip Frame 20
this.stop();
Symbol 234 Button
on (release) {
_root.o_menu.omenu_top._visible = false;
if ((stexithelp == 0) || (_root.c_menu.state == 1)) {
return(undefined);
}
_root.c_menu.state = 1;
_root.o_menu.gotoAndStop(1);
_root.o_menu._visible = true;
if (_root.c_rat.max_record == 0) {
_root.o_menu.bPublish._alpha = 40;
} else {
_root.o_menu.bPublish._alpha = 100;
}
}
Symbol 237 Button
on (release) {
getURL ("http://msnbroadcast.com", "blank");
}
Symbol 243 MovieClip Frame 1
if (_root.sndplay == 1) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 243 MovieClip Frame 2
_root.sndplay = false;
Symbol 243 MovieClip Frame 3
_root.sndplay = true;
Symbol 245 Button
on (release) {
if (_root.c_rat.rtype == 0) {
this.gotoAndStop(2);
} else if (_root.c_rat.rtype == 1) {
this.gotoAndStop(3);
} else if (_root.c_rat.rtype == 2) {
this.gotoAndStop(4);
}
this.inpname = _root.o_tbl[0].plrname;
}
Symbol 247 Button
on (release) {
this.gotoAndStop(6);
this.omenu_top._visible = true;
if (_root.topclip_def == 1) {
_root.o_menu.defclip._visible = true;
}
if (_root.topclip_3data == 1) {
_root.o_menu.topline1._visible = true;
_root.o_menu.topline2._visible = true;
}
if (_root.swfdata_loaded == false) {
_root.swfdata_loaded = true;
_root.LoadDataSwf();
}
}
Symbol 252 Button
on (release) {
if (_root.c_rat.max_record > 0) {
_root.CalcURLLink();
}
}
Symbol 256 Button
on (release) {
this.gotoAndStop(5);
}
Symbol 258 Button
on (release) {
_root.c_menu.state = 0;
_root.o_menu._visible = false;
}
Symbol 261 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 263 Button
on (release) {
this.gotoAndStop(3);
}
Symbol 265 Button
on (release) {
this.gotoAndStop(4);
}
Symbol 268 Button
on (release) {
this.gotoAndStop(1);
if (_root.c_rat.max_record == 0) {
_root.o_menu.bPublish._alpha = 40;
} else {
_root.o_menu.bPublish._alpha = 100;
}
}
Symbol 273 Button
on (release) {
_root.o_menu._visible = false;
_root.c_menu.state = 0;
if (this._currentframe == 2) {
_root.c_rat.rtype = 0;
} else if (this._currentframe == 3) {
_root.c_rat.rtype = 1;
} else if (this._currentframe == 4) {
_root.c_rat.rtype = 2;
}
_root.c_rat.SetDefParam();
_root.o_tbl[0].gotoAndStop(_root.c_rat.rtype + 1);
_root.o_tbl[1].imax = "0.0";
_root.c_jav.rat_src_now = 0;
_root.exitclick = 1;
if (this.inpname != "") {
_root.o_tbl[0].plrname = this.inpname;
} else {
_root.o_tbl[0].plrname = "Rat";
}
_root.MouseClickP(-1, -1);
_root.c_rsr.Default();
_root.o_rsr._x = -70;
_root.o_rsr._visible = true;
}
Symbol 293 Button
on (release) {
if (_root.stexithelp == 0) {
_root.stexithelp = 1;
_root.o_menu._visible = false;
_root.c_menu.state = 0;
} else {
this.gotoAndStop(1);
if (_root.c_rat.max_record == 0) {
_root.o_menu.bPublish._alpha = 40;
} else {
_root.o_menu.bPublish._alpha = 100;
}
}
}
Symbol 304 Button
on (release) {
getURL ("http://msnbroadcast.com/linux/rats_spears/?r=rats_online", "blank");
}
Symbol 309 Button
on (release) {
getURL ("http://msnbroadcast.com/mac/rats_spears/?r=rats_online", "blank");
}
Symbol 314 Button
on (release) {
getURL ("http://msnbroadcast.com/palm/rats_spears/?r=rats_online", "blank");
}
Symbol 319 Button
on (release) {
getURL ("http://msnbroadcast.com/pocket/rats_spears/?r=rats_online", "blank");
}
Symbol 324 Button
on (release) {
getURL ("http://msnbroadcast.com/smartphone/rats_spears/?r=rats_online", "blank");
}
Symbol 329 Button
on (release) {
getURL ("http://msnbroadcast.com/symbian/rats_spears/?r=rats_online", "blank");
}
Symbol 334 Button
on (release) {
getURL ("http://msnbroadcast.com/download.html?r=rats_online", "blank");
}
Symbol 335 Button
on (release) {
_root.o_menu.defclip._visible = false;
if (_root.stexithelp == 0) {
_root.stexithelp = 1;
_root.o_menu._visible = false;
_root.c_menu.state = 0;
} else {
this.gotoAndStop(1);
if (_root.c_rat.max_record == 0) {
_root.o_menu.bPublish._alpha = 40;
} else {
_root.o_menu.bPublish._alpha = 100;
}
}
if (_root.topclip_3data == 1) {
_root.o_menu.topline1._visible = false;
_root.o_menu.topline2._visible = false;
}
this.omenu_top._visible = false;
}
Symbol 340 MovieClip Frame 1
this.stop();
Instance of Symbol 243 MovieClip in Symbol 340 MovieClip Frame 1
on (release) {
if (this._currentframe == 3) {
this.gotoAndStop(2);
} else if (this._currentframe == 2) {
this.gotoAndStop(3);
}
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 32
stop();
Symbol 347 MovieClip Frame 53
stop();
Symbol 347 MovieClip Frame 79
stop();
Symbol 347 MovieClip Frame 103
stop();
Symbol 347 MovieClip Frame 138
stop();
Symbol 348 MovieClip [__Packages.CRat] Frame 0
class CRat
{
var pxl_run, step_dx, add_spd, leg_run, id_nf, chg_frm, cnt_tikrun, dx_usk, now_frm, length_fly, spd_V, otdih, max_record, rtype, spd_ADD1, spd_ADD2;
function CRat () {
pxl_run = 0;
step_dx = 7;
add_spd = STEP_ADDSPD;
leg_run = false;
id_nf = 1;
chg_frm = 0;
cnt_tikrun = 0;
dx_usk = 0.533;
now_frm = 0;
length_fly = 0;
spd_V = 0;
otdih = 30;
max_record = 0;
rtype = 0;
}
function SetDefault() {
pxl_run = 0;
step_dx = 7;
leg_run = false;
id_nf = 1;
chg_frm = 0;
cnt_tikrun = 0;
dx_usk = 0.533;
now_frm = 0;
length_fly = 0;
spd_V = 0;
}
function onTimer() {
step_dx = step_dx + SPD_PRIR;
if (pxl_run < (LNG_RUN * 0.8)) {
spd_V = spd_V + spd_ADD1;
} else {
spd_V = spd_V + spd_ADD2;
}
}
function onTimerZamedl() {
if ((step_dx - 0.4) > 0) {
step_dx = step_dx - 0.4;
} else {
step_dx = 0;
}
}
function SetSpeedPrir() {
spd_V = 0;
spd_ADD1 = VV * 0.0028;
spd_ADD2 = VV * 0.037;
}
function SetStartParamOfType() {
if (rtype == 0) {
VV = stV[0];
FF = stF[0];
DD = stD[0];
} else if (rtype == 1) {
VV = stV[1];
FF = stF[1];
DD = stD[1];
} else if (rtype == 2) {
VV = stV[2];
FF = stF[2];
DD = stD[2];
}
}
function SetDefParam() {
SetStartParamOfType();
max_record = 0;
}
var CS = 0.86;
var LNG_RUN = 1340 * CRat.prototype.CS;
var VV = 60;
var FF = 6000;
var DD = 3;
var strVFD = [60, 5000, 3];
var stV = [60, 70, 50];
var stF = [6000, 5000, 7000];
var stD = [3, 3, 5];
var minV = [0.15, 0.5, 0.2];
var minF = [150, 100, 50];
var minD = [0.02, 0.02, 0.04];
var STEP_ADDSPD = 10;
var SPD_PRIR = 0.048;
var ADD_TO_USK = 0.006;
}
Symbol 349 MovieClip [__Packages.CJavelin] Frame 0
class CJavelin
{
var angle, now_frm, dx, dy, rot_dr, now_rotat, start_vy, cnt_frm, step_metr, next_point, px, py, timefly, fulltime;
function CJavelin () {
}
function CRat() {
angle = 89;
now_frm = 0;
dx = 0;
dy = 0;
rot_dr = 0;
now_rotat = 0;
start_vy = 0;
cnt_frm = 0;
step_metr = 2;
}
function SetDefault() {
angle = 89;
now_frm = 0;
dx = 0;
dy = 0;
rot_dr = 0;
now_rotat = 0;
start_vy = 0;
cnt_frm = 0;
next_point = 0;
step_metr = 2;
}
function onTimer(st) {
if ((st == 2) || (st == 3)) {
if (now_frm < 49) {
now_frm++;
}
}
}
function SetAngle() {
angle = 89 - (now_frm * 1.5);
}
function CalcPos(rx) {
px = rx - now_frm;
py = 300;
}
function SetDxDy(sdx, sdy) {
dx = sdx;
dy = sdy;
}
function SetTimeFly(tm) {
timefly = tm;
fulltime = tm;
}
function SetAnglRotation(rt) {
now_rotat = 76 - Math.floor(now_frm * 1.5);
rot_dr = rt;
}
function FlyRotation() {
now_rotat = now_rotat + rot_dr;
}
}
Symbol 350 MovieClip [__Packages.CRatsrc] Frame 0
class CRatsrc
{
var last_bras, pos_rat_otn, dir_move;
function CRatsrc () {
last_bras = -1;
pos_rat_otn = 0;
dir_move = 1;
}
function Default() {
last_bras = -1;
pos_rat_otn = 0;
dir_move = 1;
}
}
Symbol 351 MovieClip [__Packages.CPoint] Frame 0
class CPoint
{
var x, y;
function CPoint () {
x = 0;
y = 0;
}
function SetPoint(sx, sy) {
x = sx;
y = sy;
}
}
Symbol 352 MovieClip [__Packages.CMenu] Frame 0
class CMenu
{
var state;
function CMenu () {
state = 0;
}
}