Frame 1
_quality = "BEST";
fscommand ("showmenu", "false");
function point3d(x, y, z) {
this.num = num;
this.x = x;
this.y = y;
this.z = z;
this.scale = 100;
num++;
}
function line(from, to) {
this.num = num;
this.from = from;
this.to = to;
num++;
}
num = 1;
perspective = 270;
XRotation = 0;
YRotation = 0;
ZRotation = 0;
point3d.prototype.draw = function () {
_root.space.attachMovie("point", "point" + this.num, this.num);
with (eval ("_root.space.point" + this.num)) {
_x = this.x * ((this.z / perspective) + 1);
_y = this.y * ((this.z / perspective) + 1);
_xscale = this.scale;
_yscale = this.scale;
}
eval ("_root.space.point" + this.num).mynum = this.num;
};
point3d.prototype.rotate = function (rotX, rotY, rotZ) {
var y1 = ((this.y * Math.cos(rotX)) + (this.z * Math.sin(rotX)));
var z1 = ((this.y * (-Math.sin(rotX))) + (this.z * Math.cos(rotX)));
var x1 = ((this.x * Math.cos(rotY)) + (z1 * (-Math.sin(rotY))));
var z2 = ((this.x * Math.sin(rotY)) + (z1 * Math.cos(rotY)));
var x2 = ((x1 * Math.cos(rotZ)) + (y1 * Math.sin(rotZ)));
var y2 = ((x1 * (-Math.sin(rotZ))) + (y1 * Math.cos(rotZ)));
this.scale = ((this.z / 2) + 100) + ((this.z / _root.perspective) + 1);
this.x = x2;
this.y = y2;
this.z = z2;
};
line.prototype.draw = function () {
fX = eval ("_root.space.point" + this.from)._x;
fY = eval ("_root.space.point" + this.from)._y;
tX = eval ("_root.space.point" + this.to)._x;
tY = eval ("_root.space.point" + this.to)._y;
_root.space.attachMovie("line", "line" + this.num, this.num);
with (eval ("_root.space.line" + this.num)) {
_x = fX;
_y = fY;
_xscale = tX - fX;
_yscale = tY - fY;
}
};
points = new Array();
totalpoints = 8;
points[1] = new point3d(-50, -50, -50);
points[2] = new point3d(-50, 50, -50);
points[3] = new point3d(50, 50, -50);
points[4] = new point3d(50, -50, -50);
points[5] = new point3d(-50, -50, 50);
points[6] = new point3d(-50, 50, 50);
points[7] = new point3d(50, 50, 50);
points[8] = new point3d(50, -50, 50);
lines = new Array();
totallines = 12;
lines[1] = new Line("1", "2");
lines[2] = new Line("6", "5");
lines[3] = new Line("6", "7");
lines[4] = new Line("3", "2");
lines[5] = new Line("1", "4");
lines[6] = new Line("6", "2");
lines[7] = new Line("8", "5");
lines[8] = new Line("8", "7");
lines[9] = new Line("3", "7");
lines[10] = new Line("8", "4");
lines[11] = new Line("1", "5");
lines[12] = new Line("3", "4");
Instance of Symbol 103 MovieClip "space" in Frame 1
onClipEvent (mouseDown) {
_root.pressing = true;
}
onClipEvent (mouseUp) {
_root.pressing = false;
}
Frame 2
gotoAndPlay (4);
Frame 3
gotoAndPlay (2);
Frame 4
percentloaded1 = int((100 / _totalframes) * _framesloaded);
percentloaded = ("(" + percentloaded1) + "%)";
tellTarget ("/loader") {
gotoAndStop(_level0:percentloaded1);
};
ifFrameLoaded (_totalframes) {
gotoAndStop (8);
}
XRotation = _root.space._ymouse / 1000;
YRotation = _root.space._xmouse / -1000;
if (pressing) {
ZRotation = _root.space._xmouse / 1000;
}
Frame 5
gotoAndPlay (4);
i = 1;
while (i <= 8) {
points[i].rotate(XRotation, YRotation, ZRotation);
points[i].draw();
i++;
}
ii = int((12 / _totalframes) * _framesloaded);
i = 0;
while (i <= ii) {
lines[i].draw();
i++;
}
Frame 6
Frame 8
SFXburp = new Sound();
SFXburp.attachSound("_eat.wav");
SFXsplash = new Sound();
SFXsplash.attachSound("_splash.wav");
SFXsploosh = new Sound();
SFXsploosh.attachSound("_sploosh.wav");
SFXkoi = new Sound();
SFXkoi.attachSound("_koi.wav");
var sound = 1;
var qual = 1;
Frame 13
var p = 1;
while (p < 11) {
eval ("plant" + p).gotoAndPlay(random(160));
p++;
}
Frame 15
stop();
if (sound == 1) {
SFXsplash.start(0, 1);
}
var p = 1;
while (p < 11) {
eval ("plant" + p).gotoAndPlay(random(160));
p++;
}
var b = 0;
while (b < 5) {
eval ("pfishbone" + b)._visible = 0;
eval ("bfishbone" + b)._visible = 0;
eval ("fishbone" + b)._visible = 0;
b++;
}
var b = 5;
while (b < 18) {
eval ("pfishbone" + b)._visible = 0;
b++;
}
var deadfish = 0;
var score = 0;
var xmove = 0;
var ymove = 7;
var swimspeed = 1;
var f_swimming = 0;
var f_size = 15;
fishy._xscale = f_size;
fishy._yscale = f_size;
fishsize = new Array();
fishspeed = new Array();
var i = 1;
while (i <= 10) {
fishsize[i] = random(72) + 2;
eval ("fish" + this.i)._xscale = fishsize[i];
eval ("fish" + this.i)._yscale = fishsize[i];
fishspeed[i] = (random(6) - 3) * 2;
if (fishspeed[i] == 0) {
fishspeed[i] = 2;
}
if (fishspeed[i] > 0) {
eval ("fish" + this.i)._x = -90;
eval ("fish" + this.i)._xscale = _parent.fishsize[i];
} else {
eval ("fish" + this.i)._x = 640;
eval ("fish" + this.i)._xscale = -fishsize[i];
}
eval ("fish" + this.i)._y = random(400);
aColor = new Color(eval ("fish" + this.i));
aColorTransform = new Object();
aColorTransform.ba = fishsize[i] * 3.5;
aColorTransform.ra = 255 - (fishsize[i] * 3.5);
aColorTransform.ga = 100;
aColor.setTransform(aColorTransform);
i++;
}
Instance of Symbol 206 MovieClip "pfishbone5" in Frame 15
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone6" in Frame 15
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone9" in Frame 15
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone13" in Frame 15
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone14" in Frame 15
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone17" in Frame 15
/* no clip actions */
Frame 16
SFXkoi.stop();
if (sound == 1) {
SFXsploosh.start(0, 1);
}
Frame 18
loadVarsText = new loadVars();
loadVarsText.load("http://www.xgenstudios.com/fishy/hst.dat");
loadVarsText.onLoad = function (success) {
if (success) {
hstext.text = this.hs;
}
};
Instance of Symbol 93 MovieClip [FScrollBarSymbol] in Frame 18
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "hstext";
horizontal = false;
}
Frame 19
SFXkoi.stop();
if (sound == 1) {
SFXsploosh.start(0, 1);
}
Instance of Symbol 206 MovieClip "pfishbone5" in Frame 19
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone6" in Frame 19
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone9" in Frame 19
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone13" in Frame 19
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone14" in Frame 19
/* no clip actions */
Instance of Symbol 206 MovieClip "pfishbone17" in Frame 19
/* no clip actions */
Symbol 5 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 18 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 28 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 37 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 38 MovieClip [UpArrow] Frame 1
stop();
Symbol 38 MovieClip [UpArrow] Frame 2
stop();
Symbol 38 MovieClip [UpArrow] Frame 3
stop();
Symbol 45 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 52 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 57 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 58 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 66 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 74 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 82 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 83 MovieClip [DownArrow] Frame 1
stop();
Symbol 83 MovieClip [DownArrow] Frame 2
stop();
Symbol 83 MovieClip [DownArrow] Frame 3
stop();
Symbol 92 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 93 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
Symbol 95 Button
on (release) {
getURL ("http://www.xgenstudios.com/", "_new");
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 230
stop();
_parent.gotoAndStop(13);
Symbol 128 MovieClip Frame 219
stop();
Symbol 130 MovieClip Frame 1
var i = random(5);
Symbol 130 MovieClip Frame 30
gotoAndPlay(random(70) + 30);
Symbol 130 MovieClip Frame 101
gotoAndPlay (2);
Symbol 131 MovieClip Frame 1
var xwalk = 0;
var ywalk = 0;
var xacc = ((10 - (random(2) * 20)) * (random(20) / 100));
var yacc = ((10 - (random(2) * 20)) * (random(20) / 100));
aColor = new Color(SQ1);
aColorTransform = new Object();
aColorTransform.ba = random(255);
aColorTransform.ra = random(255);
aColorTransform.ga = random(255);
aColor.setTransform(aColorTransform);
Symbol 131 MovieClip Frame 2
SQ1._x = SQ1._x + this.xwalk;
SQ1._y = SQ1._y + this.ywalk;
this.xwalk = this.xwalk + this.xacc;
this.ywalk = this.ywalk + this.yacc;
if (this.xwalk > 5) {
this.xacc = -(random(10) / 20);
}
if (this.xwalk < -5) {
this.xacc = random(10) / 20;
}
if (this.ywalk > 5) {
this.yacc = -(random(10) / 20);
}
if (this.ywalk < -5) {
this.yacc = random(10) / 20;
}
if (SQ1._x < -100) {
this.xacc = 0.2;
}
if (SQ1._x > 100) {
this.xacc = -0.2;
}
if (SQ1._y < -100) {
this.yacc = 0.2;
}
if (SQ1._y > 100) {
this.yacc = -0.2;
}
Symbol 131 MovieClip Frame 3
gotoAndPlay (2);
Symbol 149 Button
on (release) {
if (sound == 1) {
SFXkoi.start(0, 10000);
}
gotoAndStop (15);
}
Symbol 152 Button
on (release) {
gotoAndStop (14);
}
Symbol 169 Button
on (release) {
gotoAndStop (18);
}
Symbol 179 MovieClip Frame 3
if (_parent.f_swimming == 0) {
gotoAndPlay (1);
}
Symbol 179 MovieClip Frame 6
gotoAndPlay (1);
Symbol 185 Button
on (release) {
gotoAndStop (13);
}
Symbol 190 MovieClip Frame 1
var i = 0;
while (i < 3) {
if (eval ("_parent.bubble" + i)._y < -10) {
eval ("_parent.bubble" + i)._y = _parent.fishy._y - (2 * i);
eval ("_parent.bubble" + i)._x = _parent.fishy._x + _parent.fishy._xscale;
eval ("_parent.bubble" + i)._xscale = _parent.fishy._xscale;
eval ("_parent.bubble" + i)._yscale = _parent.fishy._yscale;
}
eval ("_parent.bubble" + i)._y = eval ("_parent.bubble" + i)._y - (2 + (i / 4));
i++;
}
_parent.ymove = _parent.ymove * 0.97;
_parent.xmove = _parent.xmove * 0.97;
_parent.f_swimming = 0;
if (key.isDown(16) && (_parent.item_turbo == 1)) {
_parent.swimspeed = 0.5;
} else {
_parent.swimspeed = 0.25;
}
if (key.isDown(37)) {
_parent.fishy._xscale = -_parent.f_size;
_parent.xmove = _parent.xmove - _parent.swimspeed;
_parent.f_swimming = 1;
} else if (key.isDown(39)) {
_parent.fishy._xscale = _parent.f_size;
_parent.xmove = _parent.xmove + _parent.swimspeed;
_parent.f_swimming = 1;
}
if (key.isDown(38)) {
_parent.ymove = _parent.ymove - _parent.swimspeed;
_parent.f_swimming = 1;
} else if (key.isDown(40)) {
_parent.ymove = _parent.ymove + _parent.swimspeed;
_parent.f_swimming = 1;
}
_parent.fishy._x = _parent.fishy._x + _parent.xmove;
if (_parent.fishy._x > 550) {
_parent.fishy._x = 0;
}
if (_parent.fishy._x < 0) {
_parent.fishy._x = 550;
}
if (((_parent.fishy._y + _parent.ymove) < 395) && ((_parent.fishy._y + _parent.ymove) > 5)) {
_parent.fishy._y = _parent.fishy._y + _parent.ymove;
} else {
_parent.ymove = 0;
}
var i = 1;
while (i <= 10) {
eval ("_parent.fish" + this.i)._x = eval ("_parent.fish" + this.i)._x + _parent.fishspeed[i];
if ((eval ("_parent.fish" + this.i)._x > 650) || (eval ("_parent.fish" + this.i)._x < -100)) {
_parent.fishsize[i] = random(72) + 2;
_parent.fishspeed[i] = (random(6) - 3) * 2;
if (_parent.fishspeed[i] == 0) {
_parent.fishspeed[i] = 2;
}
eval ("_parent.fish" + this.i)._yscale = _parent.fishsize[i];
if (_parent.fishspeed[i] > 0) {
eval ("_parent.fish" + this.i)._x = -90;
eval ("_parent.fish" + this.i)._xscale = _parent.fishsize[i];
} else {
eval ("_parent.fish" + this.i)._x = 640;
eval ("_parent.fish" + this.i)._xscale = -_parent.fishsize[i];
}
eval ("_parent.fish" + this.i)._y = random(400);
aColor = new Color(eval ("_parent.fish" + this.i));
aColorTransform = new Object();
aColorTransform.ba = _parent.fishsize[i] * 3.5;
aColorTransform.ra = 255 - (_parent.fishsize[i] * 3.5);
aColorTransform.ga = 100;
aColor.setTransform(aColorTransform);
}
i++;
}
Symbol 190 MovieClip Frame 2
var i = 0;
while (i < 3) {
eval ("_parent.bubble" + i)._y = eval ("_parent.bubble" + i)._y - (2 + (i / 4));
i++;
}
_parent.ymove = _parent.ymove * 0.97;
_parent.xmove = _parent.xmove * 0.97;
if (key.isDown(37)) {
_parent.fishy._xscale = -_parent.f_size;
_parent.xmove = _parent.xmove - _parent.swimspeed;
} else if (key.isDown(39)) {
_parent.fishy._xscale = _parent.f_size;
_parent.xmove = _parent.xmove + _parent.swimspeed;
}
if (key.isDown(38)) {
_parent.ymove = _parent.ymove - _parent.swimspeed;
} else if (key.isDown(40)) {
_parent.ymove = _parent.ymove + _parent.swimspeed;
}
_parent.fishy._x = _parent.fishy._x + _parent.xmove;
if (_parent.fishy._x > 550) {
_parent.fishy._x = 0;
}
if (_parent.fishy._x < 0) {
_parent.fishy._x = 550;
}
if (((_parent.fishy._y + _parent.ymove) < 395) && ((_parent.fishy._y + _parent.ymove) > 5)) {
_parent.fishy._y = _parent.fishy._y + _parent.ymove;
} else {
_parent.ymove = 0;
}
var i = 1;
while (i <= 10) {
eval ("_parent.fish" + this.i)._x = eval ("_parent.fish" + this.i)._x + _parent.fishspeed[i];
if (Math.abs(eval ("_parent.fish" + i)._x - _parent.fishy._x) < (_parent.f_size + _parent.fishsize[i])) {
if (Math.abs(eval ("_parent.fish" + i)._y - _parent.fishy._y) < ((_parent.f_size + _parent.fishsize[i]) / 3)) {
if (_parent.f_size > _parent.fishsize[i]) {
if (_parent.sound == 1) {
_parent.SFXburp.start(0, 1);
}
_parent.fishy.gotoAndPlay(7);
eval ("_parent.fish" + i)._x = 700;
_parent.f_size = _parent.f_size + (_parent.fishsize[i] / 50);
_parent.fishy._xscale = _parent.f_size;
_parent.fishy._yscale = _parent.f_size;
_parent.score = _parent.score + (_parent.fishsize[i] * 6);
var b = 0;
while (b < 5) {
eval ("_parent.bfishbone" + b)._visible = 0;
eval ("_parent.fishbone" + b)._visible = 0;
b++;
}
_parent.deadfish = _parent.deadfish + 1;
var bones = _parent.deadfish;
var b = 1;
while (bones >= 25) {
bones = bones - 25;
eval ("_parent.pfishbone" + b)._visible = 1;
b = b + 1;
}
var b = 1;
while (bones >= 5) {
bones = bones - 5;
eval ("_parent.bfishbone" + b)._visible = 1;
b = b + 1;
}
var b = 1;
while (bones >= 1) {
bones = bones - 1;
eval ("_parent.fishbone" + b)._visible = 1;
b = b + 1;
}
if (_parent.f_size > 300) {
_parent.gotoAndStop(19);
}
} else {
_parent.gotoAndStop(16);
}
}
}
i++;
}
Symbol 195 Button
on (release) {
_parent.SFXkoi.stop();
_parent.sound = 0;
gotoAndStop (2);
}
Symbol 197 Button
on (release) {
_parent.SFXkoi.start(0, 10000);
_parent.sound = 1;
gotoAndStop (1);
}
Symbol 198 MovieClip Frame 1
if (_parent.sound == 1) {
stop();
}
Symbol 198 MovieClip Frame 2
stop();
Symbol 200 Button
on (release) {
if (qual == 1) {
_quality = "LOW";
qual = 0;
} else {
_quality = "HIGH";
qual = 1;
}
}
Symbol 210 MovieClip Frame 71
stop();
Symbol 215 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 220 Button
on (release) {
if (sound == 1) {
SFXkoi.start(0, 10000);
}
gotoAndStop (15);
}
Symbol 221 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 225 Button
on (release) {
gotoAndStop (13);
}
Symbol 230 Button
on (release) {
prevFrame();
gotoAndStop;
}