Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 8
stop();
Symbol 54 MovieClip Frame 31
gotoAndPlay ("loop");
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 92 MovieClip [HighScoreDialogue] Frame 1
function rgb2hex(r, g, b) {
return(((r << 16) | (g << 8)) | b);
}
function ViewTopScores(serverResponse) {
var _local1 = 1;
while (_local1 <= 5) {
if (typeof(serverResponse["user" + _local1]) == "undefined") {
return(undefined);
}
log((((("postion " + _local1) + ":") + serverResponse["user" + _local1]) + "\t\t") + serverResponse["score" + _local1]);
_local1++;
}
}
function ValidateConfig() {
if (isNaN(gameId)) {
log("bad gameId value");
}
}
function TogglePreloader(toShow) {
if (toShow) {
preloader._visible = true;
} else {
preloader._visible = false;
}
}
function NotifyEvent(eventName, args) {
log("NotifyEvent called:" + eventName);
var _local1 = -1;
switch (eventName) {
case "game_init" :
_local1 = 1;
break;
case "round_init" :
_local1 = 2;
break;
case "game_over" :
_local1 = 10;
break;
case "post_on_wall" :
_local1 = 100;
break;
}
ExternalInterface.call("FlashEvent", _local1, args);
}
function DisplayError(oResponse, textbox) {
log(oResponse);
if ((typeof(oResponse.error) != "undefined") && (oResponse.error != "")) {
log("error:" + oResponse.error);
textbox.text = oResponse.error;
}
}
function forgot_sent(serverResponse) {
DisplayError(serverResponse, ForgotPanel.txtForgotMessage);
if ((typeof(serverResponse.sent) != "undefined") && (serverResponse.sent == "yes")) {
ForgotPanel.txtForgotMessage.text = "Please check your inbox in the next minutes...";
} else if (typeof(serverResponse.error) != "undefined") {
ForgotPanel.txtForgotMessage.text = serverResponse.error;
}
}
function logged_before_and_saved(serverResponse) {
dump(serverResponse);
log("logged_before_and_saved");
DisplayError(serverResponse, LoggedInPanel.txtLoggedMessage);
if (serverResponse.saved == "yes") {
if (typeof(serverResponse.toplist_position) != "undefined") {
LoggedInPanel.txtLoggedMessage.text = ("You are number " + serverResponse.toplist_position) + " in this game!";
} else {
LoggedInPanel.txtLoggedMessage.text = "Your score was saved!";
}
LoggedInPanel.mcSavedMsg._visible = true;
DisableSaveButtons();
} else {
LoggedInPanel.txtLoggedMessage.text = serverResponse.error;
}
}
function logged_and_saved(serverResponse) {
dump(serverResponse);
DisplayError(serverResponse, LoginPanel.txtLoginMessage);
if (typeof(serverResponse.userId) != "undefined") {
loggedUserId = serverResponse.userId;
if (loggedUserId > 0) {
loggedUsername = LoginPanel.txtLoginUsername.text;
log((("logged_and_saved() - loggedUserId:" + loggedUserId) + " , loggedUsername:") + loggedUsername);
SetCookieValue("userId", loggedUserId, 1);
SetCookieValue("username", loggedUsername, 1);
}
}
if ((typeof(serverResponse.saved) != "undefined") && (serverResponse.saved == "yes")) {
if ((LoginPanel.txtGuestName.text != "") && (LoginPanel.txtLoginPassword.text == "")) {
if (typeof(serverResponse.toplist_position) != "undefined") {
LoginPanel.txtLoginMessage.text = ("Saved! You are number " + serverResponse.toplist_position) + " in this game!";
} else {
LoginPanel.txtLoginMessage.text = "Your score was saved!";
}
} else if (typeof(serverResponse.toplist_position) != "undefined") {
LoginPanel.txtLoginMessage.text = ((("Welcome back " + loggedUsername) + "! You are number ") + serverResponse.toplist_position) + " in this game!";
} else {
LoginPanel.txtLoginMessage.text = ("Welcome back " + loggedUsername) + "! Your score was saved!";
}
LoginPanel.mcSavedMsg._visible = true;
DisableSaveButtons();
} else if (typeof(serverResponse.error) != "undefined") {
LoginPanel.txtLoginMessage.text = serverResponse.error;
} else {
LoginPanel.txtLoginMessage.text = "error occured";
}
}
function registered_and_saved(serverResponse) {
dump(serverResponse);
DisplayError(serverResponse, RegisterPanel.txtRegisterMessage);
if (typeof(serverResponse.userId) != "undefined") {
loggedUserId = parseInt(serverResponse.userId);
if (loggedUserId > 0) {
loggedUsername = RegisterPanel.txtRegisterUsername.text;
SetCookieValue("userId", loggedUserId, 1);
SetCookieValue("username", loggedUsername, 1);
InitLoggedInPanel();
}
}
if ((typeof(serverResponse.saved) != "undefined") && (serverResponse.saved == "yes")) {
if (typeof(serverResponse.toplist_position) != "undefined") {
RegisterPanel.txtRegisterMessage.text = ((("Welcome " + loggedUsername) + "! You are number ") + serverResponse.toplist_position) + " in this game!";
} else {
RegisterPanel.txtRegisterMessage.text = ("Welcome " + loggedUsername) + "! Your score was saved!";
}
RegisterPanel.mcSavedMsg._visible = true;
DisableSaveButtons();
} else if (typeof(serverResponse.error) != "undefined") {
RegisterPanel.txtRegisterMessage.text = serverResponse.error;
} else {
RegisterPanel.txtRegisterMessage.text = "error occured";
}
}
function ResetFieldValidation(oField) {
var _local2 = "";
var _local3 = "";
if (typeof(oField._name) == "undefined") {
return(undefined);
}
if (oField._name.indexOf("txt") == 0) {
_local2 = "bg" + oField._name.substr(3);
_local3 = "alert" + oField._name.substr(3);
}
if ((_local2 != "") && (typeof(oField._parent[_local2]) != "undefined")) {
log("ResetFieldValidation");
Colorize(oField._parent[_local2], validationOkBg);
}
if ((_local3 != "") && (oField._parent[_local3] != null)) {
ToggleAlert(oField._parent[_local3], false);
}
}
function ValidateFieldWithTemplate(oField, template) {
var _local4 = oField.text;
var _local2 = "";
var _local3 = "";
if (oField._name.indexOf("txt") == 0) {
_local2 = "bg" + oField._name.substr(3);
_local3 = "alert" + oField._name.substr(3);
}
if (_local4 == "") {
if ((_local2 != "") && (typeof(oField._parent[_local2]) != "undefined")) {
log("ValidateFieldWithTemplate1");
Colorize(oField._parent[_local2], validationErrorBg);
}
if ((_local3 != "") && (typeof(oField._parent[_local3]) != "undefined")) {
ToggleAlert(oField._parent[_local3], true);
}
return(1);
}
if ((typeof(template) != "undefined") && (template == "email")) {
if ((_local4.indexOf("@") < 1) || (_local4.lastIndexOf(".") < _local4.indexOf("@"))) {
if ((_local2 != "") && (typeof(oField._parent[_local2]) != "undefined")) {
log("ValidateFieldWithTemplate2");
Colorize(oField._parent[_local2], validationErrorBg);
}
if ((_local3 != "") && (typeof(oField._parent[_local3]) != "undefined")) {
ToggleAlert(oField._parent[_local3], true);
}
return(1);
}
}
ResetFieldValidation(oField);
return(0);
}
function ValidateField(oField) {
var _local4 = oField.text;
var _local2 = "";
var _local3 = "";
if (oField._name.indexOf("txt") == 0) {
_local2 = "bg" + oField._name.substr(3);
_local3 = "alert" + oField._name.substr(3);
}
if (_local4 == "") {
Colorize(oField._parent[_local2], validationErrorBg);
ToggleAlert(oField._parent[_local3], true);
return(1);
}
ResetFieldValidation(oField);
return(0);
}
function ToggleAlert(mc, toShow) {
if ((typeof(mc) == "undefined") || (mc == null)) {
return(undefined);
}
if (toShow) {
mc.gotoAndPlay(2);
} else {
mc.gotoAndStop(1);
}
}
function Colorize(mc, color) {
if ((typeof(mc) == "undefined") || (mc == null)) {
return(undefined);
}
var _local2 = mc.transform.colorTransform;
_local2.rgb = sHex;
mc.transform.colorTransform = _local2;
}
function ValidateRegister() {
var _local1 = 0;
_local1 = _local1 + ValidateField(RegisterPanel.txtRegisterUsername);
_local1 = _local1 + ValidateField(RegisterPanel.txtRegisterPassword);
_local1 = _local1 + ValidateField(RegisterPanel.txtRegisterPassword2);
_local1 = _local1 + ValidateFieldWithTemplate(RegisterPanel.txtRegisterEmail, "email");
if (_local1 == 0) {
if (RegisterPanel.txtRegisterPassword.text != RegisterPanel.txtRegisterPassword2.text) {
_local1++;
RegisterPanel.txtRegisterMessage.text = "Your passwords don't match.";
if (typeof(RegisterPanel.bgRegisterPassword2) != "undefined") {
log("ValidateRegister");
Colorize(RegisterPanel.bgRegisterPassword2, validationErrorBg);
}
if (typeof(RegisterPanel.alertRegisterPassword) != "undefined") {
ToggleAlert(RegisterPanel.alertRegisterPassword, true);
}
} else {
if (typeof(RegisterPanel.bgRegisterPassword2) != "undefined") {
ResetFieldValidation(RegisterPanel.bgRegisterPassword2);
}
if (typeof(RegisterPanel.alertRegisterPassword) != "undefined") {
ToggleAlert(RegisterPanel.alertRegisterPassword, false);
}
}
}
if (_local1 == 0) {
return(true);
}
return(false);
}
function ValidateForgot() {
var _local1 = 0;
_local1 = _local1 + ValidateField(ForgotPanel.txtForgotUsername);
if (_local1 == 0) {
return(true);
}
return(false);
}
function ValidateLogin() {
var _local1 = 0;
if (LoginPanel.txtGuestName.text != "") {
ResetFieldValidation(LoginPanel.txtLoginUsername);
ResetFieldValidation(LoginPanel.txtLoginPassword);
_local1 = _local1 + ValidateField(LoginPanel.txtGuestName);
} else {
ResetFieldValidation(LoginPanel.txtGuestName);
_local1 = _local1 + ValidateField(LoginPanel.txtLoginUsername);
_local1 = _local1 + ValidateField(LoginPanel.txtLoginPassword);
}
if (_local1 == 0) {
return(true);
}
return(false);
}
function LoggedUserSubmit(event) {
LoggedInPanel.txtLoggedMessage.text = "";
SendData({action:"logged_save", gameId:gameId, score:scoreToSave, userId:loggedUserId, username:loggedUsername}, logged_before_and_saved, NotifySendFailure);
}
function LogOut(event) {
DeleteCookie("userId");
DeleteCookie("username");
loggedUserId = 0;
loggedUsername = "";
LoginPanel.txtLoginUsername.text = "";
LoginPanel.txtLoginPassword.text = "";
AnimateIn(LoginPanel);
}
function LoginSubmit(event) {
log("LoginSubmit clicked");
if (ValidateLogin()) {
LoginPanel.txtLoginMessage.text = "";
SendData({action:"login_and_save", gameId:gameId, score:scoreToSave, username:LoginPanel.txtLoginUsername.text, guestName:LoginPanel.txtGuestName.text, userpass:LoginPanel.txtLoginPassword.text}, logged_and_saved, NotifySendFailure);
}
}
function ForgotSubmit(event) {
if (ValidateForgot()) {
ForgotPanel.txtForgotMessage.text = "";
SendData({action:"forgot_pass", username:ForgotPanel.txtForgotUsername.text}, forgot_sent, NotifySendFailure);
}
}
function RegisterSubmit(event) {
if (ValidateRegister()) {
RegisterPanel.txtRegisterMessage.text = "";
SendData({action:"register", gameId:gameId, score:scoreToSave, username:RegisterPanel.txtRegisterUsername.text, userpass:RegisterPanel.txtRegisterPassword.text, email:RegisterPanel.txtRegisterEmail.text}, registered_and_saved, NotifySendFailure);
}
}
function LoadTopUsers() {
SendData({action:"get_top_users", gameId:gameId}, BuildTopUsers, NotifySendFailure);
}
function BuildTopUsers(serverResponse) {
if (topUserRows.length > 0) {
var _local3 = 0;
while (_local3 <= topUserRows.length) {
if (topUserRows[_local3] != null) {
TopUsersPanel.removeChild(topUserRows[_local3]);
}
_local3++;
}
topUserRows = [];
}
var _local1 = 1;
while (_local1 <= 10) {
if (typeof(serverResponse["toplist_user" + _local1]) != "undefined") {
TopUsersPanel.attachMovie("highscores_top_row", "row" + _local1, 1000 + _local1);
var _local2 = TopUsersPanel["row" + _local1];
_local2._name = "row" + _local1;
_local2._x = 90;
_local2._y = 16 + (_local1 * 19);
_local2.txtName.text = serverResponse["toplist_user" + _local1];
_local2.txtScore.text = serverResponse["toplist_score" + _local1];
topUserRows.push(_local2);
}
_local1++;
}
}
function NotifySendFailure(e) {
log("sending data failed.error:" + e);
}
function GetStoredUserId() {
var _local1 = GetCookieValue("userId");
if ((_local1 == null) || (_local1 == "")) {
_local1 = 0;
}
return(parseInt(_local1));
}
function InitCookie(value, expires) {
_cookie = SharedObject.getLocal("user_data", "/");
}
function DeleteCookie(name) {
log("deleting cookie " + name);
SetCookieValue(name, null, -1);
}
function SetCookieValue(name, value, hoursToExpire) {
var _local1 = new Date();
_local1.setHours(_local1.getHours() + hoursToExpire);
log((((("setting cookie: " + name) + "=") + value) + " until ") + _local1.toString());
_cookie.data[name] = value;
_cookie.data[name + "_expire"] = _local1;
_cookie.flush();
}
function GetCookieValue(name) {
_cookie = SharedObject.getLocal("user_data");
var _local1 = _cookie.data[name];
var _local2 = _cookie.data[name + "_expire"];
if (_local2 && (_local2 < new Date())) {
_local1 = null;
SetCookieValue(name, _local1, -1);
}
return(_local1);
}
function SendData(dataToSend, onSuccess, onFailure) {
if ((typeof(onFailure) == "undefined") || (onFailure == null)) {
onFailure = NotifySendFailure;
}
var _local5 = new LoadVars();
_local5.onLoad = function (success) {
TogglePreloader(false);
if (success) {
onSuccess(this);
} else {
onFailure();
}
log(unescape(this));
};
var _local3 = new LoadVars();
for (var _local4 in dataToSend) {
_local3[_local4] = dataToSend[_local4];
}
_local3.random = new Date();
TogglePreloader(true);
_local3.sendAndLoad(SAVE_URL, _local5, "post");
}
function CheckUserState() {
var _local1 = GetStoredUserId();
log("found user:" + _local1);
if (_local1 > 0) {
AnimateIn(LoggedInPanel);
InitLoggedInPanel();
} else {
AnimateIn(LoginPanel);
}
}
function AnimateOut() {
currentPanel._x = -2000;
}
function AnimateIn(mc) {
if (currentPanel != null) {
AnimateOut();
}
currentPanel = mc;
currentPanel._x = 0;
}
function InitDialogs() {
LoginPanel._x = -2000;
LoggedInPanel._x = -2000;
ForgotPanel._x = -2000;
RegisterPanel._x = -2000;
TopUsersPanel._x = -2000;
var _local2 = 50;
LoginPanel._y = _local2;
LoggedInPanel._y = _local2;
ForgotPanel._y = _local2;
RegisterPanel._y = _local2;
TopUsersPanel._y = _local2;
LoginPanel.mcSavedMsg._visible = false;
LoggedInPanel.mcSavedMsg._visible = false;
RegisterPanel.mcSavedMsg._visible = false;
containerMc = this;
this._visible = false;
InitButtons();
highscoresDialogReady = true;
tab_cover._visible = false;
}
function InitButtons() {
LoginPanel.btLoginSubmit.onRelease = LoginSubmit;
LoggedInPanel.btLogout.onRelease = LogOut;
LoggedInPanel.btLoggedSubmit.onRelease = LoggedUserSubmit;
ForgotPanel.btForgotSubmit.onRelease = ForgotSubmit;
RegisterPanel.btRegisterSubmit.onRelease = RegisterSubmit;
TopUsersPanel.btViewAll.onRelease = function (event) {
getURL ("http://myplayyard.com/index.php?a=page&id=15&gameId=" + gameId);
};
LoginPanel.btGotoForgot.onRelease = function (event) {
AnimateIn(ForgotPanel);
};
LoginPanel.btGotoRegister.onRelease = function (event) {
AnimateIn(RegisterPanel);
};
RegisterPanel.btGotoLogin.onRelease = function (event) {
AnimateIn(LoginPanel);
};
ForgotPanel.btGotoLogin.onRelease = function (event) {
AnimateIn(LoginPanel);
};
btCloseDialog.onRelease = function (event) {
containerMc._visible = false;
if (typeof(onClosedFunc) == "function") {
onClosedFunc();
}
};
btTabSave.onRelease = function (event) {
ShowTab(1);
if (loggedUserId > 0) {
InitLoggedInPanel();
AnimateIn(LoggedInPanel);
} else {
AnimateIn(LoginPanel);
}
};
btTabTop10.onRelease = function (event) {
ShowTab(2);
LoadTopUsers();
AnimateIn(TopUsersPanel);
};
}
function ShowTab(iTabNumber) {
mcTabs.gotoAndStop(iTabNumber);
}
function InitLoggedInPanel() {
loggedUserId = parseInt(GetCookieValue("userId"));
loggedUsername = GetCookieValue("username");
log("loggedUserId:" + loggedUserId);
log("loggedUsername:" + loggedUsername);
LoggedInPanel.txtLoggedUsername.text = loggedUsername;
}
function ResetMessages() {
ForgotPanel.txtForgotMessage.text = "";
LoggedInPanel.txtLoggedMessage.text = "";
LoginPanel.txtLoginMessage.text = "";
RegisterPanel.txtRegisterMessage.text = "";
}
function EnableSaveButtons() {
LoggedInPanel.btLoggedSubmit.enabled = true;
LoginPanel.btLoginSubmit.enabled = true;
RegisterPanel.btRegisterSubmit.enabled = true;
log("EnableSaveButtons");
Colorize(LoggedInPanel.btLoggedSubmit, enabledHex);
Colorize(LoginPanel.btLoginSubmit, enabledHex);
Colorize(RegisterPanel.btRegisterSubmit, enabledHex);
}
function DisableSaveButtons() {
LoggedInPanel.btLoggedSubmit.enabled = false;
LoginPanel.btLoginSubmit.enabled = false;
RegisterPanel.btRegisterSubmit.enabled = false;
log("DisableSaveButtons");
Colorize(LoggedInPanel.btLoggedSubmit, disabledHex);
Colorize(LoginPanel.btLoginSubmit, disabledHex);
Colorize(RegisterPanel.btRegisterSubmit, disabledHex);
}
function HideSaveTab() {
btTabSave._visible = false;
txtScoreTitle._visible = false;
tab_cover._visible = true;
}
function SetTitle(sTitle) {
txtDialogTitle.text = sTitle;
}
function SetScoreTitle(sTitle, score) {
if (sTitle == "") {
sTitle = "";
}
txtScoreTitle.text = scoreToSave.toString();
}
function dump(o) {
for (var _local2 in o) {
trace((_local2 + "=") + o[_local2]);
}
}
function log(s) {
trace(s);
}
function ShowScoreDialog(oOptions) {
SAVE_URL = "http://www.myplayyard.com/user_actions_flash.php";
TogglePreloader(false);
gameId = oOptions.gameId;
scoreToSave = oOptions.playerScore;
topUsersOnly = oOptions.topUsersOnly;
if (typeof(topUsersOnly) == "undefined") {
topUsersOnly = false;
}
if (typeof(oOptions.onClosed) == "function") {
onClosedFunc = oOptions.onClosed;
}
SetTitle(oOptions.dialogTitle);
SetScoreTitle(oOptions.scoreTitle, scoreToSave);
ValidateConfig();
EnableSaveButtons();
ResetMessages();
log(containerMc);
containerMc._visible = true;
containerMc.swapDepths(10000);
if (topUsersOnly) {
HideSaveTab();
LoadTopUsers();
AnimateIn(TopUsersPanel);
} else {
CheckUserState();
}
}
var SAVE_URL;
var validationErrorBg = "0xff6666";
var validationOkBg = rgb2hex(255, 255, 255);
var disabledHex = rgb2hex(200, 200, 200);
var enabledHex = "0x000000";
var loggedUserId = 0;
var loggedUsername = "";
var scoreToSave;
var gameId;
var topUsersOnly;
var onClosedFunc;
var containerMc = this;
var currentPanel;
var _cookie;
_root.highscoresDialogReady = false;
var topUserRows = [];
InitDialogs();
Symbol 105 Button
on (press) {
_root.hero.gameZone.mus.setVolume(0);
}
Symbol 108 Button
on (press) {
_root.hero.gameZone.mus.setVolume(100);
}
Symbol 109 Button
on (press) {
_root.hero.gameZone.mus.setVolume(75);
}
Symbol 110 Button
on (press) {
_root.hero.gameZone.mus.setVolume(50);
}
Symbol 111 Button
on (press) {
_root.hero.gameZone.mus.setVolume(25);
}
Symbol 116 Button
on (press) {
_quality = "HIGH";
}
Symbol 119 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 122 Button
on (press) {
_quality = "LOW";
}
Symbol 125 Button
on (release) {
getURL ("http://www.myplayyard.com/index.php?a=page&id=24", "_blank");
}
Symbol 134 Button
on (press) {
_root.hero.gameZone.prevFrame();
}
Symbol 135 Button
on (press) {
_root.hero.gameZone.nextFrame();
}
Symbol 140 Button
on (release) {
getURL ("http://www.myplayyard.com", "_blank");
}
Symbol 141 MovieClip Frame 1
var o4ki_text;
onEnterFrame = function () {
if (_root.hero.gameZone.my_game_data.data.GameRunScores < 1) {
scoresvisible.text = String("No ranking for lazy");
} else {
scoresvisible.text = int;
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
}
};
stop();
Symbol 141 MovieClip Frame 2
var o4ki_text;
onEnterFrame = function () {
if (_root.hero.gameZone.my_game_data.data.GameRunScores < 1) {
scoresvisible.text = String("No ranking for lazy");
} else {
scoresvisible.text = int;
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
}
};
stop();
Symbol 142 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 141 MovieClip "CameraMenu" in Symbol 142 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 144 MovieClip [p5] Frame 1
_visible = false;
Symbol 158 Button
on (press) {
_root.hero.gameZone.nextFrame();
}
Symbol 159 MovieClip Frame 46
stop();
Symbol 160 MovieClip Frame 34
stop();
Symbol 193 Button
on (press) {
_root.hero.gameZone.gotoAndStop(5);
}
Symbol 194 MovieClip Frame 19
stop();
Symbol 195 MovieClip Frame 75
MovieClip(this).stop();
dispatchEvent(new Event("show-play-button", true));
Symbol 196 MovieClip Frame 1
Symbol 196 MovieClip Frame 45
MovieClip(this).stop();
Symbol 196 MovieClip Frame 55
dispatchEvent(new Event("reset-frameRate", true));
Symbol 198 Button
on (release) {
getURL ("http://www.myplayyard.com/", "_blank");
}
Symbol 199 MovieClip Frame 16
stop();
Symbol 213 MovieClip Frame 30
stop();
Symbol 214 MovieClip Frame 30
stop();
Instance of Symbol 226 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 9;
}
Instance of Symbol 241 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 274 MovieClip Frame 116
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 2
stop();
Symbol 313 MovieClip Frame 3
stop();
Symbol 313 MovieClip Frame 4
stop();
Symbol 313 MovieClip Frame 5
stop();
Symbol 313 MovieClip Frame 6
stop();
Instance of Symbol 278 MovieClip in Symbol 313 MovieClip Frame 6
onClipEvent (enterFrame) {
this._rotation = this._rotation - 17;
}
Symbol 313 MovieClip Frame 7
stop();
Symbol 313 MovieClip Frame 8
stop();
Symbol 313 MovieClip Frame 9
stop();
Symbol 313 MovieClip Frame 10
stop();
Symbol 313 MovieClip Frame 11
stop();
Symbol 313 MovieClip Frame 12
stop();
Symbol 313 MovieClip Frame 13
stop();
Symbol 313 MovieClip Frame 14
stop();
Symbol 313 MovieClip Frame 15
stop();
Symbol 313 MovieClip Frame 16
stop();
Symbol 313 MovieClip Frame 17
stop();
Symbol 313 MovieClip Frame 18
stop();
Symbol 337 MovieClip Frame 1
_root.hero.gameZone.hero.simbol1.simbol16.mutatoin_outside.mutatoin.super_eye.gotoAndStop(int((Math.random() * _root.hero.gameZone.hero.simbol1.simbol16.mutatoin_outside.mutatoin.super_eye._totalframes) + 1));
Symbol 376 MovieClip Frame 1
_root.hero.gameZone.hero.simbol1.simbol16.mutatoin_outside.mutatoin.super_eye.gotoAndStop(int((Math.random() * _root.hero.gameZone.hero.simbol1.simbol16.mutatoin_outside.mutatoin.super_eye._totalframes) + 1));
stop();
Instance of Symbol 250 MovieClip in Symbol 376 MovieClip Frame 1
onClipEvent (enterFrame) {
var speedAaa = -1;
if (speedAaa > -3) {
speedAaa = speedAaa - 0.05;
}
this._rotation = this._rotation + speedAaa;
}
Symbol 376 MovieClip Frame 2
stop();
Instance of Symbol 357 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 25;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 27;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 20;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 30;
}
Instance of Symbol 366 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 23;
}
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 22;
}
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 26;
}
Symbol 382 Button
on (release) {
getURL ("http://www.myplayyard.com/puzzle/play-you-are-a-box", "_blank");
}
Symbol 386 Button
on (release) {
getURL ("http://www.myplayyard.com/adventure-games/play-pick-and-dig-3", "_blank");
}
Symbol 389 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 392 Button
on (release) {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "co.il") {
getURL ("http://www.myplayyard.com/adventure-games", "_blank");
} else {
getURL ("http://www.habatata.co.il", "_blank");
}
}
Symbol 395 Button
on (press) {
_root.hero.gameZone.gotoAndStop(12);
}
Symbol 396 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 5;
_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 397 MovieClip Frame 90
stop();
Symbol 400 MovieClip Frame 65
stop();
Instance of Symbol 399 MovieClip in Symbol 400 MovieClip Frame 65
onClipEvent (enterFrame) {
this._alpha = this._alpha + 1;
if (this._alpha > 95) {
this._alpha = this._alpha + 0;
}
}
Symbol 404 Button
on (press) {
_root.hero.gameZone._quality = "LOW";
}
Symbol 406 Button
on (press) {
_root.hero.gameZone._quality = "MEDIUM";
}
Symbol 408 Button
on (press) {
_root.hero.gameZone._quality = "HIGH";
}
Symbol 410 Button
on (press) {
_root.hero.gameZone._quality = "BEST";
}
Symbol 413 Button
on (press) {
_root.hero.gameZone.mus.setVolume(35);
}
Symbol 418 Button
on (press) {
_root.hero.gameZone.prevFrame();
}
Symbol 434 MovieClip Frame 11
stop();
Symbol 436 Button
on (press) {
_root.hero.gameZone.gotoAndStop(16);
}
Symbol 459 MovieClip Frame 10
stop();
Symbol 460 Button
on (press) {
_root.hero.gameZone.gotoAndStop(12);
}
Symbol 487 MovieClip Frame 10
stop();
Symbol 501 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 503 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.prlvlscore = "No ranking for lazy";
_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 = 2;
_root.hero.gameZone.my_game_data.data.pointlvl = 17;
_root.hero.gameZone.gotoAndStop(20);
}
Symbol 505 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.prlvlscore = "No ranking for lazy";
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 3;
_root.hero.gameZone.my_game_data.data.pointlvl = 19;
_root.hero.gameZone.gotoAndStop(24);
}
Symbol 507 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.prlvlscore = "No ranking for lazy";
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 4;
_root.hero.gameZone.my_game_data.data.pointlvl = 23;
_root.hero.gameZone.gotoAndStop(28);
}
Symbol 509 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 5;
_root.hero.gameZone.my_game_data.data.pointlvl = 30;
_root.hero.gameZone.gotoAndStop(32);
}
Symbol 511 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 6;
_root.hero.gameZone.my_game_data.data.pointlvl = 32;
_root.hero.gameZone.gotoAndStop(36);
}
Symbol 513 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 7;
_root.hero.gameZone.my_game_data.data.pointlvl = 34;
_root.hero.gameZone.gotoAndStop(40);
}
Symbol 515 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 8;
_root.hero.gameZone.my_game_data.data.pointlvl = 36;
_root.hero.gameZone.gotoAndStop(44);
}
Symbol 517 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 9;
_root.hero.gameZone.my_game_data.data.pointlvl = 38;
_root.hero.gameZone.gotoAndStop(48);
}
Symbol 519 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 10;
_root.hero.gameZone.my_game_data.data.pointlvl = 40;
_root.hero.gameZone.gotoAndStop(52);
}
Symbol 521 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 11;
_root.hero.gameZone.my_game_data.data.pointlvl = 42;
_root.hero.gameZone.gotoAndStop(56);
}
Symbol 523 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 12;
_root.hero.gameZone.my_game_data.data.pointlvl = 45;
_root.hero.gameZone.gotoAndStop(60);
}
Symbol 525 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 13;
_root.hero.gameZone.my_game_data.data.pointlvl = 47;
_root.hero.gameZone.gotoAndStop(64);
}
Symbol 527 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 14;
_root.hero.gameZone.my_game_data.data.pointlvl = 50;
_root.hero.gameZone.gotoAndStop(68);
}
Symbol 529 Button
on (press) {
_root.hero.gameZone.my_so.clear();
_root.hero.gameZone.my_game_data.data.GameRunScores = 0;
_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 = 15;
_root.hero.gameZone.my_game_data.data.pointlvl = 55;
_root.hero.gameZone.gotoAndStop(72);
}
Symbol 531 Button
on (press) {
_root.hero.gameZone.gotoAndStop(6);
}
Symbol 568 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 571 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 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 2
stop();
Symbol 578 MovieClip Frame 1
stop();
Instance of Symbol 573 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.skill_3 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 578 MovieClip Frame 2
stop();
Symbol 578 MovieClip Frame 3
stop();
Symbol 579 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 580 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 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
stop();
Symbol 582 MovieClip Frame 1
stop();
Instance of Symbol 581 MovieClip in Symbol 582 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 582 MovieClip Frame 2
stop();
Symbol 582 MovieClip Frame 3
stop();
Symbol 583 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 584 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 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 1
stop();
Instance of Symbol 585 MovieClip in Symbol 586 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 586 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 3
stop();
Symbol 587 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 - 2;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 588 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 + 2;
_root.hero.gameZone.pointcount.text = _root.hero.gameZone.my_game_data.data.pointlvl;
}
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
stop();
Symbol 590 MovieClip Frame 1
stop();
Instance of Symbol 589 MovieClip in Symbol 590 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 590 MovieClip Frame 2
stop();
Symbol 590 MovieClip Frame 3
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 2
stop();
Symbol 601 MovieClip Frame 3
stop();
Symbol 601 MovieClip Frame 4
stop();
Symbol 601 MovieClip Frame 5
stop();
Symbol 601 MovieClip Frame 6
stop();
Symbol 601 MovieClip Frame 7
stop();
Symbol 601 MovieClip Frame 8
stop();
Symbol 601 MovieClip Frame 9
stop();
Symbol 601 MovieClip Frame 10
stop();
Symbol 601 MovieClip Frame 11
stop();
Symbol 601 MovieClip Frame 12
stop();
Symbol 601 MovieClip Frame 13
stop();
Symbol 601 MovieClip Frame 14
stop();
Symbol 601 MovieClip Frame 15
stop();
Symbol 601 MovieClip Frame 16
stop();
Symbol 601 MovieClip Frame 17
stop();
Symbol 601 MovieClip Frame 18
stop();
Symbol 601 MovieClip Frame 19
stop();
Symbol 601 MovieClip Frame 20
stop();
Symbol 601 MovieClip Frame 21
stop();
Symbol 601 MovieClip Frame 22
stop();
Symbol 601 MovieClip Frame 23
stop();
Symbol 601 MovieClip Frame 24
stop();
Symbol 601 MovieClip Frame 25
stop();
Symbol 601 MovieClip Frame 26
stop();
Symbol 601 MovieClip Frame 27
stop();
Symbol 601 MovieClip Frame 28
stop();
Symbol 601 MovieClip Frame 29
stop();
Symbol 601 MovieClip Frame 30
stop();
Symbol 601 MovieClip Frame 31
stop();
Symbol 601 MovieClip Frame 32
stop();
Symbol 601 MovieClip Frame 33
stop();
Symbol 601 MovieClip Frame 34
stop();
Symbol 601 MovieClip Frame 35
stop();
Symbol 601 MovieClip Frame 36
stop();
Symbol 601 MovieClip Frame 37
stop();
Symbol 601 MovieClip Frame 38
stop();
Symbol 601 MovieClip Frame 39
stop();
Symbol 601 MovieClip Frame 40
stop();
Symbol 601 MovieClip Frame 41
stop();
Symbol 601 MovieClip Frame 42
stop();
Symbol 601 MovieClip Frame 43
stop();
Symbol 601 MovieClip Frame 44
stop();
Symbol 601 MovieClip Frame 45
stop();
Symbol 601 MovieClip Frame 46
stop();
Symbol 601 MovieClip Frame 47
stop();
Symbol 601 MovieClip Frame 48
stop();
Symbol 601 MovieClip Frame 49
stop();
Symbol 601 MovieClip Frame 50
stop();
Symbol 601 MovieClip Frame 51
stop();
Symbol 601 MovieClip Frame 52
stop();
Symbol 601 MovieClip Frame 53
stop();
Symbol 601 MovieClip Frame 54
stop();
Symbol 601 MovieClip Frame 55
stop();
Symbol 601 MovieClip Frame 56
stop();
Symbol 601 MovieClip Frame 57
stop();
Symbol 601 MovieClip Frame 58
stop();
Symbol 601 MovieClip Frame 59
stop();
Symbol 601 MovieClip Frame 60
stop();
Symbol 606 Button
on (release) {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "co.il") {
getURL ("http://www.myplayyard.com/adventure-games", "_blank");
} else {
getURL ("http://www.habatata.co.il", "_blank");
}
}
Symbol 610 MovieClip Frame 15
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 2
stop();
Symbol 615 MovieClip Frame 15
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 2
stop();
Symbol 620 MovieClip Frame 15
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 15
stop();
Symbol 627 MovieClip Frame 1
stop();
stop();
Symbol 627 MovieClip Frame 2
stop();
Symbol 628 Button
on (press) {
_root.hero.gameZone.nextFrame();
}
Symbol 656 MovieClip Frame 1
_parent.addBox(this);
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 2
stop();
Symbol 667 MovieClip Frame 46
stop();
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 2
stop();
_root.hero.gameZone.my_game_data.data.pointlvl = _root.hero.gameZone.my_game_data.data.pointlvl + 1;
Symbol 688 MovieClip Frame 1
_visible = false;
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
stop();
Symbol 691 MovieClip Frame 3
stop();
Symbol 691 MovieClip Frame 4
stop();
Instance of Symbol 691 MovieClip "mutatoin_outside" in Symbol 692 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 693 MovieClip Frame 1
onEnterFrame = function () {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 1;
_root.hero.gameZone.Runspeed = _root.hero.gameZone.my_game_data.data.skill_2;
};
Symbol 693 MovieClip Frame 19
onEnterFrame = function () {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 2;
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 693 MovieClip Frame 34
onEnterFrame = function () {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
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 693 MovieClip Frame 43
onEnterFrame = function () {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 4;
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 693 MovieClip Frame 53
onEnterFrame = function () {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
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 696 MovieClip Frame 1
var speedscore = int(_root.hero.gameZone.my_game_data.data.skill_2);
onEnterFrame = function () {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + speedscore;
};
Symbol 696 MovieClip Frame 3
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores - 1;
Symbol 705 Button
on (release) {
var scoreToSave = _root.hero.gameZone.my_game_data.data.GameRunScores;
attachMovie("HighScoreDialogue", "HighScoreDialogue", 200);
setTimeout(function () {
HighScoreDialogue.ShowScoreDialog({gameId:122, playerScore:scoreToSave, dialogTitle:"R2L Great Escape", scoreTitle:"Your score is:", onClosed:function () {
trace("the highscores dialog was closed");
}});
}, 100);
}
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 2
stop();
Symbol 903 MovieClip Frame 1
Playtomic.Log.View(6367, "b510b5a6fc84408d", _root._url);
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);
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("Created by MrFuby", function () {
}, true, false);
myMenu.customItems.push(myItem3);
myMenu.hideBuiltInItems();
_root.menu = myMenu;
var CameraMenuOn;
CameraMenuOn = 0;
Symbol 903 MovieClip Frame 2
play();
Symbol 903 MovieClip Frame 3
play();
stop();
stop();
stop();
Symbol 903 MovieClip Frame 4
play();
Symbol 903 MovieClip Frame 5
play();
fscommand ("allowscale", "false");
mus = new Sound();
mus.attachSound("music1");
mus.start(0, 1000);
play();
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 = 5;
Symbol 903 MovieClip Frame 6
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
Instance of Symbol 378 MovieClip in Symbol 903 MovieClip Frame 6
on (release) {
getURL ("http://www.myplayyard.com", "_blank");
}
Symbol 903 MovieClip Frame 7
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 7
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 8
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
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 = 5;
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 8
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 438 MovieClip in Symbol 903 MovieClip Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 903 MovieClip Frame 9
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 10
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Symbol 903 MovieClip Frame 11
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 11
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 12
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
stop();
Symbol 903 MovieClip Frame 13
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 13
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 14
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 14
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 15
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 15
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 16
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
maxscores = 5000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 9) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 MovieClip Frame 17
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = 5;
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 17
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 18
var GameScoreArr = [];
GameScoreArr = [length];
GameScoreArr = [];
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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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() {
updateCamera();
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();
my_game_data.data.GameRunScores = 5;
var EnemyArr = [];
EnemyArr = [length];
EnemyArr = [];
q = EnemyArr.length;
Instance of Symbol 637 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 639 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 5);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 656 MovieClip in Symbol 903 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 663 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 664 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 664 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 668 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 18
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 696 MovieClip "hero" in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 903 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 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 19
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 20
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.prlvlscore;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 20
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 21
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 5000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 6) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 22
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 685 MovieClip in Symbol 903 MovieClip Frame 22
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 235 MovieClip in Symbol 903 MovieClip Frame 22
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 22
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 22
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 903 MovieClip Frame 23
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
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));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Instance of Symbol 438 MovieClip in Symbol 903 MovieClip Frame 23
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 903 MovieClip Frame 24
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.prlvlscore;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 24
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 25
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 10000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 11) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 656 MovieClip in Symbol 903 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 741 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 668 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 746 MovieClip in Symbol 903 MovieClip Frame 26
onClipEvent (enterFrame) {
this._x = this._x - 2;
}
Symbol 903 MovieClip Frame 27
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 4;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 4;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (30 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Symbol 903 MovieClip Frame 28
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.prlvlscore;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 28
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 29
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 15000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 29
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 3) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 = [];
Instance of Symbol 637 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 656 MovieClip in Symbol 903 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 685 MovieClip in Symbol 903 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 235 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 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 - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 668 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.gameZone.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 30
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 903 MovieClip Frame 31
play();
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 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 = 5;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 7;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (25 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 31
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 32
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 32
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 33
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 20000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 33
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = this._x + 8;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = this._x + 14;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3.4;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 1;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2.5;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 1;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2.5;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3.4;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2.5;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 34
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 35
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 6;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (70 + random(10));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Instance of Symbol 764 MovieClip in Symbol 903 MovieClip Frame 35
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 5);
}
Instance of Symbol 438 MovieClip in Symbol 903 MovieClip Frame 35
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 903 MovieClip Frame 36
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 36
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 37
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 25000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 37
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 639 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 5);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = this._x - 5;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3.7;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 1;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2.5;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 1;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 3;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2.5;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 38
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 696 MovieClip "hero" in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 38
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 903 MovieClip Frame 39
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 7;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (30 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Symbol 903 MovieClip Frame 40
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 40
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 41
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 30000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 774 MovieClip in Symbol 903 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 41
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 656 MovieClip in Symbol 903 MovieClip Frame 42
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 685 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 350) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = this._x + 9;
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
_root.hero.gameZone.EnemyArr.push(this);
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 2;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 2;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 2;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 2;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 42
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 760 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 42
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 903 MovieClip Frame 43
play();
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;
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
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 + (70 + random(10));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Symbol 903 MovieClip Frame 44
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 44
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 45
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 35000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 637 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 45
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 235 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 400) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 400) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 400) {
this._x = this._x - 5;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 3;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 46
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 3;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 47
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
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 + (30 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Symbol 903 MovieClip Frame 48
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 48
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 49
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 40000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 49
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 760 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 50
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 685 MovieClip in Symbol 903 MovieClip Frame 50
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 685 MovieClip in Symbol 903 MovieClip Frame 50
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 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 5;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 7;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x + 4;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x + 7;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x + 6;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 750) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 2;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 50
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 1050) {
this._x = this._x - 2;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 51
play();
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 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 + 7;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (25 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 51
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 52
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 52
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 53
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 45000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 53
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 9;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 9;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 9;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 230) {
this._x = this._x + 8;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 230) {
this._x = this._x + 9;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2.7;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 3;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 2;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 1.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 2.5;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 54
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y - 3;
} else {
this._y = this._y - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 55
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);
play();
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;
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 11;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (30 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Instance of Symbol 438 MovieClip in Symbol 903 MovieClip Frame 55
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 903 MovieClip Frame 56
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 56
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 57
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 50000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 57
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 685 MovieClip in Symbol 903 MovieClip Frame 58
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 685 MovieClip in Symbol 903 MovieClip Frame 58
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 685 MovieClip in Symbol 903 MovieClip Frame 58
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 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 30) {
this._y = this._y + 20;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 30) {
this._y = this._y + 20;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 230) {
this._x = this._x + 8;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 30) {
this._y = this._y + 20;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 30) {
this._y = this._y + 20;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 58
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 696 MovieClip "hero" in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 58
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 903 MovieClip Frame 59
play();
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 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 + 7;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (25 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 59
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 60
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 60
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 61
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 55000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 61
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 62
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 63
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);
play();
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;
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
my_game_data.data.gamelvl = 13;
my_game_data.data.pointlvl = my_game_data.data.pointlvl + 2;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (30 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Instance of Symbol 438 MovieClip in Symbol 903 MovieClip Frame 63
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 903 MovieClip Frame 64
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 64
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 65
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 60000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 65
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 685 MovieClip in Symbol 903 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 - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 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 - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 685 MovieClip in Symbol 903 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 - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
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 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 7;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
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 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x + 4;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x + 7;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x + 6;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 750) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 2;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
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 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 66
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 1050) {
this._x = this._x - 2;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 67
play();
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 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 + 7;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (25 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 67
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 68
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 68
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 69
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 65000;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 235 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 70
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 71
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);
play();
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;
CameraMenuOn = 0;
play();
_x = 0;
_y = 133;
updateCamera();
play();
onEnterFrame = function () {
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 + (30 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
};
Instance of Symbol 438 MovieClip in Symbol 903 MovieClip Frame 71
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.hero.gameZone.gotoAndStop(6);
}
}
Symbol 903 MovieClip Frame 72
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 72
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 73
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
maxscores = 70000 /* 0x011170 */;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 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 582 MovieClip in Symbol 903 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 586 MovieClip in Symbol 903 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 590 MovieClip in Symbol 903 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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 73
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 248 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (load) {
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
_root.hero.gameZone.my_game_data.data.GameRunScores - 2500;
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
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 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x + 7;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
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 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x + 4;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 550) {
this._x = this._x + 7;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 450) {
this._x = this._x + 6;
} else {
this._x = this._x + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 1050) {
this._x = this._x - 2;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 750) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 750) {
this._x = this._x - 4;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 741 MovieClip in Symbol 903 MovieClip Frame 74
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._x = this._x - 7;
} else {
this._x = this._x - 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 903 MovieClip Frame 75
play();
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 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 + 7;
my_game_data.data.GameRunScores = my_game_data.data.GameRunScores + (25 + random(20));
prlvlscore = my_game_data.data.GameRunScores;
play();
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 75
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Symbol 903 MovieClip Frame 76
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
stop();
onEnterFrame = function () {
o4ki_text = _root.hero.gameZone.my_game_data.data.GameRunScores;
scoresvisible.text = o4ki_text;
};
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > 3000) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > 3500) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > 4000) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > 4500) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > 5000) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 199 MovieClip in Symbol 903 MovieClip Frame 76
onClipEvent (enterFrame) {
_root.hero.gameZone.fadeff.gotoAndPlay(1);
}
Symbol 903 MovieClip Frame 77
onEnterFrame = function () {
_x = 0;
_y = 133;
updateCamera();
};
CameraMenuOn = 0;
my_game_data.data.GameRunScores = prlvlscore;
levelcount.text = my_game_data.data.gamelvl;
pointcount.text = my_game_data.data.pointlvl;
Instance of Symbol 578 MovieClip in Symbol 903 MovieClip Frame 77
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 582 MovieClip in Symbol 903 MovieClip Frame 77
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 586 MovieClip in Symbol 903 MovieClip Frame 77
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 590 MovieClip in Symbol 903 MovieClip Frame 77
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 < 2) {
this.gotoAndStop(2);
}
if (_root.hero.gameZone.my_game_data.data.pointlvl > 1) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 601 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hero.gameZone.my_game_data.data.gamelvl);
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 5)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 4)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 3)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > (_root.hero.gameZone.maxscores / 2)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 605 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.GameRunScores > _root.hero.gameZone.maxscores) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 611 MovieClip in Symbol 903 MovieClip Frame 77
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 616 MovieClip in Symbol 903 MovieClip Frame 77
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 621 MovieClip in Symbol 903 MovieClip Frame 77
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 627 MovieClip in Symbol 903 MovieClip Frame 77
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "fadeff" in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
updateAfterEvent();
this.gotoAndPlay.nextFrame();
}
Instance of Symbol 629 MovieClip in Symbol 903 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.hero.gameZone.my_game_data.data.pointlvl > 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 903 MovieClip Frame 78
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;
_x = 3500;
_y = 700;
function addBox(obj) {
boxes.push(obj);
}
function stepHero() {
if (!shoot) {
if (Key.isDown(32)) {
Jump_Count = 0;
jump = false;
jumpSpeed = 0;
_root.hero.gameZone.hero.gotoAndPlay(4);
} else {
jumpSpeed = -11;
}
}
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 637 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - (_root.hero.gameZone.hero._x / 20);
}
Instance of Symbol 641 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
this._x = (100 + _root.hero.gameZone.hero._x) - (_root.hero.gameZone.hero._x / 2);
}
Instance of Symbol 643 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - _root.hero.gameZone.hero._x;
}
Instance of Symbol 696 MovieClip "hero" in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
updateCamera();
if (_root.hero.gameZone.my_game_data.data.skill_4 > 1.3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 3;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 2) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 5;
} else if (_root.hero.gameZone.my_game_data.data.skill_4 > 3) {
_root.hero.gameZone.my_game_data.data.GameRunScores = _root.hero.gameZone.my_game_data.data.GameRunScores + 7;
}
this._x = this._x + _root.hero.gameZone.Runspeed;
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.exit_door)) {
_root.hero.gameZone.nextFrame();
updateCamera();
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.zombie_atack)) {
_root.hero.gameZone.prevFrame();
}
if (Key.isDown(32)) {
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[0])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[1])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[2])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[3])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[4])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[5])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[6])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[7])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[8])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[9])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[10])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[11])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[12])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[13])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[14])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[15])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[16])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[17])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[18])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[19])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[20])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[21])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[22])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[23])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[24])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[25])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[26])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[27])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[28])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[29])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[30])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[31])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[32])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[33])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[34])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[35])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[36])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[37])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[38])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[39])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[40])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[41])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[42])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[43])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[44])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[45])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[46])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[47])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[48])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[49])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[50])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[51])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[52])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[53])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[54])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[55])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[56])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[57])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[58])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[59])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[60])) {
_root.hero.gameZone.prevFrame();
}
if (_root.hero.gameZone.hero.p2.hitTest(_root.hero.gameZone.EnemyArr[61])) {
_root.hero.gameZone.prevFrame();
}
} else {
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();
}
}
if (_root.hero.gameZone.hero.p1.hitTest(_root.hero.gameZone.uskoritelj)) {
this._y = this._y - 50;
}
}
Instance of Symbol 597 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
this._x = _root.hero.gameZone.hero._x - 5;
this._y = _root.hero.gameZone.hero._y + 5;
if (Key.isDown(32)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 903 MovieClip Frame 78
onClipEvent (enterFrame) {
rasstojanie = _root.hero.gameZone.hero._x - this._x;
if (rasstojanie < 0) {
rasstojanie = rasstojanie * -1;
}
if (rasstojanie < 250) {
this._y = this._y + 2;
} else {
this._y = this._y + 0;
}
_root.hero.gameZone.EnemyArr.push(this);
}
Symbol 905 MovieClip [__Packages.Playtomic.LogRequest] Frame 0
class Playtomic.LogRequest
{
var Pieces;
function LogRequest () {
}
function Queue(data) {
Pieces++;
Data = Data + (((Data == "") ? "" : "~") + data);
if ((Pieces == 8) || (Data.length > 300)) {
Pieces = 0;
Ready = true;
}
}
function Send() {
var _local3 = function (success) {
if ((this.Data.indexOf("v/") == 0) || (this.Data.indexOf("~v/") > -1)) {
Playtomic.Log.IncreaseViews();
}
if ((this.Data.indexOf("p/") == 0) || (this.Data.indexOf("~p/") > -1)) {
Playtomic.Log.IncreasePlays();
}
};
var _local2 = new LoadVars();
_local2.sendAndLoad(((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/Tracker/q.aspx?swfid=") + Playtomic.Log.SWFID) + "&q=") + Data) + "&url=") + Playtomic.Log.SourceUrl) + "&") + Math.random()) + "z", _local3, "POST");
}
var Data = "";
var Ready = false;
}
Symbol 906 MovieClip [__Packages.Playtomic.Log] Frame 0
class Playtomic.Log
{
static var SourceUrl, Cookie;
function Log () {
}
static function View(swfid, guid, defaulturl) {
if (swfid == undefined) {
swfid = 0;
}
if (guid == undefined) {
guid = "";
}
if (defaulturl == undefined) {
defaulturl = "";
}
if (SWFID > 0) {
return(undefined);
}
SWFID = swfid;
GUID = guid;
Enabled = true;
if ((SWFID == 0) || (GUID == "")) {
Enabled = false;
return(undefined);
}
if (defaulturl.indexOf("http://") != 0) {
Enabled = false;
return(undefined);
}
SourceUrl = defaulturl;
if (((SourceUrl == null) || (SourceUrl == "")) || (SourceUrl.indexOf("https://") == 0)) {
Enabled = false;
return(undefined);
}
Cookie = SharedObject.getLocal("playtomic");
var _local5 = GetCookie("views");
Send("v/" + _local5, true);
_global.setTimeout(PingServer, 60000);
}
static function ForceSend() {
if (Request == null) {
return(undefined);
}
Request.Send();
Request = new Playtomic.LogRequest();
}
static function Play() {
if (!Enabled) {
return(undefined);
}
LevelCounters = new Array();
LevelAverages = new Array();
LevelRangeds = new Array();
Send("p/" + (Plays + 1), true);
}
static function CustomMetric(name, group, unique) {
if (!Enabled) {
return(undefined);
}
if ((group == null) || (group == undefined)) {
group = "";
}
if ((unique == null) || (unique == undefined)) {
unique = false;
}
if (unique) {
if (Contains(Customs, name)) {
return(undefined);
}
Customs.push(name);
}
Send((("c/" + Clean(name)) + "/") + Clean(group));
}
static function Link(url, name, group, unique, total, fail) {
if (!Enabled) {
return(undefined);
}
Send((((((((((("l/" + Clean(name)) + "/") + Clean(group)) + "/") + Clean(url)) + "/") + unique) + "/") + total) + "/") + fail);
}
static function LevelCounterMetric(name, level, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
var _local1 = (name + ".") + level.toString();
if (Contains(LevelCounters, _local1)) {
return(undefined);
}
LevelCounters.push(_local1);
}
Send((("lc/" + Clean(name)) + "/") + Clean(level));
}
static function LevelRangedMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
var _local1 = (name + ".") + level.toString();
if (Contains(LevelRangeds, _local1)) {
return(undefined);
}
LevelRangeds.push(_local1);
SaveCookie("lr_" + name, 1);
}
Send((((("lr/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function LevelAverageMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
var _local1 = (name + ".") + level.toString();
if (Contains(LevelAverages, _local1)) {
return(undefined);
}
LevelAverages.push(_local1);
}
Send((((("la/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function Contains(arr, key) {
var _local1 = arr.length - 1;
while (_local1 > -1) {
if (arr[_local1] == key) {
return(true);
}
_local1--;
}
return(false);
}
static function Heatmap(metric, heatmap, x, y) {
if (!Enabled) {
return(undefined);
}
Send((((((("h/" + Clean(metric)) + "/") + Clean(heatmap)) + "/") + x) + "/") + y);
}
static function Funnel(name, step, stepnum) {
if (!Enabled) {
return(undefined);
}
Send((((("f/" + Clean(name)) + "/") + Clean(step)) + "/") + stepnum);
}
static function PlayerLevelStart(levelid) {
if (!Enabled) {
return(undefined);
}
Send("pls/" + levelid);
}
static function PlayerLevelWin(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plw/" + levelid);
}
static function PlayerLevelQuit(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plq/" + levelid);
}
static function PlayerLevelRetry(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plr/" + levelid);
}
static function PlayerLevelFlag(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plf/" + levelid);
}
static function PingServer() {
if (!Enabled) {
return(undefined);
}
Pings++;
Send((("t/" + (FirstPing ? "y" : "n")) + "/") + Pings, true);
if (FirstPing) {
FirstPing = false;
setInterval(PingServer, 60000);
}
}
static function Send(s, view) {
if (view == undefined) {
view = false;
}
Request.Queue(s);
if ((Request.Ready || (view)) || (!Queue)) {
Request.Send();
Request = new Playtomic.LogRequest();
}
}
static function GetCookie(n) {
if (Cookie.data[n] == undefined) {
return(0);
}
return(parseInt(Cookie.data[n]));
}
static function SaveCookie(n, v) {
Cookie.data[n] = v.toString();
Cookie.flush();
}
static function Clean(s) {
while (s.indexOf("/") > -1) {
s = Replace(s, "/", "\\");
}
while (s.indexOf("~") > -1) {
s = Replace(s, "~", "-");
}
return(escape(s));
}
static function Replace(str, find, replace) {
return(str.split(find).join(replace));
}
static function IncreaseViews() {
var _local1 = GetCookie("views");
_local1++;
SaveCookie("views", _local1);
}
static function IncreasePlays() {
Plays++;
}
static var Enabled = false;
static var Queue = true;
static var SWFID = 0;
static var GUID = "";
static var Request = new Playtomic.LogRequest();
static var FirstPing = true;
static var Pings = 0;
static var Plays = 0;
static var HighestGoal = 0;
static var Customs = new Array();
static var LevelCounters = new Array();
static var LevelAverages = new Array();
static var LevelRangeds = new Array();
}