Frame 1
stage.showMenu = false;
stop();
Set("/:score", "0");
Instance of Symbol 30 MovieClip "guy1" in Frame 1
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(400) + 100;
_local1._y = -10;
enemySpeed = random(3) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 390) {
reset();
}
}
Instance of Symbol 30 MovieClip "guy6" in Frame 1
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(400) + 100;
_local1._y = -10;
enemySpeed = random(10) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 390) {
reset();
}
}
Instance of Symbol 30 MovieClip "guy5" in Frame 1
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(400) + 100;
_local1._y = -10;
enemySpeed = random(10) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 390) {
reset();
}
}
Instance of Symbol 30 MovieClip "guy4" in Frame 1
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(400) + 100;
_local1._y = -10;
enemySpeed = random(10) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 390) {
reset();
}
}
Instance of Symbol 30 MovieClip "guy3" in Frame 1
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(400) + 100;
_local1._y = -10;
enemySpeed = random(10) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 390) {
reset();
}
}
Instance of Symbol 30 MovieClip "guy2" in Frame 1
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(400) + 100;
_local1._y = -10;
enemySpeed = random(10) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 390) {
reset();
}
}
Instance of Symbol 35 MovieClip "InstanceName_0" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy1)) {
_root.guy1.gotoAndPlay(17);
}
if (this.hitTest(_root.guy2)) {
_root.guy2.gotoAndPlay(17);
}
if (this.hitTest(_root.guy3)) {
_root.guy3.gotoAndPlay(17);
}
if (this.hitTest(_root.guy4)) {
_root.guy4.gotoAndPlay(17);
}
if (this.hitTest(_root.guy5)) {
_root.guy5.gotoAndPlay(17);
}
if (this.hitTest(_root.guy6)) {
_root.guy6.gotoAndPlay(17);
}
if ((code = "cheater")) {
_root.time.gotoAndStop(2);
}
}
Instance of Symbol 5 MovieClip [Follow] in Frame 1
//component parameters
onClipEvent (initialize) {
speed = 0.06;
minDistance = 10;
followX = true;
followY = true;
invertDirection = false;
rotatetoMouse = true;
_targetInstanceName = "InstanceName_0";
}
Frame 2
trace(score);
pncom.storeScore(score);
stop();
Symbol 2 MovieClip [Rotate] Frame 1
#initclip 3
RotateClass = function () {
var _local1 = this;
_local1.listenersList = [];
_local1.enabled = true;
_local1.init();
};
Object.registerClass("Rotate", RotateClass);
RotateClass.prototype.init = function () {
var _local1 = this;
if (_local1._targetInstanceName.length > 0) {
_local1.rotateTarget = (_local1.targetInstance = _local1._parent[_local1._targetInstanceName]);
if (_local1.rotateTarget instanceof MovieClip) {
_local1.enabled = true;
_local1.oldRotation = 0;
_local1.deltaRotation = 0;
_local1._visible = false;
_local1.rotateTarget.useHandCursor = _local1.showHand;
_local1.rotateTarget.pointer = _local1;
_local1.rotateTarget.onPress = _local1.myMouseDown;
_local1.rotateTarget.onRelease = _local1.myMouseUp;
_local1.rotateTarget.onReleaseOutside = _local1.myMouseUp;
} else {
trace("Rotate Component: no target movieclip found...");
_local1.enabled = false;
}
}
};
RotateClass.prototype.myMouseDown = function () {
var _local1 = this;
if (_local1.pointer.enabled) {
_local1.pointer.deltaRotation = _local1.pointer.getRotation() - _local1.pointer.oldRotation;
_local1.onMouseMove = function () {
var _local1 = this;
_local1._rotation = _local1.pointer.getRotation() - _local1.pointer.deltaRotation;
_local1.updateAfterEvent();
};
}
};
RotateClass.prototype.myMouseUp = function () {
var _local1 = this;
if (_local1.enabled) {
delete _local1.onMouseMove;
_local1.pointer.oldRotation = _local1._rotation;
}
};
RotateClass.prototype.onEnterFrame = function () {
var _local1 = this;
if (_local1.enabled && (_local1.autoRotate)) {
_local1.rotateTarget._rotation = _local1.getRotation();
}
};
RotateClass.prototype.getRotation = function () {
var _local1 = parseInt(_root._xmouse - this.rotateTarget._x);
var _local3 = parseInt(_root._ymouse - this.rotateTarget._y);
var radians = Math.atan(_local3 / _local1);
var _local2 = ((radians / (Math.PI/180)) + (180 * (_local1 < 0))) + 90;
this.sendRotateEvent(_local2);
return(_local2);
};
RotateClass.prototype.disable = function () {
this.enabled = false;
};
RotateClass.prototype.enable = function () {
this.enabled = true;
};
RotateClass.prototype.isEnabled = function () {
return(this.enabled);
};
RotateClass.prototype.getValue = function () {
return(this.degrees);
};
RotateClass.prototype.addListener = function (ref) {
this.listenersList[ref] = ref;
};
RotateClass.prototype.removeListener = function (ref) {
delete this.listenersList[ref];
};
RotateClass.prototype.sendRotateEvent = function (rotation) {
var _local1 = this;
var _local2 = rotation;
for (var _local3 in _local1.listenersList) {
_local1.listenersList[_local3].onRotate(_local2);
}
};
#endinitclip
Symbol 3 MovieClip [pnFlashGames] Frame 1
#initclip 1
pnFlashGames = function () {
var _local1 = this;
_local1.gid = _root.pn_gid;
_local1.uname = _root.pn_uname;
_local1.busy = false;
_local1.gameSaved = null;
_local1.gameLoaded = null;
_local1.scoreStored = null;
_local1.gameData = "";
};
pnFlashGames.prototype.saveGame = function (gameData) {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "saveGame";
varsObj.gid = _local1.gid;
varsObj.gameData = gameData;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = _local1;
varsObj.onLoad = _local1.saveGame_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.saveGame_Result = function (success) {
var _local1 = this;
_local1.parent._parent.incoming = _local1.opSuccess;
if (_local1.opSuccess == "true") {
_local1.parent.gameSaved = true;
} else {
_local1.parent.gameSaved = false;
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.loadGame = function () {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "loadGame";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = _local1;
varsObj.onLoad = _local1.loadGame_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.loadGame_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.gameLoaded = true;
_local1.parent.gameData = gameData;
} else {
_local1.parent.gameLoaded = false;
}
if (_local1.parent.onLoadGame != null) {
_local1.parent.onLoadGame(_local1.gameData);
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.storeScore = function (score) {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.score = score;
varsObj.func = "storeScore";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = _local1;
varsObj.onLoad = _local1.storeScore_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.storeScore_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.scoreStored = true;
} else {
_local1.parent.scoreStored = false;
}
_local1.parent.busy = false;
};
Object.registerClass("pnFlashGames", pnFlashGames);
#endinitclip
Symbol 5 MovieClip [Follow] Frame 1
#initclip 2
FollowClass = function () {
var _local1 = this;
_local1.listenerList = new Object();
_local1.listenerID = 0;
_local1.enabled = true;
_local1.init();
};
Object.registerClass("Follow", FollowClass);
FollowClass.prototype.init = function () {
var _local1 = this;
if (_local1._targetInstanceName.length > 0) {
_local1.followTarget = (_local1.targetInstance = _local1._parent[_local1._targetInstanceName]);
_local1._visible = false;
if (_local1.followTarget instanceof MovieClip) {
_local1.enabled = true;
} else {
trace("Follow Component: no target movieclip found...");
_local1.enabled = false;
}
}
if (((!_local1.followX) && (!_local1.followY)) && (!_local1.rotateToMouse)) {
_local1.enabled = false;
}
if (_local1.speed <= 0) {
_local1.speed = 0.01;
}
if (_local1.minDistance < 0) {
_local1.minDistance = 0;
}
_local1.newX = (_local1.oldX = _local1.followTarget._x);
_local1.newY = (_local1.oldY = _local1.followTarget._y);
};
FollowClass.prototype.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.enabled) {
if (_local1.invertDirection) {
dX = parseInt((Stage.width - _local2._xmouse) - _local1.followTarget._x);
dY = parseInt((Stage.height - _local2._ymouse) - _local1.followTarget._y);
} else {
dX = parseInt(_local2._xmouse - _local1.followTarget._x);
dY = parseInt(_local2._ymouse - _local1.followTarget._y);
}
radius = Math.sqrt(Math.pow(dX, 2) + Math.pow(dY, 2)) - _local1.minDistance;
newRadius = radius * _local1.speed;
radians = Math.atan(dY / dX);
degrees = ((radians / (Math.PI/180)) + (180 * (dX < 0))) + 90;
if (_local1.rotatetoMouse) {
_local1.followTarget._rotation = degrees;
}
if (_local1.followX || (!_local1.followY)) {
if (degrees > 180) {
_local1.newX = _local1.oldX - (newRadius * Math.cos(radians));
_local1.newY = _local1.oldY - (newRadius * Math.sin(radians));
} else {
_local1.newX = _local1.oldX + (newRadius * Math.cos(radians));
_local1.newY = _local1.oldY + (newRadius * Math.sin(radians));
}
_local1.oldX = _local1.newX;
_local1.oldY = _local1.newY;
if (_local1.followX) {
_local1.followTarget._x = _local1.newX;
}
if (_local1.followY) {
_local1.followTarget._y = _local1.newY;
}
}
}
_local1.sendFollowEvent(degrees);
};
FollowClass.prototype.disable = function () {
this.enabled = false;
};
FollowClass.prototype.enable = function () {
this.enabled = true;
};
FollowClass.prototype.isEnabled = function () {
return(this.enabled);
};
FollowClass.prototype.getValue = function () {
return(this.degrees);
};
FollowClass.prototype.sendFollowEvent = function (value) {
var _local1 = this;
var _local2 = value;
for (var _local3 in _local1.listenerList) {
_local1.listenerList[_local3].onFollow(_local2);
}
};
FollowClass.prototype.addListener = function (Obj) {
if (Obj._followID == null) {
this.listenerList[this.listenerID++] = Obj;
return(true);
}
return(false);
};
FollowClass.prototype.removeListener = function (Obj) {
var _local1 = this;
var _local2 = Obj;
for (var _local3 in _local1.listenerList) {
if (_local1.listenerList[_local3] == _local2) {
delete _local1.listenerList[_local3];
return(true);
}
}
return(false);
};
#endinitclip
Symbol 30 MovieClip Frame 1
play();
Symbol 30 MovieClip Frame 15
gotoAndPlay (1);
Symbol 30 MovieClip Frame 17
enemySpeed = 0;
Symbol 30 MovieClip Frame 23
Set("/:score", Number(/:score) + 1);
_root.guy1._y = 410;
reset();
Symbol 40 MovieClip Frame 1
_root.tijd = _root.tijd - 1;
if (_root.tijd < 1) {
_root.gotoAndStop(2);
}
Symbol 40 MovieClip Frame 10
gotoAndPlay (1);
Symbol 40 MovieClip Frame 97
gotoAndPlay (1);
Symbol 43 Button
on (release) {
password = password.toLowerCase();
if (password == "cheater") {
_root.time.gotoAndPlay(11);
} else {
password = "";
}
}
Symbol 55 Button
on (release) {
loadMovieNum ("gtamx.swf", 0);
}