Frame 1
url_seek = this._url;
url_find = substring(url_seek, 1, 29);
if (url_find != "http://uploads.ungrounded.net") {
_root.gotoAndStop(2);
Stage.showMenu = false;
} else {
_root.gotoAndPlay(3);
}
Instance of Symbol 11 MovieClip in Frame 2
on (release) {
getURL ("http://www.newgrounds.com/portal/search.php?terms=KYnetiK-27&kind=a&x=0&y=0", "blank");
}
Frame 4
stop();
Instance of Symbol 26 MovieClip in Frame 4
on (release) {
_root.gotoAndPlay("Freeball");
_root.buttonPressTime = getTimer() / 1000;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 46 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(50) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 57 MovieClip in Frame 4
onClipEvent (enterFrame) {
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 62 MovieClip in Frame 4
on (release) {
getURL ("http://www.newgrounds.com/portal/search.php?terms=KYnetiK-27&kind=a&x=0&y=0", "blank");
}
Frame 28
function load() {
_root.Score = "0";
_root.hours = "00";
_root.minutes = "00";
_root.seconds = "00";
_root.milli = "00";
pause();
}
function restartTimer() {
_root.hours = "00";
_root.minutes = "00";
_root.seconds = "00";
_root.milli = "00";
buttonPressTime = getTimer() / 1000;
TimePressed = 0;
pause();
}
Object.prototype.getFPS = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
numcount = 0;
cumule = 0;
this.createEmptyMovieClip("fps", this.getNextHighestDepth());
fps.onEnterFrame = function () {
numcount++;
currfps = getFPS();
fpps = "FPS. " + currfps;
cumule = cumule + currfps;
fppsavg = "avg. " + (Math.round((cumule / numcount) * 10) / 10);
};
_root.Ball.onEnterFrame = function () {
currtotal = ((hours + minutes) + seconds) + milli;
besttotal = ((besthours + bestminutes) + bestseconds) + bestmilli;
if (currtotal >= besttotal) {
_root.bestseconds = _root.seconds;
_root.bestminutes = _root.minutes;
_root.besthours = _root.hours;
_root.bestmilli = _root.milli;
}
totalTimer = getTimer() / 1000;
goTime = totalTimer - buttonPressTime;
_root.hours = Math.floor(goTime / 3600);
_root.minutes = Math.floor(((goTime / 3600) - _root.hours) * 60);
_root.seconds = Math.floor(((((goTime / 3600) - _root.hours) * 60) - _root.minutes) * 60);
_root.milli = Math.floor((goTime - ((_root.seconds + (_root.minutes * 60)) + (_root.hours * 3600))) * 100);
if (_root.seconds < 10) {
_root.seconds = "0" + _root.seconds;
}
if (_root.minutes < 10) {
_root.minutes = "0" + _root.minutes;
}
if (_root.hours < 10) {
_root.hours = "0" + _root.hours;
}
if (_root.milli < 10) {
_root.milli = "0" + _root.milli;
}
};
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(4);
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 - 20);
}
}
function constraints() {
var _local2 = 0;
while (_local2 < 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);
_local2++;
}
var _local1 = 0;
while (_local1 < 2) {
constrain(lhand2, lelbow2, 12);
constrain(lelbow2, neck2, 12);
constrain(rhand2, relbow2, 12);
constrain(relbow2, neck2, 12);
constrain(neck2, waist2, 20);
constrain(lknee2, waist2, 20);
constrain(lfoot2, lknee2, 20);
constrain(rknee2, waist2, 20);
constrain(rfoot2, rknee2, 20);
constrain(head2, neck2, 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) {
rd_mc.clear();
if ((c == true) && (_root.Damage > 0)) {
}
this.createEmptyMovieClip("rd_mc", this.getNextHighestDepth());
rd_mc.lineStyle(5, ((col == undefined) ? 0 : (col)), 100);
rd_mc.moveTo(lhand._x, lhand._y);
rd_mc.lineTo(lelbow._x, lelbow._y);
rd_mc.lineTo(neck._x, neck._y);
rd_mc.lineTo(relbow._x, relbow._y);
rd_mc.lineTo(rhand._x, rhand._y);
rd_mc.moveTo(neck._x, neck._y);
rd_mc.lineTo(waist._x, waist._y);
rd_mc.lineTo(lknee._x, lknee._y);
rd_mc.lineTo(lfoot._x, lfoot._y);
rd_mc.moveTo(waist._x, waist._y);
rd_mc.lineTo(rknee._x, rknee._y);
rd_mc.lineTo(rfoot._x, rfoot._y);
var _local4 = neck._x - head._x;
var _local3 = neck._y - head._y;
head._rotation = (Math.atan2(_local3, _local4) * 180) / 3.141593;
}
function onEnterFrame() {
update();
constraints();
collisions();
draw(ragdollcolor);
}
var dragging = null;
var blooddepth = 0;
var soundplaying = false;
var ragdollcolor = 16777215;
var joints = new Array("lhand", "lelbow", "rhand", "relbow", "neck", "waist", "lknee", "lfoot", "rknee", "rfoot", "head");
drawhead(ragdollcolor);
setup();
stop();
Instance of Symbol 65 MovieClip in Frame 28
onClipEvent (enterFrame) {
this._x = _root.Ball._x;
if ((this._x > _root.block3._x) && (this._x < _root.block2._x)) {
this._y = _root.block._y;
} else {
this._y = 360;
}
jesus = ((_root.Ball._y / 360) * 100) + 10;
if (jesus > 20) {
this._xscale = jesus;
this._yscale = jesus;
this._alpha = jesus;
}
}
Instance of Symbol 78 MovieClip "Enemy" in Frame 28
onClipEvent (load) {
EVelX = 0;
EVelY = 0;
_root.EnemyMode = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.EnemyMode == 0) && (_root.bestseconds > 30)) {
_root.EnemyMode = 1;
}
if (_root.EnemyMode == 1) {
this._visible = true;
EtoPx = (this._x - _root.head._x) / 500;
EtoPy = (this._y - _root.head._y) / 500;
EVelX = EVelX - EtoPx;
EVelY = EVelY - EtoPy;
EVelY = EVelY + 0.1;
EVelX = EVelX * 0.97;
this._x = this._x + EVelX;
this._y = this._y + EVelY;
this._rotation = this._rotation + EVelX;
if ((this._y > 350) && (EVelY > 0)) {
this._y = 349;
EVelY = EVelY * -1;
}
if ((this._y < 10) && (EVelY < 0)) {
this._y = 11;
EVelY = EVelY * -1;
}
if ((this._x > 1000) && (EVelX > 0)) {
this._x = 999;
EVelX = EVelX * -1;
}
if ((this._x < 10) && (EVelX < 0)) {
this._x = 11;
EVelX = EVelX * -1;
}
}
}
Instance of Symbol 81 MovieClip "head" in Frame 28
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
if (this.Inrange == true) {
_root.neck._y = _root.neck._y + -30;
}
if (this.Inrange == false) {
_root.neck._y = _root.neck._y + -10;
}
} else {
_root.neck._y = _root.neck._y + -2;
}
}
if (Key.isDown(40)) {
_y = (_y + 3);
}
if (Key.isDown(39)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
_x = (_x + 2);
if (_root.rknee._x > _root.lknee._x) {
_root.rknee._x = _root.rknee._x + 3;
_root.waist._x = _root.waist._x + 2;
_root.waist._y = _root.waist._y + 3;
_root.rfoot._x = _root.rfoot._x + 1;
_root.rknee._y = _root.rknee._y - 2;
}
if (_root.rknee._x < _root.lknee._x) {
_root.lknee._x = _root.lknee._x + 3;
_root.waist._x = _root.waist._x + 2;
_root.waist._y = _root.waist._y + 3;
_root.lfoot._x = _root.lfoot._x + 1;
_root.lknee._y = _root.lknee._y - 2;
}
} else if (cheese < 10) {
_x = (_x + 2);
cheese = cheese + 1;
}
}
if (Key.isDown(37)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
_x = (_x + -2);
if (_root.rknee._x > _root.lknee._x) {
_root.lknee._x = _root.lknee._x - 3;
_root.waist._x = _root.waist._x - 2;
_root.waist._y = _root.waist._y + 3;
_root.lfoot._x = _root.lfoot._x - 1;
_root.lknee._y = _root.lknee._y - 2;
}
if (_root.rknee._x < _root.lknee._x) {
_root.rknee._x = _root.rknee._x - 3;
_root.waist._x = _root.waist._x - 2;
_root.waist._y = _root.waist._y + 3;
_root.rknee._y = _root.rknee._y - 2;
_root.rfoot._x = _root.rfoot._x - 1;
}
} else if (cheese < 10) {
_x = (_x - 2);
cheese = cheese + 1;
}
}
}
onClipEvent (load) {
moo = 0;
}
onClipEvent (keyUp) {
if ((Key.getCode() == 37) || (Key.getCode() == 39)) {
cheese = 0;
}
}
Instance of Symbol 82 MovieClip "rhand" in Frame 28
onClipEvent (load) {
moohey = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(68) && (moohey == 0)) && (this._x > _root.lhand._x)) {
_y = (_y + -15);
_x = (_x + 25);
_root.neck._x = _root.neck._x - 5;
_root.waist._x = _root.waist._x - 5;
moohey = 1;
}
if ((Key.isDown(83) && (moohey == 0)) && (this._x < _root.lhand._x)) {
_y = (_y + -15);
_x = (_x + -25);
_root.neck._x = _root.neck._x + 5;
_root.waist._x = _root.waist._x + 5;
moohey = 1;
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == 68) || (Key.getCode() == 83)) {
moohey = 0;
}
}
Instance of Symbol 82 MovieClip "lhand" in Frame 28
onClipEvent (load) {
moohey = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(83) && (moohey == 0)) && (this._x < _root.rhand._x)) {
_y = (_y + -15);
_x = (_x + -25);
_root.neck._x = _root.neck._x + 5;
_root.waist._x = _root.waist._x + 5;
moohey = 1;
}
if ((Key.isDown(68) && (moohey == 0)) && (this._x > _root.rhand._x)) {
_y = (_y + -15);
_x = (_x + 25);
_root.neck._x = _root.neck._x - 5;
_root.waist._x = _root.waist._x - 5;
moohey = 1;
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == 83) || (Key.getCode() == 68)) {
moohey = 0;
}
}
Instance of Symbol 82 MovieClip "neck" in Frame 28
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
_x = (_x + 3);
} else {
_x = (_x + 1);
}
}
if (Key.isDown(37)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
_x = (_x + -3);
} else {
_x = (_x + -1);
}
}
}
Instance of Symbol 82 MovieClip "rfoot" in Frame 28
onClipEvent (load) {
moohey = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(67) && (moohey == 0)) && (this._x > _root.lfoot._x)) {
_y = (_y + -15);
_x = (_x + 25);
_root.waist._x = _root.waist._x + (-_root.waist.xs);
_root.neck._x = _root.neck._x + (-_root.neck.xs);
moohey = 1;
}
if ((Key.isDown(88) && (moohey == 0)) && (this._x < _root.lfoot._x)) {
_y = (_y + -15);
_x = (_x - 25);
_root.waist._x = _root.waist._x + (-_root.waist.xs);
_root.neck._x = _root.neck._x + (-_root.neck.xs);
moohey = 1;
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == 67) || (Key.getCode() == 88)) {
moohey = 0;
}
}
Instance of Symbol 82 MovieClip "lfoot" in Frame 28
onClipEvent (load) {
moohey = 0;
yeah = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(67) && (moohey == 0)) && (this._x > _root.rfoot._x)) {
_y = (_y + -15);
_x = (_x + 25);
moohey = 1;
}
if ((Key.isDown(88) && (moohey == 0)) && (this._x < _root.rfoot._x)) {
_y = (_y + -15);
_x = (_x - 25);
moohey = 1;
}
if ((yeah > 0) && (yeah < 100)) {
_root.waist.xs = 0;
_root.neck.xs = 0;
_root.waist.ys = 0;
_root.neck.ys = 0;
yeah = yeah + 1;
if (yeah >= 100) {
yeah = 0;
}
}
}
onClipEvent (keyDown) {
if ((Key.getCode() == 88) || (Key.getCode() == 67)) {
wx = _root.waist._x;
wy = _root.waist._y;
nx = _root.neck._x;
ny = _root.neck._y;
yeah = 1;
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == 88) || (Key.getCode() == 67)) {
moohey = 0;
}
}
Instance of Symbol 86 MovieClip "Ball" in Frame 28
onClipEvent (load) {
MyVelX = 0;
MyVelY = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + MyVelX;
this._y = this._y + MyVelY;
MyVelX = MyVelX * 0.98;
MyVelY = MyVelY + 0.1;
this._rotation = this._rotation + MyVelX;
if ((this.hitTest(_root.Enemy) && (Ehit == false)) && (_root.EnemyMode == 1)) {
_root.Enemy.EVelX = MyVelX;
_root.Enemy.EVelY = MyVelY;
MyVelX = -_root.Enemy.EVelX;
MyVelY = -_root.Enemy.EVelY;
Ehit = true;
}
if (!this.hitTest(_root.Enemy)) {
Ehit = false;
}
if ((this._y > 350) && (MyVelY > 0)) {
this._y = 349;
MyVelY = MyVelY * -0.8;
_root.restartTimer();
}
if ((this._y < 10) && (MyVelY < 0)) {
this._y = 11;
MyVelY = MyVelY * -0.8;
}
if ((this._x > 1000) && (MyVelX > 0)) {
this._x = 999;
MyVelX = MyVelX * -0.9;
}
if ((this._x < 0) && (MyVelX < 0)) {
this._x = 1;
MyVelX = MyVelX * -0.9;
}
}
Instance of Symbol 100 MovieClip "VCAM" in Frame 28
onClipEvent (load) {
scalerX = this._xscale;
scalerY = this._yscale;
}
onClipEvent (enterFrame) {
this._x = _root.waist._x + ((_root.Ball._x - _root.waist._x) / 2);
this._y = _root.waist._y + ((_root.Ball._y - _root.waist._y) / 2);
mooX = _root.waist._x + ((_root.Ball._x - _root.waist._x) / 2);
mooY = _root.waist._y + ((_root.Ball._y - _root.waist._y) / 2);
if (_root.waist._x > this._x) {
Wx = _root.waist._x - 20;
} else {
Wx = _root.waist._x + 20;
}
if (_root.waist._y > this._y) {
Wy = _root.waist._y - 20;
} else {
Wy = _root.waist._y + 20;
}
if (_root.Ball._x > this._x) {
Bx = _root.Ball._x - 20;
} else {
Bx = _root.Ball._x + 20;
}
if (_root.Ball._y > this._y) {
By = _root.Ball._y - 20;
} else {
By = _root.Ball._y + 20;
}
PdistX = this._x - Wx;
PdistY = this._y - Wy;
BdistX = this._x - Bx;
BdistY = this._y - By;
Moodist = Math.sqrt(Math.pow(Dx, 2) + Math.pow(Dy, 2));
Dx = _root.Ball._x - _root.waist._x;
Dy = _root.Ball._y - _root.waist._y;
this._xscale = Math.abs((Moodist + 100) / 5);
this._yscale = Math.abs((Moodist + 100) / 5);
}
Symbol 5 MovieClip [blood] Frame 1
function load() {
_root.Score = _root.Score - 1;
bs = 0;
}
function onEnterFrame() {
if ((((this._y < 355) && (!this.hitTest(_root.block1))) && (!this.hitTest(_root.block2))) && (!this.hitTest(_root.block3))) {
xs = xs * decay;
_x = (_x + xs);
_y = (_y + ys);
bs = 0;
ys = ys + 0.5;
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
} else {
bs = bs + 1;
if (bs > 100) {
this.removeMovieClip();
bs = 0;
}
if ((!this.hitTest(_root.block2)) && (!this.hitTest(_root.block3))) {
xs = 1;
ys = 0;
bs = bs + 1;
if (bs > 100) {
this.removeMovieClip();
bs = 0;
}
}
if (this.hitTest(_root.block2) || (this.hitTest(_root.block3))) {
xs = 0;
ys = 1;
bs = bs + 1;
if (bs > 100) {
this.removeMovieClip();
bs = 0;
}
}
}
if (this._xscale < 1) {
this.removeMovieClip();
bs = 0;
}
clear();
lineStyle(5, 16711680, 50);
lineTo(xs, ys);
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
if ((_local3 <= 1) && (this._y > 360)) {
}
}
var ms = ((Math.random() * 5) + 5);
var a = ((Math.random() * 2) * 3.141593);
var xs = (Math.cos(a) * ms);
var ys = (Math.sin(a) * ms);
var decay = (0.7 + (Math.random() * 0.25));
Symbol 6 MovieClip [bloodB] Frame 1
function load() {
_root.Score = _root.Score - 1;
bs = 0;
}
function onEnterFrame() {
if (_root.erasetheblood == true) {
this.removeMovieClip();
}
if (((((((((((((((((((((!this.hitTest(_root.Ground1)) && (!this.hitTest(_root.Ground2))) && (!this.hitTest(_root.Ground3))) && (!this.hitTest(_root.Ground4))) && (!this.hitTest(_root.Ground5))) && (!this.hitTest(_root.Ground6))) && (!this.hitTest(_root.Ground7))) && (!this.hitTest(_root.Ground8))) && (!this.hitTest(_root.Ground9))) && (!this.hitTest(_root.Ground10))) && (!this.hitTest(_root.leftWall1))) && (!this.hitTest(_root.leftWall2))) && (!this.hitTest(_root.leftWall3))) && (!this.hitTest(_root.leftWall4))) && (!this.hitTest(_root.leftWall5))) && (!this.hitTest(_root.leftWall6))) && (!this.hitTest(_root.leftWall7))) && (!this.hitTest(_root.leftWall8))) && (!this.hitTest(_root.leftWall9))) && (!this.hitTest(_root.leftWall10))) && ((this._y + ys) < 360)) {
xs = xs * decay;
_x = (_x + xs);
_y = (_y + ys);
bs = 0;
ys = ys + 0.5;
grr = false;
this._xscale = this._xscale * 0.95;
this._yscale = this._yscale * 0.95;
} else {
bs = bs + 1;
if (bs > 500) {
_root.erasetheblood = true;
this.removeMovieClip();
bs = 0;
}
if ((this._y + ys) >= 360) {
ys = 1;
}
}
if (this._xscale < 1) {
bs = 0;
}
clear();
lineStyle(10, 13369344, 50);
lineTo(xs, ys);
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
if ((_local3 < 1) && ((this._y + ys) >= 360)) {
}
}
var ms = ((Math.random() * 5) + 5);
var a = ((Math.random() * 2) * 3.141593);
var xs = (Math.cos(a) * ms);
var ys = (Math.sin(a) * ms);
var decay = (0.7 + (Math.random() * 0.25));
Symbol 26 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
this._xscale = 0.5;
this._yscale = 1;
Symbol 49 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 61
this.driptime = random(40) + 10;
this._xscale = 0.5;
this._yscale = 1;
Symbol 81 MovieClip Frame 1
function update() {
if (this.hitTest(_root.Ball)) {
if ((xs != 0) || (ys != 0)) {
_root.Ball.MyVelX = _root.Ball.MyVelX + (xs / 5);
_root.Ball.MyVelY = -10 + (ys / 5);
}
}
if (_root.dragging == this) {
} else {
if (!this.hitTest(_root.Enemy)) {
xs = _x - lx;
ys = _y - ly;
nx = xs;
ny = ys;
imhit = false;
}
if ((this.hitTest(_root.Enemy) && (imhit == false)) && (_root.EnemyMode == 1)) {
xs = _root.Enemy.EVelX;
ys = _root.Enemy.EVelY;
imhit = true;
_root.restartTimer();
if ((xs < 1) && (xs > -1)) {
_root.Enemy.EVelX = nx;
} else {
_root.Enemy.EVelX = random(16) - random(16);
}
if ((ys < 1) && (ys > -1)) {
_root.Enemy.EVelY = ny;
} else {
_root.Enemy.EVelY = -10;
}
this._x = this._x + ((-xs) * 1.5);
this._y = this._y + ((-ys) * 1.5);
if (!_root.soundplaying) {
var _local3 = new Sound(this);
_local3.onSoundComplete = function () {
_root.soundplaying = false;
};
var _local5 = random(4);
var _local6 = -100 + ((head._x * 200) / 445);
_local3.attachSound("break" + _local5);
_local3.start(0, 0);
_local3.setVolume(75);
_local3.setPan(_local6);
_root.soundplaying = true;
}
_root.drawblood(_x, _y);
c = true;
}
}
var _local4 = Math.sqrt((xs * xs) + (ys * ys));
if (_local4 > ms) {
xs = xs * (ms / _local4);
ys = ys * (ms / _local4);
}
if (Math.abs(xs) < 1) {
xs = 0;
}
if (Math.abs(ys) < 0.25) {
ys = 0;
}
lx = _x;
ly = _y;
_x = (_x + (xs * 0.98));
_y = (_y + (ys + 0.5));
}
function force() {
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
return((_local3 >= 12) && (_root.dragging != this));
}
function collisions() {
var _local4 = false;
if (this._name != "head") {
if (InTange == true) {
if (_y > 300) {
_y = 300;
} else if (_y < 0) {
}
}
if (Inrange == false) {
if (_y > 360) {
_y = 360;
_local4 = true;
} else if (_y < 0) {
}
}
if (_x > 1000) {
_x = 1000;
_local4 = true;
} else if (_x < 0) {
_x = 0;
_local4 = true;
}
} else {
if (_root.rfoot._x > _root.lfoot._x) {
legDist = _root.rfoot._x - _root.lfoot._x;
Range = _root.lfoot._x + legDist;
_root.Xreach = _root.head._x - (_root.lfoot._x + (legDist / 2));
}
if (((_root.head._y <= _root.waist._y) && (_root.head._x >= (_root.waist._x - 15))) && (_root.head._x <= (_root.waist._x + 15))) {
Inrange = true;
if ((_root.lfoot._y >= 355) || (_root.rfoot._y >= 355)) {
_root.head._y = _root.head._y + -4.5;
if (_root.head.ys > 5) {
_root.head._y = _root.head._y + ((-_root.head.ys) * 1.2);
_root.neck._y = _root.neck._y + ((-_root.neck.ys) * 1.2);
}
_root.head._x = _root.head._x + ((_root.waist._x - _root.head._x) / 10);
}
} else {
Inrange = false;
}
if (_root.rfoot._x < _root.lfoot._x) {
legDist = _root.lfoot._x - _root.rfoot._x;
Range = _root.rfoot._x + legDist;
_root.Xreach = _root.head._x - (_root.rfoot._x + (legDist / 2));
}
var _local3 = _width / 2.5;
if (InTange == true) {
if ((_y > (300 - _local3)) && (!Key.isDown(40))) {
_y = (300 - _local3);
}
if ((_y > (330 - _local3)) && (Key.isDown(40))) {
_y = 330;
_root.waist._x = _root.waist._x + (-xs);
} else if (_y < _local3) {
}
}
if (Inrange == false) {
if (_y > (360 - _local3)) {
_y = (360 - _local3);
_local4 = true;
} else if (_y < _local3) {
}
}
if (_x > (1000 - _local3)) {
_x = (1000 - _local3);
_local4 = true;
} else if (_x < _local3) {
_x = _local3;
_local4 = true;
}
}
if (_local4) {
return(force());
}
return(false);
}
function onPress() {
_root.dragging = this;
}
function onRelease() {
_root.dragging = null;
}
var lx = _x;
var ly = _y;
var xs = 0;
var ys = 0;
var ms = 30;
onReleaseOutside = onRelease;
Symbol 82 MovieClip Frame 1
function update() {
nlkneedistX = _root.lknee._x - _root.neck._x;
nlkneedistY = _root.lknee._y - _root.neck._y;
pi = 57.2957795130823;
anglenl = Math.atan2(nlkneedistY, nlkneedistX);
hypnl = Math.sqrt((nlkneedistX * lkneedistX) + (nlkneedistY * nlkneedistY));
MYANGLEnl = anglenl * pi;
if ((hypnl < 10) && (hypnl > -10)) {
_root.lknee._x = _root.lknee._x - (nlkneedistX / 10);
_root.lknee._y = _root.lknee._y - (nlkneedistY / 10);
_root.neck._x = _root.neck._x + (nlkneedistX / 10);
_root.neck._y = _root.neck._y + (nlkneedistY / 10);
}
nrkneedistX = _root.rknee._x - _root.neck._x;
nrkneedistY = _root.rknee._y - _root.neck._y;
pi = 57.2957795130823;
anglenr = Math.atan2(nrkneedistY, nrkneedistX);
hypnr = Math.sqrt((nrkneedistX * nrkneedistX) + (nrkneedistY * nrkneedistY));
MYANGLEnr = anglenr * pi;
if ((hypnr < 10) && (hypnr > -10)) {
_root.rknee._x = _root.rknee._x + (nrkneedistX / 10);
_root.rknee._y = _root.rknee._y + (nrkneedistY / 10);
_root.neck._x = _root.neck._x - (nrkneedistX / 10);
_root.neck._y = _root.neck._y - (nrkneedistY / 10);
}
kneedistX = _root.lknee._x - _root.rknee._x;
kneedistY = _root.lknee._y - _root.rknee._y;
pi = 57.2957795130823;
angle = Math.atan2(kneedistY, kneedistX);
hyp = Math.sqrt((kneedistX * kneedistX) + (kneedistY * kneedistY));
MYANGLE = angle * pi;
if ((hyp < 10) && (hyp > -10)) {
_root.rknee._x = _root.rknee._x - (kneedistX / 10);
_root.rknee._y = _root.rknee._y - (kneedistY / 10);
_root.lknee._x = _root.lknee._x + (kneedistX / 10);
_root.lknee._y = _root.lknee._y + (kneedistY / 10);
}
elbowdistX = _root.lelbow._x - _root.relbow._x;
elbowdistY = _root.lelbow._y - _root.relbow._y;
pi = 57.2957795130823;
angle4 = Math.atan2(elbowdistY, elbowdistX);
hyp4 = Math.sqrt((elbowdistX * elbowdistX) + (elbowdistY * elbowdistY));
MYANGLE4 = angle4 * pi;
if ((hyp4 < 12) && (hyp4 > -12)) {
_root.relbow._x = _root.relbow._x - (elbowdistX / 10);
_root.relbow._y = _root.relbow._y - (elbowdistY / 10);
_root.lelbow._x = _root.lelbow._x + (elbowdistX / 10);
_root.lelbow._y = _root.lelbow._y + (elbowdistY / 10);
}
lfootdistX2 = _root.lfoot._x - _root.waist._x;
lfootdistY2 = _root.lfoot._y - _root.waist._y;
pi = 57.2957795130823;
angle7 = Math.atan2(lfootdistY2, lfootdistX2);
hyp7 = Math.sqrt((lfootdistX2 * lfootdistX2) + (lfootdistY2 * lfootdistY2));
MYANGLE7 = angle7 * pi;
if ((hyp7 < 10) && (hyp7 > -10)) {
_root.lfoot._x = _root.lfoot._x + (lfootdistX2 / 5);
_root.lfoot._y = _root.lfoot._y + (lfootdistY2 / 5);
}
rfootdistX2 = _root.rfoot._x - _root.waist._x;
rfootdistY2 = _root.rfoot._y - _root.waist._y;
pi = 57.2957795130823;
angle8 = Math.atan2(rfootdistY2, rfootdistX2);
hyp8 = Math.sqrt((rfootdistX2 * rfootdistX2) + (rfootdistY2 * rfootdistY2));
MYANGLE8 = angle8 * pi;
if ((hyp8 < 10) && (hyp8 > -10)) {
_root.rfoot._x = _root.rfoot._x + (rfootdistX2 / 5);
_root.rfoot._y = _root.rfoot._y + (rfootdistY2 / 5);
}
if (this.hitTest(_root.Ball)) {
if ((xs != 0) || (ys != 0)) {
_root.Ball.MyVelX = _root.Ball.MyVelX + (xs / 20);
_root.Ball.MyVelY = (ys / 1) / 2;
}
}
if (_root.dragging == this) {
} else {
if (!this.hitTest(_root.Enemy)) {
xs = _x - lx;
ys = _y - ly;
nx = xs;
ny = ys;
imhit = false;
}
if ((this.hitTest(_root.Enemy) && (imhit == false)) && (_root.EnemyMode == 1)) {
xs = _root.Enemy.EVelX;
ys = _root.Enemy.EVelY;
imhit = true;
_root.restartTimer();
if ((xs < 1) && (xs > -1)) {
_root.Enemy.EVelX = nx;
} else {
_root.Enemy.EVelX = random(16) - random(16);
}
if ((ys < 1) && (ys > -1)) {
_root.Enemy.EVelY = ny;
} else {
_root.Enemy.EVelY = -10;
}
this._x = this._x + ((-xs) * 2);
this._y = this._y + ((-ys) * 2);
if (!_root.soundplaying) {
var _local3 = new Sound(this);
_local3.onSoundComplete = function () {
_root.soundplaying = false;
};
var _local5 = random(4);
var _local6 = -100 + ((head._x * 200) / 445);
_local3.attachSound("break" + _local5);
_local3.start(0, 0);
_local3.setVolume(75);
_local3.setPan(_local6);
_root.soundplaying = true;
}
_root.drawblood(_x, _y);
c = true;
}
}
var _local4 = Math.sqrt((xs * xs) + (ys * ys));
if (_local4 > ms) {
xs = xs * (ms / _local4);
ys = ys * (ms / _local4);
}
if (Math.abs(xs) < 1) {
xs = 0;
}
if (Math.abs(ys) < 0.25) {
ys = 0;
}
lx = _x;
ly = _y;
_x = (_x + (xs * 0.98));
_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 > 360) {
_y = 360;
_local2 = true;
} else if (_y < 0) {
}
if (_x > 1000) {
_x = 1000;
_local2 = true;
} else if (_x < 0) {
_x = 0;
_local2 = true;
}
} else {
var _local3 = _width / 2.5;
if (_y > (360 - _local3)) {
_y = (360 - _local3);
_local2 = true;
} else if (_y < _local3) {
}
if (_x > (1000 - _local3)) {
_x = (1000 - _local3);
_local2 = true;
} else if (_x < _local3) {
_x = _local3;
_local2 = true;
}
}
if (_local2) {
return(force());
}
return(false);
}
function onPress() {
_root.dragging = this;
}
function onRelease() {
_root.dragging = null;
}
var lx = _x;
var ly = _y;
var xs = 0;
var ys = 0;
var ms = 30;
var kl = {};
onReleaseOutside = onRelease;
Symbol 100 MovieClip Frame 1
function camControl() {
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local10 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;