Frame 1
stop();
Instance of Symbol 100 MovieClip "data" in Frame 1
onClipEvent (load) {
var fade = 0;
var p1_pow = 1;
var p1_ski = 1;
var p1_att = 1;
var p1_def = 1;
var p1_pow_bonus = 1;
var p1_ski_bonus = 1;
var p1_att_bonus = 1.25;
var p1_def_bonus = 0.75;
var p1_current_hp = 1;
var p1_max_hp = 1;
var p1_current_sp = 1;
var p1_max_sp = 1;
var p1_dead = 0;
var level = 0;
var exp = 2000;
var exp_goal = 0;
p1_weapon_name = "test";
var p1_weapon_delay = 1;
var p1_weapon_max_damage = 1;
var p1_weapon_min_damage = 1;
var p1_damage = 0;
p1_hit = 0;
p1_dead = 0;
p1_enemy = "none";
p1_target = "none";
inv_1 = "bandage";
inv_2 = "test";
inv_3 = "sign";
inv_4 = "none";
inv_5 = "bean";
inv_6 = "pencil";
inv_7 = "none";
inv_8 = "none";
inv_9 = "none";
inv_10 = "none";
inv_11 = "none";
inv_12 = "none";
inv_13 = "none";
inv_14 = "none";
inv_15 = "none";
}
onClipEvent (enterFrame) {
if (Key.isDown(107)) {
exp = exp_goal;
}
if (Key.isDown(106)) {
p1_current_hp = p1_current_hp + 1;
}
if (Key.isDown(111)) {
p1_current_hp = p1_current_hp - 1;
}
if (p1_current_hp <= 0) {
p1_dead = 1;
} else {
p1_dead = 0;
}
if (exp >= exp_goal) {
exp_goal = exp_goal + (level * 750);
level = level + 1;
_root.menu.log.htmltext = (("<b>---- Party attained Level " + level) + " ----</b><br>") + _root.menu.log.htmltext;
_root.zone.player.effects.gotoAndStop("level");
p1_max_hp = Math.round(((level * 0.75) * (p1_def + p1_str)) + 15);
p1_current_hp = p1_max_hp;
p1_max_sp = Math.round((level / 2) * ((p1_att + p1_ski) / 6));
p1_current_sp = p1_max_sp;
p1_pow = Math.round(level * p1_pow_bonus);
p1_ski = Math.round(level * p1_ski_bonus);
p1_att = Math.round(level * p1_att_bonus);
p1_def = Math.round(level * p1_def_bonus);
}
if (p1_current_hp > p1_max_hp) {
p1_current_hp = p1_max_hp;
}
weapon = (p1_weapon_max_damage / 2) + p1_weapon_min_damage;
weapon = Math.round(weapon);
dmg = (((weapon * level) / 2) + p1_pow) - level;
dmg = Math.round(dmg);
p1_weapon_ave_damage = dmg;
if (p1_hit == 1) {
p1_current_hp = p1_current_hp - p1_damage;
_root.menu.log.htmltext = (((p1_enemy + " hits Masamune for ") + p1_damage) + "<br>") + _root.menu.log.htmltext;
p1_damage = 0;
p1_hit = 0;
}
_root.p1_damage.number.hp.text = p1_damage;
_root.p1_damage.number.shadow_hp.text = p1_damage;
_root.e1_damage.number.hp.text = e1_damage;
_root.e1_damage.number.shadow_hp.text = e1_damage;
_root.h1_damage.number.hp.text = p1_heal;
_root.h1_damage.number.shadow_hp.text = p1_heal;
_root.h1_damage._x = _root.zone._x + _root.zone.player._x;
_root.h1_damage._y = _root.zone._y + _root.zone.player._y;
}
Frame 5
gotoAndStop (3);
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 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 24 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 33 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 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 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 48 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 53 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 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 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 70 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 78 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 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 83 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Instance of Symbol 89 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
huh = this.hitTest(_root.zone.player.shadow);
if (huh == true) {
_root.zone.player._y = _root.zone.player._y + _root.zone.player.data.speed;
}
}
Instance of Symbol 89 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
huh = this.hitTest(_root.zone.player.shadow);
if (huh == true) {
_root.zone.player._y = _root.zone.player._y - _root.zone.player.data.speed;
}
}
Instance of Symbol 89 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
huh = this.hitTest(_root.zone.player.shadow);
if (huh == true) {
_root.zone.player._x = _root.zone.player._x + _root.zone.player.data.speed;
}
}
Instance of Symbol 89 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
huh = this.hitTest(_root.zone.player.shadow);
if (huh == true) {
_root.zone.player._x = _root.zone.player._x - _root.zone.player.data.speed;
}
}
Symbol 99 MovieClip Frame 50
gotoAndPlay (1);
Instance of Symbol 100 MovieClip "thing" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
lifting = 0;
}
Symbol 109 MovieClip Frame 25
gotoAndPlay (5);
Instance of Symbol 100 MovieClip "thing" in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
lifting = 0;
}
Symbol 118 MovieClip Frame 17
gotoAndPlay (5);
Instance of Symbol 100 MovieClip "thing" in Symbol 123 MovieClip Frame 1
onClipEvent (enterFrame) {
lifting = 0;
}
Symbol 129 MovieClip Frame 299
stop();
_parent._parent._parent.data.ready = 1;
Symbol 140 MovieClip Frame 6
stop();
Instance of Symbol 100 MovieClip "thing" in Symbol 144 MovieClip Frame 1
onClipEvent (enterFrame) {
lifting = 1;
}
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 144 MovieClip Frame 14
onClipEvent (enterFrame) {
huh = this.hitTest(_root.zone.player.shadow);
if (huh == true) {
_parent._parent._parent._parent.data.p1_contact = 1;
}
huh = this.hitTest(_root.zone.player_2.shadow);
if (huh == true) {
_parent._parent._parent._parent.data.p2_contact = 1;
}
huh = this.hitTest(_root.zone.player_3.shadow);
if (huh == true) {
_parent._parent._parent._parent.data.p3_contact = 1;
}
}
Instance of Symbol 100 MovieClip "thing" in Symbol 144 MovieClip Frame 31
onClipEvent (enterFrame) {
lifting = 0;
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Instance of Symbol 148 MovieClip "ball_mc" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
y_speed = Math.random() * 5;
boomradius = 75;
if (this._name != "ball_mc") {
_x = (((Math.random() * boomradius) - (boomradius / 2)) + _root.ball_mc._x);
}
}
onClipEvent (enterFrame) {
function explode() {
clipcopies = 20;
var i = 0;
while (i < clipcopies) {
mycounter++;
duplicateMovieClip (ball_mc, ball + mycounter, mycounter);
i++;
}
}
if (this._name == "ball_mc") {
if (doonce != 1) {
explode();
doonce = 1;
}
_alpha = (_alpha - 10);
if (_alpha < 5) {
removeMovieClip(this);
}
}
if (_name != "ball_mc") {
_y = (_y - y_speed);
_x = (_x + x_speed);
_alpha = (_alpha - 5);
_xscale = (_xscale - 15);
_yscale = (_xscale - 15);
if (_alpha < 5) {
removeMovieClip(this);
}
}
}
Symbol 151 MovieClip Frame 30
stop();
_parent.gotoAndStop("none");
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Symbol 155 MovieClip Frame 30
stop();
_parent.gotoAndStop("none");
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 153 MovieClip "ball_mc" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_y = (_y + ((Math.random() * 50) - 25));
_x = (_x + ((Math.random() * 50) - 25));
inity = _y;
initx = _x;
gravity = 9.82;
resistanceX = (Math.random() * 4) - 2;
resistanceY = (Math.random() * 2.5) + 2;
ground = (Math.random() * 40) - 20;
bounce = 0;
initialx = Math.random() * 7;
initialy = Math.random() * -110;
}
onClipEvent (enterFrame) {
initialy = initialy + gravity;
this._x = this._x + (initialx / resistanceX);
this._y = this._y + (initialy / resistanceY);
_alpha;
if (this._y > ground) {
this._y = ground;
initialy = initialy * (-bounce);
initialx = initialx * bounce;
}
if ((this._y == oldY) && (this._x == oldX)) {
_yscale = (_yscale - 5);
_xscale = (_xscale + 30);
_alpha = (_alpha - 15);
resistanceX = (resistanceY = (Math.random() * 2.5) + 2);
}
oldX = _x;
oldY = _y;
}
Symbol 156 MovieClip Frame 30
stop();
_parent.gotoAndStop("none");
Symbol 159 MovieClip Frame 20
stop();
_parent.gotoAndStop("none");
Symbol 163 MovieClip Frame 19
stop();
_parent.gotoAndStop("none");
Symbol 164 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 170 MovieClip "ball_mc" in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
initialx = (Math.random() * 3) - 1.5;
initialy = (Math.random() * 3) - 6;
}
onClipEvent (enterFrame) {
this._x = this._x + initialx;
this._y = this._y + initialy;
_alpha = (_alpha - 5);
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_rotation = (_rotation + initialx);
if (_alpha <= 5) {
this.removeMovieClip();
}
}
Instance of Symbol 170 MovieClip "ball_mc" in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
initialx = (Math.random() * 3) - 1.5;
initialy = (Math.random() * 3) - 6;
}
onClipEvent (enterFrame) {
this._x = this._x + initialx;
this._y = this._y + initialy;
_alpha = (_alpha - 5);
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_rotation = (_rotation + initialx);
if (_alpha <= 5) {
this.removeMovieClip();
}
}
Instance of Symbol 170 MovieClip "ball_mc" in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
initialx = (Math.random() * 3) - 1.5;
initialy = (Math.random() * 3) - 6;
}
onClipEvent (enterFrame) {
this._x = this._x + initialx;
this._y = this._y + initialy;
_alpha = (_alpha - 5);
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_rotation = (_rotation + initialx);
if (_alpha <= 5) {
this.removeMovieClip();
}
}
Instance of Symbol 170 MovieClip "ball_mc" in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
initialx = (Math.random() * 3) - 1.5;
initialy = (Math.random() * 3) - 6;
}
onClipEvent (enterFrame) {
this._x = this._x + initialx;
this._y = this._y + initialy;
_alpha = (_alpha - 5);
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_rotation = (_rotation + initialx);
if (_alpha <= 5) {
this.removeMovieClip();
}
}
Symbol 171 MovieClip Frame 30
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 206 MovieClip Frame 2
on (release) {
this.gotoAndStop(3);
_root.data.p1_weapon_name = "test";
_root.data.p1_weapon_delay = 201;
_root.data.p1_weapon_max_damage = 12;
_root.data.p1_weapon_min_damage = 3;
}
onClipEvent (enterFrame) {
if (_root.data.p1_weapon_name != "test") {
this.gotoandStop(1);
}
}
Instance of Symbol 186 MovieClip in Symbol 206 MovieClip Frame 3
on (release) {
this.gotoAndStop(3);
_root.data.p1_weapon_name = "Sign";
_root.data.p1_weapon_delay = 201;
_root.data.p1_weapon_max_damage = 24;
_root.data.p1_weapon_min_damage = 8;
}
onClipEvent (enterFrame) {
if (_root.data.p1_weapon_name != "Sign") {
this.gotoandStop(1);
}
}
Instance of Symbol 189 MovieClip in Symbol 206 MovieClip Frame 4
on (release) {
this.gotoAndStop(3);
_root.data.p1_weapon_name = "Pencil";
_root.data.p1_weapon_delay = 201;
_root.data.p1_weapon_max_damage = 60;
_root.data.p1_weapon_min_damage = 25;
}
onClipEvent (enterFrame) {
if (_root.data.p1_weapon_name != "Pencil") {
this.gotoandStop(1);
}
}
Instance of Symbol 194 MovieClip in Symbol 206 MovieClip Frame 5
on (release) {
this.gotoAndStop(3);
_root.data.p1_weapon_name = "Mr. Bean";
_root.data.p1_weapon_delay = "Bean";
_root.data.p1_weapon_max_damage = "Bean";
_root.data.p1_weapon_min_damage = "Bean";
}
onClipEvent (enterFrame) {
if (_root.data.p1_weapon_name != "Mr. Bean") {
this.gotoandStop(1);
}
}
Instance of Symbol 198 MovieClip in Symbol 206 MovieClip Frame 6
on (release) {
this.gotoAndStop(3);
_root.data.p1_current_hp = _root.data.p1_current_hp + 150;
_root.data.p1_heal = 150;
_root.h1_damage.gotoAndPlay(2);
_parent.data.used = 1;
_parent.gotoandStop("none");
_root.h1_damage.gotoAndPlay(2);
}
Instance of Symbol 202 MovieClip "canteen" in Symbol 206 MovieClip Frame 7
on (release) {
this.gotoAndStop(3);
_root.data.p1_current_hp = _root.data.p1_current_hp + 50;
_root.data.p1_heal = 50;
_root.h1_damage.gotoAndPlay(2);
_parent.data.used = 1;
_parent.gotoandStop("none");
_root.h1_damage.gotoAndPlay(2);
}
Instance of Symbol 205 MovieClip "canteen" in Symbol 206 MovieClip Frame 8
on (release) {
this.gotoAndStop(3);
_root.data.p1_current_hp = _root.data.p1_current_hp + 500;
_root.data.p1_heal = 500;
_root.h1_damage.gotoAndPlay(2);
_parent.data.used = 1;
_parent.gotoandStop("none");
_root.h1_damage.gotoAndPlay(2);
}
Symbol 207 MovieClip Frame 1
stop();
Instance of Symbol 206 MovieClip "icon" in Symbol 207 MovieClip Frame 11
onClipEvent (enterFrame) {
this.gotoAndStop(_parent.content);
}
Symbol 207 MovieClip Frame 60
stop();
_parent.gotoAndStop(3);
Symbol 208 MovieClip Frame 1
stop();
Instance of Symbol 92 MovieClip "vision" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
huh = this.hitTest(_parent._parent.player.shadow);
if (huh == true) {
_parent.data.target = 1;
} else {
_parent.data.target = 0;
}
}
Instance of Symbol 92 MovieClip "range" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
huh = this.hitTest(_parent._parent.player.shadow);
if (huh == true) {
_parent.data.target_near = 1;
} else {
_parent.data.target_near = 0;
}
}
Instance of Symbol 146 MovieClip "aaa" in Symbol 208 MovieClip Frame 1
onClipEvent (load) {
xs = _xscale;
}
onClipEvent (enterFrame) {
if (_root.data.pause != true) {
if (_parent.data.dead != 1) {
posx = _parent._x;
posy = _parent._y;
initx = posx - old_posx;
inity = posy - old_posy;
if (initx > 1) {
this.gotoAndStop("right");
} else if (initx < -1) {
this.gotoAndStop("left");
} else if (inity > 1) {
this.gotoAndStop("front");
} else if (inity < -1) {
this.gotoAndStop("back");
}
if ((initx > 9) || (inity > 9)) {
this.animations.gotoAndStop("run");
} else if ((initx < -9) || (inity < -9)) {
this.animations.gotoAndStop("run");
} else if ((initx > 1) || (inity > 1)) {
this.animations.gotoAndStop("walk");
} else if ((initx < -1) || (inity < -1)) {
this.animations.gotoAndStop("walk");
} else if (_parent.data.attacking != 1) {
this.animations.gotoAndStop("idle");
}
old_posy = posy;
old_posx = posx;
}
}
}
Instance of Symbol 100 MovieClip "data" in Symbol 208 MovieClip Frame 1
onClipEvent (load) {
name = "Krock";
pow_bonus = 1;
def_bonus = 1;
att_bonus = 1;
ski_bonus = 1;
max_hp = 1;
current_hp = 1;
wander_range = 256;
flee = 0;
respawn = 1;
spawn_x = _parent._x;
spawn_y = _parent._y;
ai_mode = "wander";
thing = 0;
hostile = true;
target = 0;
target_near = 0;
p1_attack = 0;
p2_attack = 0;
p3_attack = 0;
dead = 0;
base_speed = 6;
collide_yes = 0;
attacking = 0;
moo = getTimer();
gogo = Math.round(Math.random(3)) * 1000;
mooo = getTimer();
gogoo = Math.round(Math.random(3)) * 1000;
}
onClipEvent (enterFrame) {
if (_root.data.pause != true) {
if (doonce != 1) {
if (overide == 1) {
level = over_level;
ai_mode = over_mode;
} else {
level = _root.data.level;
}
pow = Math.round(level * pow_bonus);
ski = Math.round(level * ski_bonus);
att = Math.round(level * att_bonus);
def = Math.round(level * def_bonus);
max_hp = Math.round(((level * 0.75) * (def + str)) + 15);
current_hp = max_hp;
max_sp = Math.round((level / 2) * ((att + ski) / 6));
current_sp = max_sp;
doonce = 1;
}
_parent.hp.text = current_hp;
per = Math.round((current_hp / max_hp) * 100);
if (per < 1) {
per = 1;
}
_parent.hp_bar.gotoAndStop(per);
if (current_hp <= 0) {
dead = 1;
}
if (dead == 1) {
p1_attack = 0;
p2_attack = 0;
p3_attack = 0;
if (dooncee != 1) {
flee_once = 0;
hostile = true;
lefter = 0;
righter = 0;
upper = 0;
downer = 0;
_parent.aaa.animations.gotoAndStop("dead");
mooo = getTimer();
gogoo = (Math.round(Math.random(6)) * 1000) + 6000;
exp = level - _root.data.level;
if (level >= _root.data.level) {
exp = 100 + (exp * 500);
} else {
exp = 100 + (exp * 20);
}
if (exp < 0) {
exp = 0;
} else {
_root.data.exp = _root.data.exp + exp;
_root.menu.log.htmltext = (((name + " is defeated. </b>(") + exp) + " EXP)</b><br>") + _root.menu.log.htmltext;
}
dooncee = 1;
}
if ((getTimer() - mooo) >= gogoo) {
chance = Math.round(Math.random() * 100);
if (chance > 20) {
_parent.gotoAndStop(2);
}
mooo = getTimer();
gogoo = Math.round(Math.random(3)) * 1000;
_parent._x = spawn_x;
_parent._y = spawn_y;
doonce = 0;
dead = 0;
dooncee = 0;
ai_mode = "wander";
}
}
if (dead == 0) {
if (dead != 1) {
if (ai_mode == "wander") {
if ((getTimer() - moo) >= gogo) {
thing = Math.round(Math.random(3) + 1);
if (thing == 2) {
downer = 1;
upper = 0;
shifter = 1;
} else if (thing == 1) {
downer = 0;
upper = 1;
shifter = 1;
} else {
downer = 0;
upper = 0;
}
thing = Math.round(Math.random(3) + 1);
if (thing == 2) {
righter = 1;
lefter = 0;
shifter = 1;
} else if (thing == 1) {
righter = 0;
lefter = 1;
shifter = 1;
} else {
righter = 0;
lefter = 0;
}
moo = getTimer();
gogo = Math.round(Math.random(3)) * 1000;
}
if (_parent._x > (spawn_x + wander_range)) {
lefter = 1;
righter = 0;
}
if (_parent._x < (spawn_x - wander_range)) {
lefter = 0;
righter = 1;
}
if (_parent._y > (spawn_y + wander_range)) {
upper = 1;
downer = 0;
}
if (_parent._y < (spawn_y - wander_range)) {
upper = 0;
downer = 1;
}
}
if (ai_mode == "idle") {
}
if (ai_mode == "seak") {
if (thing == 0) {
ai_mode = "idle";
shifter = 0;
} else if (thing == 1) {
if (_root.data.p1_dead == 1) {
thing = 4;
target = 0;
} else {
target_x = _parent._parent.player._x;
target_y = _parent._parent.player._y;
}
} else if (thing == 2) {
if (_root.data.p2_dead == 1) {
thing = 4;
target = 0;
} else {
target_x = _parent._parent.player_2._x;
target_y = _parent._parent.player_2._y;
}
} else if (thing == 3) {
if (_root.data.p3_dead == 1) {
thing = 4;
target = 0;
} else {
target_x = _parent._parent.player_3._x;
target_y = _parent._parent.player_3._y;
}
}
if (target == 0) {
if (_parent._x > (spawn_x + (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (_parent._x < (spawn_x - (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (_parent._y > (spawn_y + (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (_parent._y < (spawn_y - (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
}
if (target_near == 0) {
if (target_y > (_parent._y + 32)) {
downer = 1;
upper = 0;
shifter = 1;
} else if (target_y < (_parent._y - 32)) {
downer = 0;
upper = 1;
shifter = 1;
} else {
downer = 0;
upper = 0;
}
if (target_x > (_parent._x + 32)) {
righter = 1;
lefter = 0;
shifter = 1;
} else if (target_x < (_parent._x - 32)) {
righter = 0;
lefter = 1;
shifter = 1;
} else {
righter = 0;
lefter = 0;
}
} else {
lefter = 0;
righter = 0;
upper = 0;
downer = 0;
}
}
if (ai_mode == "flee") {
if (thing == 1) {
target_x = _parent._parent.player._x;
target_y = _parent._parent.player._y;
} else if (thing == 2) {
target_x = _parent._parent.player_2._x;
target_y = _parent._parent.player_2._y;
} else if (thing == 3) {
target_x = _parent._parent.player_3._x;
target_y = _parent._parent.player_3._y;
}
if (_parent._x > (spawn_x + (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (_parent._x < (spawn_x - (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (_parent._y > (spawn_y + (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (_parent._y < (spawn_y - (wander_range * 2))) {
target_x = spawn_x;
target_y = spawn_y;
ai_mode = "seak";
thing = 4;
}
if (thing != 4) {
if (target_y > _parent._y) {
downer = 0;
upper = 1;
shifter = 1;
} else if (target_y < _parent._y) {
downer = 1;
upper = 0;
shifter = 1;
} else {
downer = 0;
upper = 0;
}
if (target_x > _parent._x) {
righter = 0;
lefter = 1;
shifter = 1;
} else if (target_x < _parent._x) {
righter = 1;
lefter = 0;
shifter = 1;
} else {
righter = 0;
lefter = 0;
}
}
}
if (ai_mode == "pace_x") {
if (thing != 1) {
righter = 1;
lefter = 0;
} else {
lefter = 1;
righter = 0;
}
if (_parent._x > (spawn_x + wander_range)) {
thing = 1;
} else if (_parent._x < spawn_x) {
thing = 0;
}
}
if (ai_mode == "pace_y") {
if (thing != 1) {
upper = 1;
downer = 0;
} else {
downer = 1;
upper = 0;
}
if (_parent._y > (spawn_y + wander_range)) {
thing = 0;
} else if (_parent._y < spawn_y) {
thing = 1;
}
}
if (shifter != 1) {
shifter = 1;
speed = base_speed;
} else {
shifter = 0;
speed = base_speed * 0.5;
}
if (righter != 0) {
attacking = 0;
_parent._x = _parent._x + speed;
}
if (lefter != 0) {
attacking = 0;
_parent._x = _parent._x - speed;
}
if (downer != 0) {
attacking = 0;
_parent._y = _parent._y + speed;
}
if (upper != 0) {
attacking = 0;
_parent._y = _parent._y - speed;
}
}
if (hostile == true) {
if (target == 1) {
if (_root.data.p1_dead != 1) {
ai_mode = "seak";
thing = 1;
}
} else if (target == 2) {
if (_root.data.p2_dead != 1) {
ai_mode = "seak";
thing = 2;
}
} else if (target == 3) {
if (_root.data.p3_dead != 1) {
ai_mode = "seak";
thing = 3;
}
}
}
if (per < 25) {
if (flee != 0) {
if (flee_once != 1) {
ai_mode = "flee";
hostile = false;
thing = target_near;
flee_once = 1;
}
}
}
if (hostile == true) {
if (_root.data.p1_dead != 1) {
if (target_near == 1) {
attacking = 1;
_parent.aaa.animations.gotoAndStop("attack");
}
} else {
attacking = 0;
}
}
if (p1_contact == 1) {
roll = Math.round(Math.random(100));
if (roll > 97) {
crit = 1;
hit = 1;
} else if ((roll + att) > _root.data.p1_ski) {
hit = 1;
} else {
hit = 0;
_root.zone.player.effects.gotoAndStop("miss");
_root.menu.log.htmltext = (("~|~ " + name) + " <u>misses</U> Masamune.<br>") + _root.menu.log.htmltext;
}
if (hit == 1) {
dmg = (((pow * level) / 20) + Math.random(pow)) - _root.data.p1_def;
dmg = Math.round(dmg);
if (dmg > 9999) {
dmg = 9999;
}
if (dmg < 1) {
dmg = 1;
}
if (dmg > (_root.data.p1_max_hp * 0.05)) {
_root.zone.player.aaa.animations.gotoAndStop("hit");
}
if (crit == 1) {
dmg = dmg * 2;
_root.data.p1_current_hp = _root.data.p1_current_hp - dmg;
_root.fader.gotoAndPlay(25);
_root.zone.player.effects.gotoAndStop("crit");
_root.menu.log.htmltext = (((("~|~ " + name) + " <u><b>CRITS</b></u> Masamune for ") + dmg) + ".<br>") + _root.menu.log.htmltext;
} else {
_root.data.p1_current_hp = _root.data.p1_current_hp - dmg;
_root.zone.player.effects.gotoAndStop("ouch_pc");
_root.menu.log.htmltext = (((("~|~ " + name) + " hits Masamune for ") + dmg) + ".<br>") + _root.menu.log.htmltext;
}
_root.data.p1_damage = dmg;
_root.p1_damage._x = _root.zone._x + _parent._parent.player._x;
_root.p1_damage._y = _root.zone._y + _parent._parent.player._y;
_root.p1_damage.gotoAndplay(2);
}
p1_contact = 0;
crit = 0;
}
if (dead == 0) {
if (p1_attack == 1) {
if (hostile == true) {
ai_mode = "seak";
thing = 1;
}
if (hostile == false) {
ai_mode = "flee";
thing = 1;
}
roll = Math.round(Math.random() * 100);
if (roll > 95) {
crit = 1;
hit = 1;
} else if ((roll + _root.data.p1_att) > ski) {
hit = 1;
} else {
hit = 0;
_parent.effects.gotoAndStop("miss");
_root.menu.log.htmltext = (("- Masamune misses " + name) + "<br>") + _root.menu.log.htmltext;
}
if (hit == 1) {
min = _root.data.p1_weapon_min_damage;
max = _root.data.p1_weapon_max_damage;
weapon = (Math.random() * max) + min;
weapon = Math.round(weapon);
dmg = (((weapon * _root.data.level) / 2) + _root.data.p1_pow) - def;
dmg = Math.round(dmg);
if (dmg > 9999) {
dmg = 9999;
}
if (dmg < 1) {
dmg = 1;
}
if (dmg > (max_hp * 0.05)) {
_parent.aaa.animations.gotoAndStop("hit");
}
if (crit == 1) {
dmg = dmg * 2;
current_hp = current_hp - dmg;
_parent.effects.gotoAndStop("crit");
_root.fader.gotoAndPlay(25);
_root.menu.log.htmltext = (((("--- Masamune CRITICALS " + name) + " for ") + dmg) + "!!<br>") + _root.menu.log.htmltext;
} else {
current_hp = current_hp - dmg;
_parent.effects.gotoAndStop("ouch");
_root.menu.log.htmltext = (((("--- Masamune hits " + name) + " for ") + dmg) + "<br>") + _root.menu.log.htmltext;
}
_root.data.e1_damage = dmg;
_root.e1_damage._x = _root.zone._x + _parent._x;
_root.e1_damage._y = _root.zone._y + _parent._y;
_root.e1_damage.gotoAndplay(2);
}
if (current_hp <= 0) {
dead = 1;
}
p1_attack = 0;
crit = 0;
}
}
}
}
}
Instance of Symbol 168 MovieClip "hp_bar" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.data.target != 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Symbol 208 MovieClip Frame 2
stop();
Instance of Symbol 207 MovieClip "data" in Symbol 208 MovieClip Frame 2
onClipEvent (load) {
open = 0;
p1_attack = 0;
treasure_mode = "item";
gold = Math.round((Math.random() * 300) + 100);
drop_one = "bandage";
drop_two = "canteen";
drop_three = "medkit";
if (treasure_mode == "item") {
roll = Math.random() * 100;
if (roll < 33) {
content = drop_one;
} else if (roll < 66) {
content = drop_two;
} else if (roll > 66) {
content = drop_three;
}
}
}
onClipEvent (enterFrame) {
if (open != 1) {
if (p1_attack == 1) {
open = 1;
if (treasure_mode == "item") {
_root.menu.log.htmltext = (content + " found!<br>") + _root.menu.log.htmltext;
if (_root.data.inv_1 == "none") {
_root.data.inv_1 = content;
} else if (_root.data.inv_2 == "none") {
_root.data.inv_2 = content;
} else if (_root.data.inv_3 == "none") {
_root.data.inv_3 = content;
} else if (_root.data.inv_4 == "none") {
_root.data.inv_4 = content;
} else if (_root.data.inv_5 == "none") {
_root.data.inv_5 = content;
} else if (_root.data.inv_6 == "none") {
_root.data.inv_6 = content;
} else if (_root.data.inv_7 == "none") {
_root.data.inv_7 = content;
} else if (_root.data.inv_8 == "none") {
_root.data.inv_8 = content;
} else if (_root.data.inv_9 == "none") {
_root.data.inv_9 = content;
} else if (_root.data.inv_10 == "none") {
_root.data.inv_10 = content;
} else if (_root.data.inv_11 == "none") {
_root.data.inv_11 = content;
} else if (_root.data.inv_12 == "none") {
_root.data.inv_12 = content;
} else if (_root.data.inv_13 == "none") {
_root.data.inv_13 = content;
} else if (_root.data.inv_14 == "none") {
_root.data.inv_14 = content;
} else if (_root.data.inv_15 == "none") {
_root.data.inv_15 = content;
} else {
_root.menu.log.htmltext = "<u>No Space in Inventory!</u><br>" + _root.log.htmltext;
}
} else {
_root.data.gold = _root.data.gold + content;
root.log.htmltext = (content + " gold found!<br>") + _root.log.htmltext;
}
this.gotoAndPlay(2);
attack == 0;
}
}
}
Symbol 208 MovieClip Frame 3
stop();
Symbol 217 MovieClip Frame 30
gotoAndPlay (1);
Symbol 226 MovieClip Frame 25
gotoAndPlay (1);
Symbol 229 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 6
stop();
Instance of Symbol 100 MovieClip "weapon" in Symbol 242 MovieClip Frame 1
onClipEvent (enterFrame) {
weapon = _root.data.p1_weapon_name;
_parent.weapon.gotoAndStop(weapon);
}
Symbol 242 MovieClip Frame 6
var flip = Math.round(Math.random(2));
if (flip == 1) {
gotoAndPlay (18);
}
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 242 MovieClip Frame 7
onClipEvent (enterFrame) {
var k = 0;
while (k < 12) {
huh = this.hitTest(eval (("_root.zone.enemy_" + k) + ".shadow"));
if (huh == true) {
eval ("_root.zone.enemy_" + k).data.p1_attack = 1;
_root.data.p1_target = eval ("enemy_" + k).data.name;
}
k++;
}
}
Symbol 242 MovieClip Frame 17
_parent.gotoAndStop("ready");
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 242 MovieClip Frame 18
onClipEvent (enterFrame) {
var k = 0;
while (k < 12) {
huh = this.hitTest(eval (("_root.zone.enemy_" + k) + ".shadow"));
if (huh == true) {
eval ("_root.zone.enemy_" + k).data.p1_attack = 1;
_root.data.p1_target = eval ("enemy_" + k).data.name;
}
k++;
}
}
Symbol 242 MovieClip Frame 27
_parent.gotoAndStop("ready");
Instance of Symbol 100 MovieClip "weapon" in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
weapon = _root.data.p1_weapon_name;
_parent.weapon.gotoAndStop(weapon);
}
Symbol 245 MovieClip Frame 17
gotoAndPlay (1);
Symbol 250 MovieClip Frame 13
gotoAndPlay (1);
Symbol 252 MovieClip Frame 7
stop();
_parent.gotoAndStop("idle");
Symbol 257 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 30
gotoAndPlay (1);
Symbol 273 MovieClip Frame 25
gotoAndPlay (1);
Instance of Symbol 100 MovieClip "weapon" in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
weapon = _root.data.p1_weapon_name;
_parent.weapon.gotoAndStop(weapon);
}
Symbol 283 MovieClip Frame 6
var flip = Math.round(Math.random(2));
if (flip == 1) {
gotoAndPlay (18);
}
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 283 MovieClip Frame 7
onClipEvent (enterFrame) {
var k = 0;
while (k < 12) {
huh = this.hitTest(eval (("_root.zone.enemy_" + k) + ".shadow"));
if (huh == true) {
eval ("_root.zone.enemy_" + k).data.p1_attack = 1;
_root.data.p1_target = eval ("enemy_" + k).data.name;
}
k++;
}
}
Symbol 283 MovieClip Frame 17
_parent.gotoAndStop("ready");
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 283 MovieClip Frame 18
onClipEvent (enterFrame) {
var k = 0;
while (k < 12) {
huh = this.hitTest(eval (("_root.zone.enemy_" + k) + ".shadow"));
if (huh == true) {
eval ("_root.zone.enemy_" + k).data.p1_attack = 1;
_root.data.p1_target = eval ("enemy_" + k).data.name;
}
k++;
}
}
Symbol 283 MovieClip Frame 27
_parent.gotoAndStop("ready");
Instance of Symbol 100 MovieClip "weapon" in Symbol 286 MovieClip Frame 1
onClipEvent (enterFrame) {
weapon = _root.data.p1_weapon_name;
_parent.weapon.gotoAndStop(weapon);
}
Symbol 286 MovieClip Frame 17
gotoAndPlay (1);
Symbol 289 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 30
gotoAndPlay (1);
Symbol 305 MovieClip Frame 25
gotoAndPlay (1);
Instance of Symbol 100 MovieClip "weapon" in Symbol 311 MovieClip Frame 1
onClipEvent (enterFrame) {
weapon = _root.data.p1_weapon_name;
_parent.weapon.gotoAndStop(weapon);
}
Symbol 311 MovieClip Frame 6
var flip = Math.round(Math.random(2));
if (flip == 1) {
gotoAndPlay (18);
}
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 311 MovieClip Frame 7
onClipEvent (enterFrame) {
var k = 0;
while (k < 12) {
huh = this.hitTest(eval (("_root.zone.enemy_" + k) + ".shadow"));
if (huh == true) {
eval ("_root.zone.enemy_" + k).data.p1_attack = 1;
_root.data.p1_target = eval ("enemy_" + k).data.name;
}
k++;
}
}
Symbol 311 MovieClip Frame 17
_parent.gotoAndStop("ready");
Instance of Symbol 142 MovieClip "damage_zone" in Symbol 311 MovieClip Frame 18
onClipEvent (enterFrame) {
var k = 0;
while (k < 12) {
huh = this.hitTest(eval (("_root.zone.enemy_" + k) + ".shadow"));
if (huh == true) {
eval ("_root.zone.enemy_" + k).data.p1_attack = 1;
_root.data.p1_target = eval ("enemy_" + k).data.name;
}
k++;
}
}
Symbol 311 MovieClip Frame 27
_parent.gotoAndStop("ready");
Instance of Symbol 100 MovieClip "weapon" in Symbol 314 MovieClip Frame 1
onClipEvent (enterFrame) {
weapon = _root.data.p1_weapon_name;
_parent.weapon.gotoAndStop(weapon);
}
Symbol 314 MovieClip Frame 17
gotoAndPlay (1);
Symbol 315 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip "aaa" in Symbol 317 MovieClip Frame 1
onClipEvent (load) {
xs = _xscale;
}
onClipEvent (enterFrame) {
if (_root.data.pause != true) {
if (_root.data.p1_dead != 1) {
posx = _parent._x;
posy = _parent._y;
initx = posx - old_posx;
inity = posy - old_posy;
if (initx > 1) {
this.gotoAndStop("right");
} else if (initx < -1) {
this.gotoAndStop("left");
} else if (inity > 1) {
this.gotoAndStop("front");
} else if (inity < -1) {
this.gotoAndStop("back");
}
if ((initx > 9) || (inity > 9)) {
this.animations.gotoAndStop("run");
} else if ((initx < -9) || (inity < -9)) {
this.animations.gotoAndStop("run");
} else if ((initx > 1) || (inity > 1)) {
this.animations.gotoAndStop("walk");
} else if ((initx < -1) || (inity < -1)) {
this.animations.gotoAndStop("walk");
} else if (_parent.data.attacking != 1) {
per = Math.round((_root.data.p1_current_hp / _root.data.p1_max_hp) * 100);
if (per <= 25) {
this.animations.gotoAndStop("hurt");
} else {
this.animations.gotoAndStop("idle");
}
}
old_posy = posy;
old_posx = posx;
} else {
this.animations.gotoAndStop("dead");
}
}
}
Instance of Symbol 100 MovieClip "data" in Symbol 317 MovieClip Frame 1
onClipEvent (load) {
speed = 5;
collide_yes = 0;
attacking = 0;
}
onClipEvent (enterFrame) {
if (_root.data.pause != true) {
if (_root.data.p1_dead != 1) {
if (Key.isDown(32)) {
attacking = 1;
_parent.aaa.animations.gotoAndStop("attack");
}
if (Key.isDown(16)) {
speed = 10;
} else {
speed = 5;
}
if (Key.isDown(39)) {
attacking = 0;
_parent._x = _parent._x + speed;
}
if (Key.isDown(37)) {
attacking = 0;
_parent._x = _parent._x - speed;
}
if (Key.isDown(40)) {
attacking = 0;
_parent._y = _parent._y + speed;
}
if (Key.isDown(38)) {
attacking = 0;
_parent._y = _parent._y - speed;
}
}
}
}
Instance of Symbol 319 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
destination = _parent.destination;
exit_point = _parent.exit_point;
}
onClipEvent (enterFrame) {
huh = this.hitTest(_parent._parent.player.shadow);
if (huh == true) {
_root.data.exit_point = exit_point;
_root.gotoAndStop(destination);
}
}
Instance of Symbol 208 MovieClip "enemy_2" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
this.data.overide = 0;
this.data.over_level = 1;
}
Instance of Symbol 208 MovieClip "enemy_5" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
this.data.overide = 0;
this.data.over_level = 1;
}
Instance of Symbol 208 MovieClip "enemy_8" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
this.data.overide = 0;
this.data.over_level = 1;
}
Instance of Symbol 208 MovieClip "enemy_11" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
this.data.overide = 0;
this.data.over_level = 1;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
destination = 5;
exit_point = "North";
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
destination = 5;
exit_point = "South";
}
Instance of Symbol 100 MovieClip "data" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
map_W = 1280;
map_H = 960;
pc_x = _parent.player._x;
pc_y = _parent.player._y;
entrance_point = _root.data.exit_point;
if (entrance_point == "South") {
_parent.player._x = -20;
_parent.player._y = -310;
_parent._y = 310;
}
if (entrance_point == "North") {
_parent.player._x = -20;
_parent.player._y = 310;
}
_root.data.fade = 2;
}
onClipEvent (enterFrame) {
pc_x = _parent.player._x;
pc_y = _parent.player._y;
if ((pc_x < ((map_W / 2) - 320)) && (pc_x > (-1 * ((map_W / 2) - 320)))) {
_parent._x = (-1 * pc_x) + 320;
}
if ((pc_y < ((map_H / 2) - 240)) && (pc_y > (-1 * ((map_H / 2) - 240)))) {
_parent._y = (-1 * pc_y) + 240;
}
}
Instance of Symbol 100 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (enterFrame) {
shadow_hp.text = _root.data.p1_damage;
hp.text = _root.data.p1_damage;
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 19
stop();
gotoAndStop (1);
Instance of Symbol 229 MovieClip "BG_sword" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.p1_weapon_name);
}
Symbol 354 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip "data" in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.hp.text = _root.data.p1_current_hp;
_parent.sp.text = _root.data.p1_current_sp;
_parent.level.text = _root.data.level;
per = Math.round((_root.data.p1_current_hp / _root.data.p1_max_hp) * 100);
if (per < 1) {
per = 1;
}
_parent.hp_bar.gotoAndStop(per);
per = Math.round((_root.data.p1_current_sp / _root.data.p1_max_sp) * 100);
if (per < 1) {
per = 1;
}
_parent.sp_bar.gotoAndStop(per);
}
Symbol 364 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 1
stop();
Instance of Symbol 206 MovieClip "inv_1" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 1;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_1);
if (data.used == 1) {
_root.data.inv_1 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 100 MovieClip "data" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.pow_value.text = _root.data.p1_pow;
_parent.ski_value.text = _root.data.p1_ski;
_parent.att_value.text = _root.data.p1_att;
_parent.def_value.text = _root.data.p1_def;
_parent.exp_value.text = _root.data.exp;
_parent.exp_goal.text = _root.data.exp_goal;
_parent.weapon_name.text = _root.data.p1_weapon_name;
_parent.delay.TEXT = _root.data.p1_weapon_delay;
_parent.ave_damage.text = _root.data.p1_weapon_ave_damage;
_parent.max_damage.text = _root.data.p1_weapon_max_damage;
_parent.min_damage.text = _root.data.p1_weapon_min_damage;
powpow = _parent.pow_value.text;
if (powpow > 100) {
powpow = 100;
}
_parent.pow_bar.gotoAndStop(powpow);
skiski = _parent.ski_value.text;
if (skiski > 100) {
skiski = 100;
}
_parent.ski_bar.gotoAndStop(skiski);
attatt = _parent.att_value.text;
if (attatt > 100) {
attatt = 100;
}
_parent.att_bar.gotoAndStop(attatt);
defdef = _parent.def_value.text;
if (defdef > 100) {
defdef = 100;
}
_parent.def_bar.gotoAndStop(defdef);
}
Instance of Symbol 206 MovieClip "inv_2" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 2;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_2);
if (data.used == 1) {
_root.data.inv_2 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_3" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 3;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_3);
if (data.used == 1) {
_root.data.inv_3 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_4" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 4;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_4);
if (data.used == 1) {
_root.data.inv_4 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_5" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 5;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_5);
if (data.used == 1) {
_root.data.inv_5 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_6" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 6;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_6);
if (data.used == 1) {
_root.data.inv_1 = "none";
data.used = 6;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_7" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 7;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_7);
if (data.used == 1) {
_root.data.inv_7 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_8" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 8;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_8);
if (data.used == 1) {
_root.data.inv_8 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_9" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 9;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_9);
if (data.used == 1) {
_root.data.inv_9 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_10" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 10;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_10);
if (data.used == 1) {
_root.data.inv_10 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_11" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 11;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_11);
if (data.used == 1) {
_root.data.inv_11 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_12" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 12;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_12);
if (data.used == 1) {
_root.data.inv_12 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_13" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 13;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_13);
if (data.used == 1) {
_root.data.inv_13 = "none";
data.used = 0;
}
}
Instance of Symbol 206 MovieClip "inv_14" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 14;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_14);
if (data.used == 1) {
_root.data.inv_14 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Instance of Symbol 206 MovieClip "inv_15" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
slot = 15;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.data.inv_15);
if (data.used == 1) {
_root.data.inv_15 = "none";
data.used = 0;
_parent._parent.gotoAndPlay(7);
}
}
Symbol 396 MovieClip Frame 1
stop();
Instance of Symbol 360 MovieClip "p1_vitals_over" in Symbol 396 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(20)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 100 MovieClip "log_controller" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
_parent.log.multiline = true;
_parent.log.wordWrap = true;
_parent.log.type = "dynamic";
_parent.log.border = true;
_parent.log.html = true;
content = "<u> ---Begin Log--- </u>";
_parent.log.htmltext = content;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 83 MovieClip [FScrollBarSymbol] in Symbol 396 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "log";
horizontal = false;
}
Symbol 396 MovieClip Frame 6
stop();
_root.data.pause = true;
Instance of Symbol 360 MovieClip "p1_vitals_over" in Symbol 396 MovieClip Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(20)) {
_parent.gotoAndPlay(7);
}
}
Symbol 396 MovieClip Frame 9
gotoAndStop (1);
_root.data.pause = false;
Symbol 399 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.data.fade == 0) {
_parent.gotoAndStop(1);
} else if (_root.data.fade == 2) {
_parent.gotoAndPlay(2);
_root.data.fade = 3;
} else if (_root.data.fade == 2) {
_root.data.fade = 3;
}
}
Symbol 399 MovieClip Frame 20
stop();
Symbol 399 MovieClip Frame 27
stop();