Symbol 6 Button
on (press) {
_root.hero.gameZone.mus.setVolume(25);
}
Symbol 8 Button
on (press) {
_root.hero.gameZone.mus.setVolume(0);
}
Symbol 9 Button
on (press) {
_root.hero.gameZone.mus.setVolume(35);
}
Symbol 10 Button
on (press) {
_root.hero.gameZone.mus.setVolume(50);
}
Symbol 11 Button
on (press) {
_root.hero.gameZone.mus.setVolume(100);
}
Symbol 12 Button
on (press) {
_root.hero.gameZone.mus.setVolume(75);
}
Symbol 15 Button
on (press) {
_root.hero.gameZone.gotoAndStop(6);
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 2
stop();
Symbol 19 Button
on (release) {
getURL (" http://www.dwarfgames.com/?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=run2live", "_blank");
}
Symbol 20 MovieClip [camera] Frame 1
function init() {
var _local1 = Stage.scaleMode;
Stage.scaleMode = "exactFit";
w = Stage.width;
h = Stage.height;
Stage.scaleMode = _local1;
recalcParentMatrix();
cameraStep();
onEnterFrame = cameraStep;
onUnload = resetStage;
}
function recalcParentMatrix() {
mc = _parent;
if (level) {
var _local5 = level - 1;
} else {
var _local5 = 1000;
}
while (((_local5--) && (mc)) && (mc != _root)) {
var _local4 = new flash.geom.Transform(mc);
if (!parentM) {
parentM = _local4.matrix;
} else {
parentM.concat(_local4.matrix);
}
mc = mc._parent;
}
cameraTrans = new flash.geom.Transform(this);
topLevelTrans = new flash.geom.Transform(mc);
resetM = topLevelTrans.matrix;
resetTopLevelColor = topLevelTrans.colorTransform;
}
function cameraStep() {
topLevelTrans.colorTransform = cameraTrans.colorTransform;
curM = cameraTrans.matrix;
if (parentM) {
curM.concat(parentM);
}
curM.invert();
curM.translate(w / 2, h / 2);
topLevelTrans.matrix = curM;
}
function resetStage() {
topLevelTrans.matrix = resetM;
topLevelTrans.colorTransform = resetTopLevelColor;
}
var level = 0;
cameraFrame._visible = false;
init();
Instance of Symbol 16 MovieClip "CameraMenu" in Symbol 20 MovieClip [camera] Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.CameraMenuOn < 1) {
this.gotoAndStop(1);
}
if (_root.hero.gameZone.CameraMenuOn > 0) {
this.gotoAndStop(2);
}
}
Symbol 22 MovieClip [p5] Frame 1
_visible = false;
Symbol 44 Button
on (press) {
_root.hero.gameZone.gotoAndPlay(3);
}
Symbol 45 MovieClip Frame 282
stop();
Symbol 68 MovieClip Frame 19
stop();
Symbol 70 MovieClip Frame 60
stop();
_root.hero.gameZone.gotoAndPlay(3);
Symbol 89 MovieClip Frame 1
this.onRelease = function () {
_root.getURL("http://www.dwarfgames.com/");
};
Symbol 89 MovieClip Frame 301
_root.hero.gameZone.gotoAndPlay(4);
Symbol 91 MovieClip Frame 16
stop();
Symbol 132 MovieClip Frame 1
stop();
Instance of Symbol 110 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 29;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 119 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 128 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 23;
}
Instance of Symbol 128 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 128 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 26;
}
Symbol 135 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.skill_1 = 1;
_root.hero.gameZone.my_game_data.data.skill_2 = 5;
_root.hero.gameZone.my_game_data.data.skill_3 = 1;
_root.hero.gameZone.my_game_data.data.skill_4 = 1.3;
_root.hero.gameZone.my_game_data.data.gamelvl = 1;
_root.hero.gameZone.my_game_data.data.pointlvl = 10;
_root.hero.gameZone.gotoAndStop(8);
}
Symbol 138 Button
on (press) {
if (_root.hero.gameZone.my_game_data.data.gamelvl == 2) {
_root.hero.gameZone.gotoAndStop(26);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 3) {
_root.hero.gameZone.gotoAndStop(26);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 4) {
_root.hero.gameZone.gotoAndStop(30);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 5) {
_root.hero.gameZone.gotoAndStop(34);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 6) {
_root.hero.gameZone.gotoAndStop(38);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 7) {
_root.hero.gameZone.gotoAndStop(42);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 8) {
_root.hero.gameZone.gotoAndStop(46);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 9) {
_root.hero.gameZone.gotoAndStop(50);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 10) {
_root.hero.gameZone.gotoAndStop(54);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 11) {
_root.hero.gameZone.gotoAndStop(58);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 12) {
_root.hero.gameZone.gotoAndStop(62);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 13) {
_root.hero.gameZone.gotoAndStop(66);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 14) {
_root.hero.gameZone.gotoAndStop(70);
}
if (_root.hero.gameZone.my_game_data.data.gamelvl == 15) {
_root.hero.gameZone.gotoAndStop(74);
}
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 142 Button
on (release) {
getURL ("http://www.dwarfgames.com/?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=run2live", "_blank");
}
Symbol 145 Button
on (press) {
var o = {n:[15, 6, 15, 0, 2, 8, 2, 13, 2, 5, 6, 13, 5, 6, 14, 4], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:my_game_data.data.GameRunScores});
}
Instance of Symbol 139 MovieClip in Symbol 146 MovieClip Frame 52
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.gamelvl < 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 146 MovieClip Frame 90
stop();
Symbol 153 MovieClip Frame 65
stop();
Instance of Symbol 152 MovieClip in Symbol 153 MovieClip Frame 65
onClipEvent (enterFrame) {
this._alpha = this._alpha + 1;
if (this._alpha > 95) {
this._alpha = this._alpha + 0;
}
}
Symbol 157 Button
on (press) {
_root.hero.gameZone._quality = "LOW";
}
Symbol 159 Button
on (press) {
_root.hero.gameZone._quality = "MEDIUM";
}
Symbol 161 Button
on (press) {
_root.hero.gameZone._quality = "HIGH";
}
Symbol 163 Button
on (press) {
_root.hero.gameZone._quality = "BEST";
}
Symbol 169 Button
on (press) {
_root.hero.gameZone.prevFrame();
}
Symbol 198 Button
on (press) {
_root.hero.gameZone.nextFrame();
}
Symbol 218 Button
on (press) {
_root.hero.gameZone.gotoAndStop(14);
}
Symbol 263 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_3 = _root.hero.gameZone.my_game_data.data.skill_3 + 1;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl - 5;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 266 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_3 = _root.hero.gameZone.my_game_data.data.skill_3 - 1;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl + 5;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 1
stop();
Instance of Symbol 268 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 273 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 274 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_2 = _root.hero.gameZone.my_game_data.data.skill_2 + 0.2;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl - 2;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 275 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_2 = _root.hero.gameZone.my_game_data.data.skill_2 - 0.2;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl + 2;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 1
stop();
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
trace(_root.hero.gameZone.my_game_data.data.skill_2);
}
Symbol 277 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 3
stop();
Symbol 278 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_1 = _root.hero.gameZone.my_game_data.data.skill_1 - 0.1;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl - 3;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 279 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_1 = _root.hero.gameZone.my_game_data.data.skill_1 + 0.1;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl + 3;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 1
stop();
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 > 0.9) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 281 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 3
stop();
Symbol 282 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_4 = _root.hero.gameZone.my_game_data.data.skill_4 + 0.4;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl - 4;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 283 Button
on (press) {
_root.hero.gameZone.my_game_data.data.skill_4 = _root.hero.gameZone.my_game_data.data.skill_4 - 0.4;
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl + 4;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 1
stop();
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 < 1.4) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 285 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 3
stop();
Symbol 288 MovieClip Frame 15
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 292 MovieClip Frame 15
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 296 MovieClip Frame 15
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 15
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
stop();
Symbol 321 MovieClip Frame 1
_parent.addBox(this);
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 1
_visible = false;
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
stop();
Symbol 370 MovieClip Frame 4
stop();
Instance of Symbol 370 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 6) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.skill_2 > 6.6) {
this.gotoAndStop(3);
}
if (_root.hero.gameZone.my_game_data.data.skill_2 > 7.2) {
this.gotoAndStop(4);
}
}
Symbol 372 MovieClip Frame 1
onEnterFrame = function () {
_root.hero.gameZone.Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
};
Symbol 372 MovieClip Frame 19
onEnterFrame = function () {
Uskorenie = _root.hero.gameZone.my_game_data.data.skill_4 - (_root.hero.gameZone.my_game_data.data.skill_4 / 4);
_root.hero.gameZone.Runspeed = _root.hero.gameZone.my_game_data.data.skill_2 + Uskorenie;
};
Symbol 372 MovieClip Frame 34
onEnterFrame = function () {
Uskorenie = _root.hero.gameZone.my_game_data.data.skill_4 - (_root.hero.gameZone.my_game_data.data.skill_4 / 3);
_root.hero.gameZone.Runspeed = _root.hero.gameZone.my_game_data.data.skill_2 + Uskorenie;
};
Symbol 372 MovieClip Frame 43
onEnterFrame = function () {
Uskorenie = _root.hero.gameZone.my_game_data.data.skill_4 - (_root.hero.gameZone.my_game_data.data.skill_4 / 2);
_root.hero.gameZone.Runspeed = _root.hero.gameZone.my_game_data.data.skill_2 + Uskorenie;
};
Symbol 372 MovieClip Frame 53
onEnterFrame = function () {
Uskorenie = _root.hero.gameZone.my_game_data.data.skill_4;
_root.hero.gameZone.Runspeed = _root.hero.gameZone.my_game_data.data.skill_2 + Uskorenie;
};
stop();
Symbol 383 MovieClip Frame 6
stop();
Symbol 402 MovieClip Frame 1
_parent.addBonus(this);
stop();
Symbol 402 MovieClip Frame 19
stop();
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 30;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 30;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 7;
}
Symbol 488 Button
on (press) {
_root.hero.gameZone.gotoAndStop(6);
}
Symbol 489 MovieClip Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("bbe49a56", this, 10301, true);
mochi.as2.MochiServices.connect("9ca5c7d804dbbb1f");
var CPMStarContentSpotID = "2946Q20EB180C";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=2946Q20EB180C");
stop();
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
function mailTo() {
getURL ("mailto:mrfuby@gmail.com");
}
function link() {
getURL ("http://halyal.com/", "_self");
}
var myMenu = new ContextMenu();
var myItem1 = new ContextMenuItem("\u041D\u0430\u0448 \u0441\u0430\u0439\u0442", link);
var myItem2 = new ContextMenuItem("\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u043F\u0438\u0441\u044C\u043C\u043E", mailTo, true);
var myItem3 = new ContextMenuItem("Run 2 Live", function () {
}, true, false);
myMenu.customItems.push(myItem3);
myMenu.hideBuiltInItems();
_root.menu = myMenu;
var CameraMenuOn;
CameraMenuOn = 0;
Symbol 489 MovieClip Frame 3
stop();
Symbol 489 MovieClip Frame 4
stop();
Symbol 489 MovieClip Frame 5
fscommand ("allowscale", "false");
mus = new Sound();
mus.attachSound("music3");
mus.start(0, 1000);
CameraMenuOn = 0;
var my_game_data = SharedObject.getLocal("nameSharedObject");
my_game_data.data.skill_1 = 1;
my_game_data.data.skill_2 = 5;
my_game_data.data.skill_3 = 1;
my_game_data.data.skill_4 = 1.3;
my_game_data.data.gamelvl = 1;
my_game_data.data.pointlvl = 10;
my_game_data.data.GameRunScores = 0;
Symbol 489 MovieClip Frame 6
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 27 MovieClip [fps_counter] "fps_counter" in Symbol 489 MovieClip Frame 6
onClipEvent (load) {
fps = 0;
avg = 0;
fpscounter = 0;
averagecounter = 0;
avg_text = "0.0";
full_fps = 30;
sec = 1000;
startTimer = getTimer();
startTime = startTimer;
}
onClipEvent (enterFrame) {
thisTimer = getTimer();
averagecounter++;
avg = String(int((averagecounter * 1000) / (thisTimer - startTime)));
if ((thisTimer - startTimer) >= sec) {
fps = fpscounter;
fpscounter = 0;
startTimer = getTimer();
} else {
fpscounter++;
}
avg_text = avg.substring(0, 2) + avg.substring(2, 3);
desplay.text = avg_text;
if (avg_text > 29) {
_quality = "HIGH";
} else if ((7 < avg_text) < 25) {
_quality = "MEDIUM";
} else if (avg_text < 5) {
_quality = "LOW";
}
_root.hero.gameZone.optionsQuality.text = _quality;
}
Symbol 489 MovieClip Frame 7
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 7
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 8
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip "fadeff" in Symbol 489 MovieClip Frame 8
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 200 MovieClip in Symbol 489 MovieClip Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 489 MovieClip Frame 9
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 10
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Symbol 489 MovieClip Frame 11
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 11
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 12
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Symbol 489 MovieClip Frame 13
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip "fadeff" in Symbol 489 MovieClip Frame 13
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 489 MovieClip Frame 14
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 14
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 15
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 91 MovieClip "fadeff" in Symbol 489 MovieClip Frame 15
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 489 MovieClip Frame 16
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 16
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 17
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
Instance of Symbol 91 MovieClip "fadeff" in Symbol 489 MovieClip Frame 17
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 489 MovieClip Frame 18
var GameScoreArr = [];
GameScoreArr = [length];
GameScoreArr = [];
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
stop();
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 350 MovieClip in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[0])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[1])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[2])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[3])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[4])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[5])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.GameScoreArr[6])) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 10;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Symbol 489 MovieClip Frame 19
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 2;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 7;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + 25;
play();
Instance of Symbol 91 MovieClip "fadeff" in Symbol 489 MovieClip Frame 19
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 489 MovieClip Frame 20
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 20
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 21
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 91 MovieClip "fadeff" in Symbol 489 MovieClip Frame 21
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 489 MovieClip Frame 22
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = this._x - 2;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = this._x - 2;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 489 MovieClip Frame 23
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 3;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (70 + random(10));
play();
};
Instance of Symbol 200 MovieClip in Symbol 489 MovieClip Frame 23
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 489 MovieClip Frame 24
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 24
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 25
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 26
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 26
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 27
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 4;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (30 + random(20));
play();
};
Symbol 489 MovieClip Frame 28
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 28
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 29
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 30
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
this._x = this._x - 1;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
this._x = this._x - 1;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (load) {
this._x = this._x - 1;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 30
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 31
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 5;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 10;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (40 + random(50));
play();
};
Symbol 489 MovieClip Frame 32
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 32
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 33
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 34
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
this._x = this._x - 1;
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
this._x = this._x - 1;
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 230) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
this._x = this._x - 1;
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
this._x = this._x - 1;
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
this._x = this._x - 1;
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 230) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 35
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 6;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 4;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (120 + random(40));
Symbol 489 MovieClip Frame 36
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 36
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 37
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 38
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + 15;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + 11;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + 15;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + 15;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 442 MovieClip in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + 13;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 39
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 7;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 3;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (150 + random(90));
Instance of Symbol 200 MovieClip in Symbol 489 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 489 MovieClip Frame 40
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 40
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 41
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 42
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 20;
}
if (this._alpha < 10) {
this._x = -3000;
}
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = this._x + 15;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = this._x - 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 300) {
this._x = this._x - 13;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 43
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 8;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (180 + random(60));
Symbol 489 MovieClip Frame 44
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 44
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 45
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 46
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 150) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 150) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 150) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 150) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 150) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 150) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 46
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 47
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 9;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (180 + random(40));
Symbol 489 MovieClip Frame 48
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 48
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 49
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 50
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = this._x - 8;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = this._x + 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 442 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 51
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 10;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 3;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (200 + random(20));
Symbol 489 MovieClip Frame 52
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 52
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 53
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 54
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 462 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 460 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
this._x = this._x + 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 54
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 55
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 11;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 4;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (140 + random(50));
Symbol 489 MovieClip Frame 56
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 56
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 57
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 58
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
this._x = this._x + 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 58
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 59
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 12;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 3;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (400 + random(100));
Symbol 489 MovieClip Frame 60
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 60
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 61
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 62
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 8;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 8;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 270) {
this._x = this._x - 8;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = this._x - 3;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 330) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 430) {
this._x = this._x - 9;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 62
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Symbol 489 MovieClip Frame 63
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 13;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 4;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (320 + random(40));
Symbol 489 MovieClip Frame 64
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 64
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 65
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 66
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = this._x + 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 10;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 8;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 10;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 10;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 8;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = this._x - 2;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 489 MovieClip Frame 67
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 14;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (420 + random(60));
Symbol 489 MovieClip Frame 68
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 68
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 69
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 70
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 321 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero.p2)) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._x = -2000;
}
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
this._x = this._x - 1;
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 9;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
}
Symbol 489 MovieClip Frame 71
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 15;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (580 + random(200));
Symbol 489 MovieClip Frame 72
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 72
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 489 MovieClip Frame 73
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 273 MovieClip in Symbol 489 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 > 5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 5) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 4) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 489 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_2 > 8) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 281 MovieClip in Symbol 489 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_1 < 0.5) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 3) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 285 MovieClip in Symbol 489 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_4 > 4) {
this.gotoAndStop(3);
} else {
if (_root.hero.gameZone.my_game_data.data.pointlvl < 4) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 289 MovieClip in Symbol 489 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 293 MovieClip in Symbol 489 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 297 MovieClip in Symbol 489 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 301 MovieClip in Symbol 489 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 489 MovieClip Frame 74
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 1;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
}
speedY = speedY + grav;
speedY = ((speedY > maxSpeedY) ? (maxSpeedY) : (speedY));
hero._y = hero._y + speedY;
checkHitPlatform();
jump = (((speedY < 5) && (speedY > 1)) ? true : (jump));
if ((!shoot) && (hero._currentframe < 4)) {
if (jump) {
hero.gotoAndStop(3);
} else if (oldX != hero._x) {
hero.gotoAndStop(2);
BG_1 = 1;
BG_2 = 2;
BG_3 = 3;
BG_4 = 4;
} else if (hero._currentframe < 4) {
hero.gotoAndStop(1);
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
}
}
oldX = hero._x;
}
function checkHitPlatform() {
var _local3 = boxes.length;
while (_local3--) {
var _local2 = boxes[_local3];
if (_local2.hitTest(hero.p1)) {
BG_1 = 0;
BG_2 = 0;
BG_3 = 0;
BG_4 = 0;
if (hero._xscale > 0) {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
} else {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
}
} else if (_local2.hitTest(hero.p2)) {
jump = false;
speedY = 0;
hero._y = (_local2._y - (_local2._height / 2)) - hhy;
Jump_Count = Level_Jump_Count;
_root.hero.gameZone.hero.jump_count_text.text = 1;
} else if (_local2.hitTest(hero.p3)) {
if (hero._xscale > 0) {
hero._x = (_local2._x + (_local2._width / 2)) + hhx;
} else {
hero._x = (_local2._x - (_local2._width / 2)) - hhx;
}
} else if (_local2.hitTest(hero.p4)) {
speedY = 0;
hero._y = (_local2._y + (_local2._height / 2)) + hhy;
if (_local2.speed > 0) {
hero._y = hero._y + _local2.speed;
}
}
}
}
function checkHeroHit(tgt) {
var _local2 = enemies.length;
while (_local2--) {
var _local1 = enemies[_local2];
if (_local1.man.head.hitTest(tgt)) {
_local1.gotoAndStop(3);
}
}
}
function updateCamera() {
var _local2 = 2300;
var _local4 = -1700;
var _local1 = 700;
var _local3 = 73;
var _local5 = 296.666666666667;
var _local6 = 200;
_x = ((-hero._x) + _local5);
_y = ((-hero._y) + _local6);
_x = ((_x > _local2) ? (_local2) : (((_x < _local4) ? (_local4) : (_x))));
_y = ((_y > _local1) ? (_local1) : (((_y < _local3) ? (_local3) : (_y))));
}
var boxes = [];
Jump_Count = Level_Jump_Count;
var grav = _root.hero.gameZone.my_game_data.data.skill_1;
var jumpSpeed = -11;
var speedX = 5;
var speedY = 0;
var maxSpeedY = 14;
var hhx = ((((hero.p1._x - hero.p3._x) + (hero.p1._width / 2)) + (hero.p3._width / 2)) / 2);
var hhy = ((((hero.p2._y - hero.p4._y) + (hero.p2._height / 2)) + (hero.p4._height / 2)) / 2);
var jump = false;
var BG_1 = 1;
var BG_2 = 2;
var BG_3 = 3;
var BG_4 = 4;
Key.addListener(this);
if ((Key.isDown(38) && (!jump)) && (!shoot)) {
jump = true;
speedY = jumpSpeed;
}
onEnterFrame = function () {
var _local2 = lifts.length;
while (_local2--) {
var _local5 = lifts[_local2];
_local5.step();
}
_local2 = enemies.length;
while (_local2--) {
var _local6 = enemies[_local2];
_local6.step();
}
stepHero();
_local2 = bonuses.length;
while (_local2--) {
var _local1 = bonuses[_local2];
var _local4 = hero._x - _local1._x;
var _local3 = hero._y - _local1._y;
if ((Math.abs(_local4) < 40) && (Math.abs(_local3) < 40)) {
bonuses.splice(_local2, 1);
_local1.play();
}
}
updateCamera();
};
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
trace(q);
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_4;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 306 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_3;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_2;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 312 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 315 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
if ((_root.hero.gameZone.hero._x > -2020) && (_root.hero.gameZone.hero._x < 2000)) {
this._x = this._x + _root.hero.gameZone.BG_1;
} else {
this._x = this._x + 0;
}
}
Instance of Symbol 422 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x + 10;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 425 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 485 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 485 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 6;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 485 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 485 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 485 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 485 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (load) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 384 MovieClip "hero" in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
_x = 0;
_y = 133;
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p5.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
trace(_root.hero.gameZone.q);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 7;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 414 MovieClip in Symbol 489 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = this._x - 4;
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 489 MovieClip Frame 75
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
var Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
var Level_Jump_Count = _root.hero.gameZone.my_game_data.data.skill_3;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
onMouseDown = function () {
Jump_Count--;
if (Jump_Count < 0) {
jump = false;
_root.hero.gameZone.hero.jump_count_text.text = 0;
} else {
jump = true;
speedY = jumpSpeed;
_root.hero.gameZone.hero.jump_count_text.text = Level_Jump_Count;
}
};
CameraMenuOn = 0;
play();
my_game_data.data.gamelvl = 15;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 10;
Symbol 489 MovieClip Frame 76
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 152 MovieClip in Symbol 489 MovieClip Frame 76
onClipEvent (enterFrame) {
this._alpha = this._alpha + 1;
}
Instance of Symbol 91 MovieClip in Symbol 489 MovieClip Frame 76
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 491 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 492 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.1 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 493 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 494 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 495 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 496 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 497 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}