Frame 1
stop();
_quality = "Medium";
playButton._visible = false;
onEnterFrame = function () {
left = int((getBytesLoaded() / getBytesTotal()) * 100);
if (left == 100) {
left = "Complete";
onEnterFrame = null;
playButton._visible = true;
}
};
Stage.showMenu = false;
Frame 2
stop();
Frame 3
stop();
Frame 4
function SaveAllData() {
var _local1 = _root;
_local1.Lunatic.data.dataExists = _local1.dataExists;
_local1.Lunatic.data.highest = _local1.highest;
_local1.Lunatic.flush();
}
function declareAllData() {
_root.dataExists = true;
_root.highest = 0;
}
function loadAllData() {
_root.highest = _root.Lunatic.data.highest;
}
stop();
clearAll();
_quality = "Medium";
_root.Lunatic = SharedObject.getLocal("gregboner");
_root.dataExists = _root.Lunatic.data.dataExists;
if (dataExists != true) {
declareAllData();
} else {
loadAllData();
}
Frame 5
function makeInnocent() {
var _local1 = _root;
_local1.attachMovie("innocent", "innocent" + innocentCounter, innocentCounter);
_local1["innocent" + innocentCounter]._x = random(200) + 25;
_local1["innocent" + innocentCounter]._y = -20;
innocentCounter--;
if (innocentCounter <= 201) {
innocentCounter = 300;
}
}
function makeObj() {
var _local1 = _root;
_local1.attachMovie("stationary", "ob" + objCounter, objCounter);
_local1["ob" + objCounter]._x = random(175) + 37.5;
_local1["ob" + objCounter]._y = -20;
objCounter++;
if (objCounter >= 200) {
objCounter = 101;
}
}
function clearAll() {
var _local1 = _root;
_local1.onEnterFrame = null;
_local1.player.removeMovieClip();
_local1.scoreNum.removeMovieClip();
_local1.levelUp.removeMovieClip();
_local1.addScore.removeMovieClip();
i = 100;
while (i <= 200) {
_local1["ob" + i].removeMovieClip();
i++;
}
i = 200;
while (i <= 300) {
_local1["innocent" + i].removeMovieClip();
i++;
}
}
_quality = "Medium";
quality = "Medium";
level = 0;
lives = 5;
stop();
_root.attachMovie("levelUp", "levelUp", 10000);
_root.attachMovie("player", "player", 9999);
_root.attachMovie("scoreNum", "scoreNum", 9998);
_root.player._y = 340;
_root.player._x = 125;
score = 0;
innocentCounter = 300;
objCounter = 101;
makeInnocent();
time = 400;
timer = time;
onEnterFrame = function () {
var _local1 = _root;
if (score > highest) {
highest = score;
}
_quality = quality;
timer--;
if (timer <= 0) {
_local1.attachMovie("levelUp", "levelUp", 10000);
timer = time;
time = time + 25;
}
if ((_local1.player.ySpeed > 0) && (int(random((350 - (level * 10)) / _local1.player.ySpeed)) == 0)) {
makeInnocent();
}
if ((_local1.player.ySpeed > 0) && (int(random((350 - (level * 10)) / _local1.player.ySpeed)) == 0)) {
makeObj();
}
};
Frame 6
clearAll();
if (score > highest) {
highest = score;
}
SaveAllData();
_quality = "Medium";
Frame 7
stop();
clearAll();
if (score > highest) {
highest = score;
}
SaveAllData();
_quality = "Medium";
Symbol 4 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 36 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 37 MovieClip [UpArrow] Frame 1
stop();
Symbol 37 MovieClip [UpArrow] Frame 2
stop();
Symbol 37 MovieClip [UpArrow] Frame 3
stop();
Symbol 44 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 57 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 65 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 81 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip [DownArrow] Frame 1
stop();
Symbol 82 MovieClip [DownArrow] Frame 2
stop();
Symbol 82 MovieClip [DownArrow] Frame 3
stop();
Symbol 96 MovieClip Frame 1
gotoAndStop(random(12) + 2);
Symbol 97 MovieClip [innocent] Frame 1
onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_y = (_y + _local1.player.ySpeed);
if (_y > 400) {
_local2.removeMovieClip();
}
if ((_local1.player.action == "bone") && (_local2.hitTest(_local1.player._x, _local1.player._y))) {
_local1.addScore.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + ((130 - _local1._x) * 0.1);
_local1._y = _local1._y * 0.8;
if (_local1._y < 10) {
_local1.removeMovieClip();
}
};
_local1.addScore.onUnload = function () {
_root.score = _root.score + this.score;
};
_local1.player.action = "impact";
_local1.player.ySpeed = -5;
ySpeed = random(5) + 20;
xSpeed = random(5) + 5;
if (random(2) == 0) {
xSpeed = xSpeed * -1;
}
onEnterFrame = function () {
ySpeed = ySpeed - 1;
_y = (_y - ySpeed);
_y = (_y + _root.player.ySpeed);
_x = (_x + xSpeed);
_rotation = (_rotation + (xSpeed * 0.5));
};
} else if ((((_local1.player.action == "walk") || (_local1.player.action == "run")) && (_local2.hitTest(_local1.player))) && (Math.abs(_x - _local1.player._x) < 30)) {
if (_x > _local1.player._x) {
_x = (_x + ((30 - Math.abs(_local1.player._x - _x)) * 0.2));
} else {
_x = (_x - ((30 - Math.abs(_x - _local1.player._x)) * 0.2));
}
}
};
Symbol 107 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.ySpeed <= 0) {
stop();
} else {
play();
}
};
Symbol 135 MovieClip Frame 1
_parent._parent.ySpeed = 0;
_parent._parent.xSpeed = 0;
Symbol 135 MovieClip Frame 16
_root.attachMovie("addScore", "addScore", 99999);
Symbol 135 MovieClip Frame 18
_parent._parent.ySpeed = 20;
timer = 18;
onEnterFrame = function () {
var _local1 = this;
timer--;
if (timer <= 0) {
_root.addScore.vSpeed = -5;
_root.addScore.onEnterFrame = function () {
var _local1 = this;
_local1.vSpeed = _local1.vSpeed + 0.5;
_local1._y = _local1._y + _local1.vSpeed;
_local1.score = _local1.score * 0.5;
_local1.score = int(_local1.score);
_local1._alpha = _local1._alpha - 2;
if (_y > 400) {
_local1.removeMovieClip();
}
};
_parent._parent.action = "walk";
_parent.gotoAndStop("walk");
}
};
Symbol 135 MovieClip Frame 23
gotoAndPlay (19);
Symbol 143 MovieClip Frame 6
_parent._parent.action = "walk";
_parent.gotoAndStop("walk");
Symbol 151 MovieClip Frame 1
_parent._parent.ySpeed = -4;
_parent._parent.xSpeed = 0;
_root.addScore.vSpeed = -5;
_root.lives--;
_root.score = _root.score - 100;
_root.addScore.onEnterFrame = function () {
var _local1 = this;
_local1.vSpeed = _local1.vSpeed + 0.5;
_local1._y = _local1._y + _local1.vSpeed;
_local1.score = -100;
_local1._alpha = _local1._alpha - 2;
if (_y > 400) {
_local1.removeMovieClip();
}
};
Symbol 151 MovieClip Frame 7
if (_root.lives <= 0) {
_root.gotoAndStop("youDied");
}
Symbol 151 MovieClip Frame 8
if (_root.lives <= 0) {
_root.gotoAndStop("youDied");
}
_parent._parent.action = "walk";
_parent.gotoAndStop("walk");
Symbol 153 MovieClip [player] Frame 1
xSpeed = 0;
ySpeed = 1;
action = "walk";
bone = 32;
base = 1;
onEnterFrame = function () {
var _local1 = _root;
i = 1;
while (i <= 4) {
_local1["stripe" + i]._y = _local1["stripe" + i]._y + ySpeed;
i++;
}
if ((action == "walk") || (action == "run")) {
if (Key.isDown(39) && (xSpeed < 5)) {
xSpeed++;
} else if ((!Key.isDown(39)) && (xSpeed > 0)) {
xSpeed--;
}
if (Key.isDown(37) && (xSpeed > -5)) {
xSpeed--;
} else if ((!Key.isDown(37)) && (xSpeed < 0)) {
xSpeed++;
}
if (Key.isDown(38) && (ySpeed < (5 + base))) {
ySpeed = ySpeed + 1;
} else if (ySpeed > base) {
ySpeed--;
}
if (ySpeed < base) {
ySpeed++;
}
if (ySpeed > (base + 3)) {
action = "run";
} else {
action = "walk";
}
if (Key.isDown(bone)) {
action = "bone";
}
}
_x = (_x + xSpeed);
if (_x < 35) {
_x = 35;
}
if (_x > 210) {
_x = 210;
}
sprite.gotoAndStop(action);
};
Symbol 164 MovieClip Frame 1
gotoAndStop(random(9) + 2);
Symbol 165 MovieClip [stationary] Frame 1
onEnterFrame = function () {
var _local1 = _root;
_y = (_y + _local1.player.ySpeed);
if (this.hitTest(_local1.player._x, _local1.player._y)) {
_local1.player.action = "dead";
ySpeed = random(2) + 2;
xSpeed = random(2) + 2;
if (random(2) == 0) {
xSpeed = xSpeed * -1;
}
onEnterFrame = function () {
_alpha = (_alpha - 10);
ySpeed = ySpeed - 0.5;
_y = (_y - ySpeed);
_y = (_y + _root.player.ySpeed);
_x = (_x + xSpeed);
_rotation = (_rotation + (xSpeed * 0.5));
if (_alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Symbol 170 MovieClip [addScore] Frame 1
x = 0;
y = 120;
_x = x;
_y = y;
score = 0;
onEnterFrame = function () {
score = score + 10;
_x = ((x + random(5)) - 3);
_y = ((y + random(5)) - 3);
};
Symbol 173 MovieClip [levelUp] Frame 1
if (_root.player.base < 14) {
_root.player.base = _root.player.base + 0.5;
}
_alpha = 0;
_x = 15;
_y = 150;
_root.level++;
_root.score = _root.score + 100;
if (_root.level >= 35) {
_root.gotoAndStop("winner");
}
onEnterFrame = function () {
_alpha = (_alpha + 2);
if (_alpha > 200) {
this.onEnterFrame = function () {
_alpha = (_alpha * 0.5);
if (_alpha < 1) {
this.removeMovieClip();
}
};
}
};
Symbol 181 MovieClip Frame 1
_x = 100;
_y = 0;
Symbol 182 MovieClip Frame 1
onEnterFrame = function () {
_root.muzac.setVolume(slider._x);
};
Instance of Symbol 181 MovieClip "slider" in Symbol 182 MovieClip Frame 1
onClipEvent (load) {
_alpha = 50;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 50;
}
on (press) {
this.startDrag(true, 0, 0, 100, 0);
}
on (release) {
_alpha = 50;
this.stopDrag();
}
on (releaseOutside) {
_alpha = 50;
this.stopDrag();
}
Symbol 190 MovieClip [scoreNum] Frame 1
_x = 130;
_y = 5;
Instance of Symbol 184 MovieClip in Symbol 190 MovieClip [scoreNum] Frame 1
on (release) {
if (_root.quality == "Low") {
_root.quality = "High";
} else if (_root.quality == "High") {
_root.quality = "Medium";
} else {
_root.quality = "Low";
}
}
Symbol 192 MovieClip [stripe] Frame 1
onEnterFrame = function () {
if (_y >= 350) {
_y = (_y - 450);
}
};
Symbol 195 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 196 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 207 Button
on (release) {
muzac = new Sound();
muzac.attachSound("music");
muzac.start(0, 99999);
_root.nextFrame();
}
Symbol 210 MovieClip Frame 1
inX = _x;
inY = _y;
_alpha = 0;
dx = (inX + random(3)) - 1;
dy = (iny + random(3)) - 1;
dalpha = random(25);
timer = random(10);
dxscale = random(20) + 90;
dyscale = random(20) + 90;
onEnterFrame = function () {
if (timer <= 0) {
dx = (inX + random(20)) - 10;
dy = (iny + random(20)) - 10;
dxscale = random(20) + 90;
dyscale = random(20) + 90;
dalpha = random(25) + 5;
timer = 15 + random(5);
}
timer--;
_x = (_x + ((dx - _x) * 0.05));
_y = (_y + ((dy - _y) * 0.05));
_xscale = (_xscale + ((dxscale - _xscale) * 0.05));
_yscale = (_yscale + ((dyscale - _yscale) * 0.05));
_alpha = (_alpha + ((dalpha - _alpha) * 0.05));
};
Symbol 216 Button
on (press) {
getURL ("http://www.monkeyinthepants.com", "_blank");
}
Symbol 220 Button
on (press) {
getURL ("http://www.armorgames.com/index.html", "_blank");
}
Symbol 265 Button
on (release) {
_root.play();
}
Symbol 266 MovieClip Frame 112
_root.play();
stop();
Symbol 272 Button
on (release) {
_root.nextFrame();
}
Symbol 285 MovieClip Frame 465
_root.nextFrame();
Symbol 290 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 293 Button
on (release) {
gotoAndStop ("howTo");
}
Symbol 296 Button
on (release) {
gotoAndStop ("about");
}
Symbol 299 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip [FScrollBarSymbol] in Symbol 307 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_0";
horizontal = false;
}
Symbol 315 Button
on (release) {
_root.gotoAndPlay("game");
}
Symbol 318 Button
on (release) {
gotoAndStop ("title");
}