Frame 1
_quality = "BEST";
fscommand ("showmenu", "false");
function point3d(x, y, z) {
var _local1 = this;
_local1.num = num;
_local1.x = x;
_local1.y = y;
_local1.z = z;
_local1.scale = 100;
num++;
}
function line(from, to) {
var _local1 = this;
_local1.num = num;
_local1.from = from;
_local1.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 _local1 = this;
var _local2 = rotX;
var y1 = ((_local1.y * Math.cos(_local2)) + (_local1.z * Math.sin(_local2)));
var _local3 = (_local1.y * (-Math.sin(_local2))) + (_local1.z * Math.cos(_local2));
var x1 = ((_local1.x * Math.cos(rotY)) + (_local3 * (-Math.sin(rotY))));
var z2 = ((_local1.x * Math.sin(rotY)) + (_local3 * Math.cos(rotY)));
var x2 = ((x1 * Math.cos(rotZ)) + (y1 * Math.sin(rotZ)));
var y2 = ((x1 * (-Math.sin(rotZ))) + (y1 * Math.cos(rotZ)));
_local1.scale = ((_local1.z / 2) + 100) + ((_local1.z / _root.perspective) + 1);
_local1.x = x2;
_local1.y = y2;
_local1.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 108 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 + 0) {
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 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 = 5;
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++;
}
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);
}
Symbol 19 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 29 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 38 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 39 MovieClip [UpArrow] Frame 1
stop();
Symbol 39 MovieClip [UpArrow] Frame 2
stop();
Symbol 39 MovieClip [UpArrow] Frame 3
stop();
Symbol 51 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 59 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 67 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 68 MovieClip [DownArrow] Frame 1
stop();
Symbol 68 MovieClip [DownArrow] Frame 2
stop();
Symbol 68 MovieClip [DownArrow] Frame 3
stop();
Symbol 75 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 82 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 87 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 88 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 89 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length <= 0) ? true : (enabledFlag));
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value != "") {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length <= 2) ? false : (isGlobal));
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (!_local1.setCustomStyleProperty(_local2, value)) {
if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local3 = 0;
for(;;){
if (_local3 >= arguments.length) {
return;
}
var _local2 = arguments[_local3];
_local1.listeners[arguments[_local3]] = _local2;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local2.updateStyleProperty(_local1, i.toString());
}
}
};
_local3 = _local3++;
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 92 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 93 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height != 4) {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (_local1.enable) {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField == undefined) {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
} else {
_local1.setScrollTarget(_local1.textField);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height != 1) {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (_local2 instanceof TextField) {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (_local1.isScrolling) {
} else if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
return(undefined);
}
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
return(undefined);
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 95 Button
on (release) {
getURL ("http://www.xgenstudios.com/", "_new");
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 230
stop();
_parent.gotoAndStop(13);
Symbol 140 MovieClip Frame 219
stop();
Symbol 142 MovieClip Frame 1
var i = random(5);
Symbol 142 MovieClip Frame 30
gotoAndPlay(random(70) + 30);
Symbol 142 MovieClip Frame 101
gotoAndPlay (2);
Symbol 143 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 143 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 143 MovieClip Frame 3
gotoAndPlay (2);
Symbol 170 Button
on (release) {
if (sound == 1) {
SFXkoi.start(0, 10000);
}
gotoAndStop (15);
}
Symbol 181 Button
on (release) {
gotoAndStop (14);
}
Symbol 197 Button
on (release) {
gotoAndStop (18);
}
Symbol 227 MovieClip Frame 3
if (_parent.f_swimming == 0) {
gotoAndPlay (1);
}
Symbol 227 MovieClip Frame 6
gotoAndPlay (1);
Symbol 232 Button
on (release) {
gotoAndStop (13);
}
Symbol 238 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 238 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] / 5);
_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 243 Button
on (release) {
_parent.SFXkoi.stop();
_parent.sound = 0;
gotoAndStop (2);
}
Symbol 245 Button
on (release) {
_parent.SFXkoi.start(0, 10000);
_parent.sound = 1;
gotoAndStop (1);
}
Symbol 246 MovieClip Frame 1
if (_parent.sound == 1) {
stop();
}
Symbol 246 MovieClip Frame 2
stop();
Symbol 249 Button
on (release) {
if (qual == 1) {
_quality = "LOW";
qual = 0;
} else {
_quality = "HIGH";
qual = 1;
}
}
Symbol 260 MovieClip Frame 71
stop();
Symbol 263 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 269 Button
on (release) {
if (sound == 1) {
SFXkoi.start(0, 10000);
}
gotoAndStop (15);
}
Symbol 270 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 272 Button
on (release) {
gotoAndStop (13);
}
Symbol 278 Button
on (release) {
prevFrame();
gotoAndStop;
}