Frame 1
function doSomething() {
}
function doSomething2() {
getURL ("http://flashground.net", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Copyright by Jacob Dzwinel", doSomething);
Functioned2 = new ContextMenuItem("Visit Flashground.net", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
Instance of Symbol 23 MovieClip in Frame 1
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 3
_root.scores = 0;
_root.drager = 0;
stop();
Frame 5
stop();
Instance of Symbol 23 MovieClip in Frame 5
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 6
_root.scores = 0;
_root.drager = 0;
play();
Frame 73
function Bullet() {
this.speed = 5;
}
global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.plane1.hitTest(this._x, this._y, true)) {
tellTarget ("_root.plane1.plane2") {
nextFrame();
this.removeMovieClip();
};
}
};
Object.registerClass("bullet", Bullet);
function Vector(x, y) {
this.x = x;
this.y = y;
this.length = Math.sqrt((x * x) + (y * y));
}
function constrain(p0, p1, l) {
var _local4 = 0.025;
var _local9 = p1._x - p0._x;
var _local8 = p1._y - p0._y;
var _local1 = new Vector(_local9, _local8);
var _local5 = (_local1.length - l) / _local1.length;
var _local7 = (_local1.x * 0.5) * _local5;
var _local6 = (_local1.y * 0.5) * _local5;
p1._x = p1._x - (_local7 - _local4);
p1._y = p1._y - _local6;
p0._x = p0._x + (_local7 + _local4);
p0._y = p0._y + _local6;
}
function update() {
var _local3;
var _local2 = 0;
while (_local2 < joints.length) {
this[joints[_local2]].update();
_local2++;
}
}
function collisions() {
var _local2;
var _local6;
var _local5;
var _local4 = false;
var _local3 = 0;
while (_local3 < joints.length) {
_local2 = this[joints[_local3]];
if (_local2.collisions()) {
_local4 = true;
_local6 = _local2._x;
_local5 = _local2._y;
}
_local3++;
}
if (_local4) {
if (!soundplaying) {
var _local7 = new Sound(this);
_local7.onSoundComplete = function () {
soundplaying = false;
};
var _local8 = random(3);
var _local9 = -100 + ((head._x * 200) / 445);
_local7.attachSound("break" + _local8);
_local7.start(0, 0);
_local7.setVolume(75);
_local7.setPan(_local9);
soundplaying = true;
}
drawblood(_local6, _local5);
}
}
function constraints() {
var _local1 = 0;
while (_local1 < 2) {
constrain(lhand, lelbow, 12);
constrain(lelbow, neck, 12);
constrain(rhand, relbow, 12);
constrain(relbow, neck, 12);
constrain(neck, waist, 20);
constrain(lknee, waist, 20);
constrain(lfoot, lknee, 20);
constrain(rknee, waist, 20);
constrain(rfoot, rknee, 20);
constrain(head, neck, 3.5);
_local1++;
}
}
function setup() {
constraints();
var _local2;
var _local3 = 0;
while (_local3 < joints.length) {
_local2 = this[joints[_local3]];
_local2.lx = _local2._x;
_local2.ly = _local2._y;
_local3++;
}
}
function drawblood(x, y) {
var _local1;
var _local2 = 0;
while (_local2 <= (random(3) + 3)) {
_local1 = attachMovie("Blood", "Blood" + blooddepth, blooddepth++);
_local1._x = x;
_local1._y = y;
_local2++;
}
}
function drawhead(col) {
var _local4 = 0;
var _local3 = 0;
var _local2 = 7;
head.beginFill(((col == undefined) ? 0 : (col)), 100);
head.moveTo(_local4 + _local2, _local3);
var _local1 = 0;
while (_local1 <= 6.283185) {
head.lineTo(_local4 + (Math.cos(_local1) * _local2), _local3 + (Math.sin(_local1) * _local2));
_local1 = _local1 + 0.069813;
}
head.endFill();
}
function draw(col) {
clear();
lineStyle(5, ((col == undefined) ? 0 : (col)), 100);
moveTo(lhand._x, lhand._y);
lineTo(lelbow._x, lelbow._y);
lineTo(neck._x, neck._y);
lineTo(relbow._x, relbow._y);
lineTo(rhand._x, rhand._y);
moveTo(neck._x, neck._y);
lineTo(waist._x, waist._y);
lineTo(lknee._x, lknee._y);
lineTo(lfoot._x, lfoot._y);
moveTo(waist._x, waist._y);
lineTo(rknee._x, rknee._y);
lineTo(rfoot._x, rfoot._y);
var _local2 = neck._x - head._x;
var _local1 = neck._y - head._y;
head._rotation = (Math.atan2(_local1, _local2) * 180) / 3.141593;
}
function onEnterFrame() {
update();
constraints();
collisions();
draw(ragdollcolor);
}
MovieClip.prototype.useHandCursor = false;
var dragging = null;
var blooddepth = 0;
var soundplaying = false;
var ragdollcolor = 0;
var joints = new Array("lhand", "lelbow", "rhand", "relbow", "neck", "waist", "lknee", "lfoot", "rknee", "rfoot", "head");
drawhead(ragdollcolor);
setup();
stop();
_root.silence._width = 200;
Instance of Symbol 73 MovieClip "bullett" in Frame 73
onClipEvent (enterFrame) {
if (_root.access == 1) {
this._rotation = _root.radToDeg(Math.atan2(_root.head._y - this._y, _root.head._x - this._x));
}
}
onClipEvent (enterFrame) {
if (_root.head.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 20;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text1;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text8;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text9;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text11;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text10;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.waist.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text3;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.neck.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 15;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text2;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.relbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text5;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lelbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text7;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text4;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (1);
_root.stats = _root.text6;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
Instance of Symbol 93 MovieClip "bullett2" in Frame 73
onClipEvent (enterFrame) {
if (_root.access2 == 1) {
this._rotation = _root.radToDeg(Math.atan2(_root.head._y - this._y, _root.head._x - this._x));
}
}
onClipEvent (enterFrame) {
if (_root.head.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 20;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text1;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text8;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text9;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text11;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text10;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.waist.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text3;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.neck.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 15;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text2;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.relbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text5;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lelbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text7;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text4;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text6;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
Instance of Symbol 94 MovieClip "bullett3" in Frame 73
onClipEvent (enterFrame) {
if (_root.access3 == 1) {
this._rotation = _root.radToDeg(Math.atan2(_root.head._y - this._y, _root.head._x - this._x));
}
}
onClipEvent (enterFrame) {
if (_root.head.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 20;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text1;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text8;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text9;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text11;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text10;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.waist.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text3;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.neck.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 15;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text2;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.relbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text5;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lelbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text7;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text4;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text6;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
Instance of Symbol 95 MovieClip "bullett4" in Frame 73
onClipEvent (enterFrame) {
if (_root.access4 == 1) {
this._rotation = _root.radToDeg(Math.atan2(_root.head._y - this._y, _root.head._x - this._x));
}
}
onClipEvent (enterFrame) {
if (_root.head.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 20;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text1;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text8;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text9;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text11;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text10;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.waist.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text3;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.neck.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 15;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text2;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.relbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text5;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lelbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text7;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text4;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text6;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
Instance of Symbol 96 MovieClip "bullett5" in Frame 73
onClipEvent (enterFrame) {
if (_root.access5 == 1) {
this._rotation = _root.radToDeg(Math.atan2(_root.head._y - this._y, _root.head._x - this._x));
}
}
onClipEvent (enterFrame) {
if (_root.head.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 20;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text1;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text8;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lknee.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text9;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text11;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rfoot.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text10;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.waist.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text3;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.neck.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 15;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text2;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.relbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text5;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lelbow.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text7;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.rhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text4;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
onClipEvent (enterFrame) {
if (_root.lhand.hitTest(this.hit)) {
_root.silence._width = _root.silence._width - 10;
tellTarget (this) {
gotoAndPlay (2);
_root.stats = _root.text6;
tellTarget (_root.blood) {
gotoAndPlay (2);
};
};
}
}
Frame 75
stop();
Instance of Symbol 23 MovieClip in Frame 75
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Symbol 3 MovieClip [Joint] Frame 1
function update() {
if (_root.dragging == this) {
xs = _root._xmouse - _x;
ys = _root._ymouse - _y;
} else {
xs = _x - lx;
ys = _y - ly;
}
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
if (_local3 > ms) {
xs = xs * (ms / _local3);
ys = ys * (ms / _local3);
}
if (Math.abs(xs) < 1) {
xs = 0;
}
if (Math.abs(ys) < 0.25) {
ys = 0;
}
lx = _x;
ly = _y;
_x = (_x + (xs * 0.94));
_y = (_y + (ys + 0.5));
}
function force() {
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
return((_local3 >= 12) && (_root.dragging != this));
}
function collisions() {
var _local2 = false;
if (this._name != "head") {
if (_y > 245) {
_y = 245;
_local2 = true;
} else if (_y < 0) {
_y = 0;
_local2 = true;
}
if (_x > 445) {
_x = 445;
_local2 = true;
} else if (_x < 0) {
_x = 0;
_local2 = true;
}
} else {
var _local3 = _width / 2.5;
if (_y > (245 - _local3)) {
_y = (245 - _local3);
_local2 = true;
} else if (_y < _local3) {
_y = _local3;
_local2 = true;
}
if (_x > (445 - _local3)) {
_x = (445 - _local3);
_local2 = true;
} else if (_x < _local3) {
_x = _local3;
_local2 = true;
}
}
if (_local2) {
return(force());
}
return(false);
}
function onPress() {
_root.drager = 1;
_root.dragging = this;
}
_root.dragging = null;
var lx = _x;
var ly = _y;
var xs = 0;
var ys = 0;
var ms = 30;
var kl = {};
Key.addListener(kl);
kl.onKeyUp = function () {
var _local5 = Key.getCode();
if (_local5 == 32) {
var _local4 = _x - _root._xmouse;
var _local3 = _y - _root._ymouse;
var _local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local2 < 50) {
_x = (_x + ((_local4 / _local2) * ms));
_y = (_y + ((_local3 / _local2) * ms));
}
}
};
Instance of Symbol 5 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Instance of Symbol 7 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 10;
}
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 20;
}
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 20 Button
on (release) {
_root.play();
}
Symbol 21 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 21 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 MovieClip Frame 88
_root.play();
Symbol 34 Button
on (release) {
getURL ("http://flashground.net", "_blank");
}
Symbol 45 Button
on (release) {
gotoAndStop (6);
}
Symbol 60 Button
on (release) {
getURL ("http://flashground.net", "_blank");
}
Symbol 65 MovieClip Frame 2
_root.shadoww._x = _root.head._x;
_root.shadoww._width = _root.head._y;
Symbol 73 MovieClip Frame 1
_root.access = 1;
Symbol 73 MovieClip Frame 2
_root.access = 0;
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
_root.access2 = 1;
Symbol 93 MovieClip Frame 3
_root.access2 = 0;
Symbol 93 MovieClip Frame 60
gotoAndPlay (2);
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
_root.access3 = 1;
Symbol 94 MovieClip Frame 3
_root.access3 = 0;
Symbol 94 MovieClip Frame 60
gotoAndPlay (2);
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
_root.access4 = 1;
Symbol 95 MovieClip Frame 3
_root.access4 = 0;
Symbol 95 MovieClip Frame 60
gotoAndPlay (2);
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
_root.access5 = 1;
Symbol 96 MovieClip Frame 3
_root.access5 = 0;
Symbol 96 MovieClip Frame 60
gotoAndPlay (2);
Symbol 98 MovieClip Frame 1
if (_root.silence._width < 20) {
_root.gotoAndPlay("dead");
}
if (_root.scores == 1000) {
tellTarget (_root.bullett2) {
gotoAndPlay (2);
};
}
if (_root.scores == 2000) {
tellTarget (_root.bullett3) {
gotoAndPlay (2);
};
}
if (_root.scores == 3000) {
tellTarget (_root.bullett4) {
gotoAndPlay (2);
};
}
if (_root.scores == 4000) {
tellTarget (_root.bullett5) {
gotoAndPlay (2);
};
}
Mouse.hide();
_root.scores = _root.scores + 1;
if (_root.drager == 0) {
_root.head._x = _root._xmouse;
_root.head._y = _root._ymouse;
}
Symbol 98 MovieClip Frame 2
if (_root.silence._width < 20) {
_root.gotoAndPlay("dead");
}
if (_root.scores == 1000) {
tellTarget (_root.bullett2) {
gotoAndPlay (2);
};
}
if (_root.scores == 2000) {
tellTarget (_root.bullett3) {
gotoAndPlay (2);
};
}
if (_root.scores == 3000) {
tellTarget (_root.bullett4) {
gotoAndPlay (2);
};
}
Mouse.hide();
_root.scores = _root.scores + 1;
if (_root.drager == 0) {
_root.head._x = _root._xmouse;
_root.head._y = _root._ymouse;
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
play();
Symbol 100 MovieClip Frame 6
stop();
Symbol 106 Button
on (release) {
gotoAndPlay (6);
}
Symbol 110 Button
on (release) {
getURL ("http://flashground.net", "_blank");
}
Symbol 114 Button
on (release) {
gotoAndPlay (5);
}