Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.TG: " + tgPrel);
if (_root.tgPrel <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
_root.procent = "--";
prel.gotoAndStop(100);
Frame 166
Frame 174
_root.sunet = true;
_root.plici = new Sound();
_root.plici.attachSound("plici");
Frame 175
Stage.scaleMode = "noScale";
this.onEnterFrame = function () {
if (this.getBytesLoaded() == this.getBytesTotal()) {
gotoAndStop ("init");
delete this.onEnterFrame;
} else {
var _local2 = Math.round((this.getBytesLoaded() * 100) / this.getBytesTotal());
}
};
stop();
Frame 183
prevFrame();
Frame 184
_root.play();
Frame 195
function startGame() {
if (_global.gl_user_info.curr_level > 9) {
_global.gl_user_info.curr_level = 1;
}
_global.gl_level = gl_user_info.levels["level_" + gl_user_info.curr_level];
_root.main_mc.messages_mc.level = "Level: " + gl_user_info.curr_level;
_root.main_mc.messages_mc.mess_mc.caption_mc.caption = "Click to start!";
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("on");
_root.initTimer();
_root.main_mc.messages_mc.mess_mc.nextFunc = function () {
_root.main_mc.main_cont_mc.level_mc.begin();
gl_timer.startIt();
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("off");
delete _root.main_mc.messages_mc.mess_mc.nextFunc;
};
_root.main_mc.main_cont_mc.attachMovie("lib_level", "level_mc", 5);
}
function initTimer() {
var _local3 = _root.main_mc.messages_mc.timer_mc;
_local3.init(31);
_local3.setUpIt(gl_level.time, 0, -1, 2);
_local3.onTic = function ($mins, $secs, $msecs) {
_root.main_mc.messages_mc.time_txt.text = ($mins + ":") + $secs;
};
_local3.onEnd = function () {
_root.main_mc.messages_mc.mess_mc.caption_mc.caption = "Time Out";
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("on");
_root.main_mc.main_cont_mc.level_mc.active = false;
_root.main_mc.messages_mc.mess_mc.nextFunc = function () {
gl_user_info.curr_level = 1;
_root.main_mc.gotoAndPlay("replay");
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("off");
delete _root.main_mc.messages_mc.mess_mc.nextFunc;
};
_global.gl_user_info.score = 0;
};
_root.main_mc.messages_mc.time_txt.text = (_local3.getCurrentMins() + ":") + _local3.getCurrentSecs();
_global.gl_timer = _root.main_mc.messages_mc.timer_mc;
_global.gl_score_txt = _root.main_mc.messages_mc.score_txt;
}
main_mc.gotoAndStop("intro");
level_1 = {fishes:{fish_1:{count:5, type:"yellow"}, fish_2:{count:5, type:"red"}}, time:"15s"};
level_2 = {fishes:{fish_1:{count:7, type:"yellow"}, fish_2:{count:7, type:"red"}}, time:"25s"};
level_3 = {fishes:{fish_1:{count:9, type:"yellow"}, fish_2:{count:9, type:"red"}}, time:"35s"};
level_4 = {fishes:{fish_1:{count:11, type:"yellow"}, fish_2:{count:11, type:"red"}}, time:"45s"};
level_5 = {fishes:{fish_1:{count:13, type:"yellow"}, fish_2:{count:13, type:"red"}}, time:"55s"};
level_6 = {fishes:{fish_1:{count:7, type:"yellow"}, fish_2:{count:7, type:"red"}, fish_3:{count:7, type:"blue"}}, time:"65s"};
level_7 = {fishes:{fish_1:{count:12, type:"yellow"}, fish_2:{count:7, type:"red"}, fish_3:{count:7, type:"blue"}}, time:"75s"};
level_8 = {fishes:{fish_1:{count:12, type:"yellow"}, fish_2:{count:12, type:"red"}, fish_3:{count:7, type:"blue"}}, time:"85s"};
level_9 = {fishes:{fish_1:{count:12, type:"yellow"}, fish_2:{count:12, type:"red"}, fish_3:{count:12, type:"blue"}}, time:"95s"};
levels = {level_1:level_1, level_2:level_2, level_3:level_3, level_4:level_4, level_5:level_5, level_6:level_6, level_7:level_7, level_8:level_8, level_9:level_9};
delete level_1;
delete level_2;
delete level_3;
delete level_4;
delete level_5;
delete level_6;
delete level_7;
delete level_8;
delete level_9;
_global.gl_user_info = {levels:levels, curr_level:1, max_level:9, score:0};
delete levels;
_global.gl_game_info = {is_pause:false, is_game_over:false, speed:32};
Frame 205
prevFrame();
Frame 206
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 207
_root.menu.removeMovieClip();
_root.gameid = "FishEatFish";
_root.best = _global.zcor;
_global.zcor = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 209
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 210
if (false) {
}
Frame 217
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 221
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 222
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
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 _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
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 _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
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, _local4);
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 _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((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 || (!_local16)) {
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 _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
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 _local4 = new Color(skinMCRef);
_local4.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 _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.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 23 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 32 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 33 MovieClip [UpArrow] Frame 1
stop();
Symbol 33 MovieClip [UpArrow] Frame 2
stop();
Symbol 33 MovieClip [UpArrow] Frame 3
stop();
Symbol 39 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 81 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 82 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 _local2 = 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;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, 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 _local3 = this.enable;
if (enabledFlag && (!_local3)) {
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) && (_local3)) {
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 _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
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 _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.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 _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, 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 84 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?FishEatFish", "_blank");
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 752 MovieClip [__Packages.Pirrest.Nemo.Score] Frame 0
class Pirrest.Nemo.Score extends MovieClip
{
static var scores_ar;
var val, mess_mc, gotoAndPlay;
function Score () {
super();
scores_ar = [];
val = 0;
}
static function create($x, $y, $val, $scope_mc) {
var _local2 = $scope_mc.getNextHighestDepth();
var _local1 = $scope_mc.attachMovie("lib_score", "score_" + _local2, _local2, {_x:$x, _y:$y});
_local1.show($val);
scores_ar.push(_local1);
}
function show($val) {
val = val + $val;
mess_mc.caption = $val;
(gotoAndPlay(1));// not popped
}
static function isExist($score_mc) {
var _local1;
_local1 = 0;
while (_local1 < scores_ar.length) {
if (scores_ar[_local1]._name == $score_mc._name) {
return(_local1);
}
_local1++;
}
return(false);
}
static function deleteScore($score_mc) {
var _local1 = isExist($score_mc);
if (!isNaN(Number(_local1))) {
scores_ar.splice(_local1, 1);
$score_mc.removeMovieClip();
}
}
}
Symbol 753 MovieClip [__Packages.Pirrest.Nemo.Level] Frame 0
class Pirrest.Nemo.Level extends MovieClip
{
var _delegate, r, _fishes_ar, _catched_fishes_ar, _fishes_types, cont_mc, pr_bar_mc, hit_mc, over_mc, _is_click, _drawtimenow, _pnum, _px, _py, _xmouse, _ymouse, onKeyDown, _xpc, _ypc, onEnterFrame, _active;
function Level () {
super();
_delegate = mx.utils.Delegate;
}
function init() {
r = 10;
_fishes_ar = [];
_catched_fishes_ar = [];
_fishes_types = 0;
var _local8;
var _local6;
for (_local8 in _global.gl_level.fishes) {
var _local7 = _global.gl_level.fishes[_local8];
_local6 = 0;
while (_local6 < _local7.count) {
var _local5 = cont_mc.getNextHighestDepth();
var _local4 = cont_mc.attachMovie("lib_fish", "fish_" + _local5, _local5, _getRandomCoords());
_local4.body_mc._rotation = random(360);
_local4.init();
_local4.type = _local7.type;
_local4.setSize(15);
_fishes_ar.push(_local4);
_local6++;
}
_fishes_types++;
}
pr_bar_mc = _root.main_mc.messages_mc.progress_bar_mc;
}
function begin() {
var _local2;
_local2 = 0;
while (_local2 < _fishes_ar.length) {
_fishes_ar[_local2].active = true;
_local2++;
}
Key.addListener(this);
hit_mc.onMouseDown = _delegate.create(this, _onMouseDown);
active = (true);
}
function _onMouseDown() {
if (_global.gl_game_info.is_pause || (_global.gl_game_info.is_gameover)) {
return(undefined);
}
pr_bar_mc.gotoAndStop(1);
over_mc.clear();
over_mc.lineStyle(1, 13868875, 100);
_is_click = true;
_drawtimenow = 0;
_pnum = 1;
_px = [];
_py = [];
_px[0] = _xmouse;
_py[0] = _ymouse;
}
function end() {
var _local4;
active = (false);
_local4 = 0;
while (_local4 < _fishes_ar.length) {
_fishes_ar[_local4].active = false;
_local4++;
}
delete onKeyDown;
Key.removeListener(_root);
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("level_complete");
_global.gl_timer.pauseIt();
}
function _cleanUpArray($ar) {
var _local3 = [];
var _local1;
_local1 = 0;
while (_local1 < $ar.length) {
if ($ar[_local1] instanceof MovieClip) {
_local3.push($ar[_local1]);
}
_local1++;
}
return(_local3);
}
function _tic() {
if (_global.gl_game_info.is_pause || (_global.gl_game_info.is_gameover)) {
return(undefined);
}
_fishes_ar = _cleanUpArray(_fishes_ar);
if (_fishes_types == _fishes_ar.length) {
end();
}
if (!_is_click) {
return(undefined);
}
pr_bar_mc.gotoAndStop(pr_bar_mc._currentframe + 2);
if (pr_bar_mc._currentframe == 100) {
pr_bar_mc.gotoAndStop(1);
_is_click = false;
_drawtimenow = 0;
over_mc.clear();
}
if (((_xmouse != _px[_pnum - 1]) && (_ymouse != _py[_pnum - 1])) && (hit_mc.hitTest(_root._xmouse, _root._ymouse, true))) {
over_mc.moveTo(_px[_pnum - 1], _py[_pnum - 1]);
over_mc.lineTo(_xmouse, _ymouse);
if (_pnum > 5) {
var _local7 = 1;
var _local4;
while (_local7 < (_px.length - 3)) {
var _local10 = false;
_local10 = line2Line(_px[_pnum - 1], _py[_pnum - 1], _xmouse, _ymouse, _px[_local7], _py[_local7], _px[_local7 - 1], _py[_local7 - 1]);
if (_local10) {
pr_bar_mc.gotoAndStop(1);
_is_click = false;
_drawtimenow = 0;
over_mc.clear();
var _local5 = over_mc.createEmptyMovieClip("r" + r, r);
_local5.lineStyle(1, 0, 0);
_local5.moveTo(_xpc, _ypc);
_local5.beginFill(16763904, 20);
var _local6 = _local7;
while (_local6 < _px.length) {
_local5.lineTo(_px[_local6], _py[_local6]);
_local6++;
}
_local5.endFill();
_local5.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
_catched_fishes_ar = [];
_local4 = 0;
while (_local4 < _fishes_ar.length) {
if (_local5.hitTest(_fishes_ar[_local4]._x, _fishes_ar[_local4]._y, true)) {
_catched_fishes_ar.push(_fishes_ar[_local4]);
}
_local4++;
}
if (_catched_fishes_ar.length > 1) {
var _local11 = function ($a, $b) {
if ($a._xscale < $b._xscale) {
return(1);
}
if ($a._xscale > $b._xscale) {
return(-1);
}
return(0);
};
_catched_fishes_ar.sort(_local11);
var _local9 = _catched_fishes_ar[0].type;
var _local8 = true;
_catched_fishes_ar[0].targets_count = _catched_fishes_ar.length - 1;
_local4 = 1;
while (_local4 < _catched_fishes_ar.length) {
_local8 = _local8 && (_catched_fishes_ar[_local4].type == _local9);
_local4++;
}
if (_local8) {
_global.gl_timer.pauseIt();
_local4 = 1;
while (_local4 < _catched_fishes_ar.length) {
_catched_fishes_ar[0].active = false;
_catched_fishes_ar[_local4].setTarget(_catched_fishes_ar[0]);
_local4++;
}
}
}
r = r + 1;
if (r > 100) {
r = 10;
}
break;
}
_local7++;
}
}
_px[_pnum] = _xmouse;
_py[_pnum] = _ymouse;
_pnum = _pnum + 1;
}
}
function set active($active) {
delete onEnterFrame;
var _local2;
if ($active) {
onEnterFrame = _tic;
}
_local2 = 0;
while (_local2 < _fishes_ar.length) {
_fishes_ar[_local2].active = $active;
_local2++;
}
//return(active);
}
function getCatchesFisheCount() {
return(_catched_fishes_ar.length);
}
function get active() {
return(_active);
}
function _getRandomCoords() {
return({_x:random(570), _y:random(400)});
}
function line2Line(px1, py1, px2, py2, qx1, qy1, qx2, qy2) {
if (py2 == py1) {
py2 = py1 + 1E-6;
} else if (px2 == px1) {
px2 = px1 + 1E-6;
}
var _local8 = px2 - px1;
var _local7 = py2 - py1;
var _local6 = _local7 / _local8;
var _local18 = py1 - (_local6 * px1);
if (qy2 == qy1) {
qy2 = qy1 + 1E-6;
} else if (qx2 == qx1) {
qx2 = qx1 + 1E-6;
}
_local8 = qx2 - qx1;
_local7 = qy2 - qy1;
var _local2 = _local7 / _local8;
var _local15 = qy1 - (_local2 * qx1);
if (_local6 != _local2) {
var _local5 = (_local15 - _local18) / (_local6 - _local2);
var _local19 = (_local2 * _local5) + _local15;
var _local9 = (_local5 - qx1) / (qx2 - qx1);
var _local10 = (_local5 - px1) / (px2 - px1);
if (((_local9 >= 0) && (_local9 <= 1)) && ((_local10 >= 0) && (_local10 <= 1))) {
_xpc = _local5;
_ypc = _local19;
return(true);
}
return(false);
}
return(false);
}
}
Symbol 754 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 755 MovieClip [__Packages.Pirrest.Nemo.Fish] Frame 0
class Pirrest.Nemo.Fish extends MovieClip
{
var _delegate, _ska, _skastepnow, _mass, _bounce, _angle, _velocity, _ran, _ranhalf, _steerforce, _da, _sdis, _srad, _reaction, targets_count, _target_fish, _x, _y, body_mc, _parent, _type, gotoAndStop, onEnterFrame, _active, removeMovieClip, _xscale, _yscale;
function Fish () {
super();
_delegate = mx.utils.Delegate;
}
function init() {
_ska = 100;
_skastepnow = 1;
_mass = 5;
_bounce = 1;
_angle = (random(300) - 150) / 100;
_velocity = 1.5;
_ran = 30;
_ranhalf = 15;
_steerforce = 0.5 * _velocity;
_da = 0;
_sdis = _velocity * 30;
_srad = _velocity * 20;
_reaction = 30;
type = ("yellow");
_refreshSize();
targets_count = 0;
}
function _tic() {
if (_global.gl_game_info.is_pause || (_global.gl_game_info.is_gameover)) {
return(undefined);
}
if (!_target_fish) {
_da = _da + ((random(_ran) - _ranhalf) / 100);
var _local11 = Math.cos(_angle) * _sdis;
var _local9 = Math.sin(_angle) * _sdis;
var _local5 = Math.cos(_angle) * _velocity;
var _local4 = Math.sin(_angle) * _velocity;
var _local12 = _local11 + (Math.cos(_da) * _srad);
var _local10 = _local9 + (Math.sin(_da) * _srad);
var _local7 = Math.atan2(_local10, _local12);
var _local14 = _steerforce * Math.cos(_local7);
var _local13 = _steerforce * Math.sin(_local7);
_local5 = _local5 + _local14;
_local4 = _local4 + _local13;
_x = _x + _local5;
_y = _y + _local4;
_angle = Math.atan2(_local4, _local5);
body_mc._rotation = _angle * Pirrest.Common.PiGeo.RADIAN;
if (_x < 0) {
_x = 570;
} else if (_x > 570) {
_x = 0;
}
if (_y < 0) {
_y = 400;
} else if (_y > 400) {
_y = 0;
}
} else {
_goTowardTarget();
var _local8 = Pirrest.Common.PiGeo.distance(_x, _y, _target_fish._x, _target_fish._y);
if (_local8 <= _reaction) {
var _local6 = 10 * (_root.main_mc.main_cont_mc.level_mc.getCatchesFisheCount() - _target_fish.targets_count);
Pirrest.Nemo.Score.create(_target_fish._x, _target_fish._y, _local6, _parent._parent.over_mc);
_target_fish.setSize(_target_fish.getSize() + (getSize() - 10));
_target_fish.targets_count--;
_global.gl_score_txt.text = (_global.gl_user_info.score = _global.gl_user_info.score + _local6);
if (_target_fish.targets_count == 0) {
_target_fish.__set__active(true);
_global.gl_timer.startIt();
}
destroy();
}
}
}
function set type($type) {
switch ($type) {
case "yellow" :
_velocity = 1;
break;
case "red" :
_velocity = 1;
break;
case "blue" :
_velocity = 1;
}
_type = $type;
gotoAndStop(_type);
_refreshSize();
//return(type);
}
function get type() {
return(_type);
}
function set active($active) {
delete onEnterFrame;
if ($active) {
onEnterFrame = _tic;
}
//return(active);
}
function get active() {
return(_active);
}
function destroy() {
removeMovieClip();
}
function setTarget($fish) {
_target_fish = $fish;
}
function _goTowardTarget() {
body_mc._rotation = Math.atan2(_target_fish._y - _y, _target_fish._x - _x) * Pirrest.Common.PiGeo.RADIAN;
_x = _target_fish._x + ((_x - _target_fish._x) / 1.1);
_y = _target_fish._y + ((_y - _target_fish._y) / 1.1);
}
function _refreshSize() {
if (_xscale <= 25) {
body_mc.gotoAndStop("small");
} else {
body_mc.gotoAndStop("big");
}
}
function setSize($size) {
_xscale = (_yscale = $size);
_refreshSize();
}
function getSize() {
return(_xscale);
}
}
Symbol 756 MovieClip [__Packages.Pirrest.Common.PiGeo] Frame 0
class Pirrest.Common.PiGeo
{
function PiGeo () {
}
static function distance($x1, $y1, $x2, $y2) {
var _local2 = $x1 - $x2;
var _local1 = $y1 - $y2;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function angle($x1, $y1, $x2, $y2) {
return(Math.atan2($x2 - $x1, $y2 - $y1) * RADIAN);
}
static var RADIAN = 57.2957795130823;
static var DEGREE = 0.0174532925199433 /* Math.PI/180 */;
}
Symbol 757 MovieClip [__Packages.Pirrest.Nemo.Timer] Frame 0
class Pirrest.Nemo.Timer extends MovieClip
{
var _tic_inc, _value, _dir, _end_value, _start_value, _digits, onEnterFrame;
function Timer () {
super();
}
function init($fps) {
_tic_inc = 60 / $fps;
}
function _tic() {
onTic(getCurrentMins(), getCurrentSecs(), getCurrentMSecs());
_value = _value + (_tic_inc * _dir);
if (_dir > 0) {
if (_end_value <= _value) {
onEnd();
stopIt();
}
} else if (_end_value >= _value) {
onEnd();
stopIt();
}
}
function setUpIt($start_value, $end_value, $dir, $digits) {
if (!isNaN(Number($start_value))) {
_start_value = $start_value;
} else if ($start_value.indexOf("ms") != -1) {
_start_value = parseInt($start_value);
} else if ($start_value.indexOf("s") != -1) {
_start_value = parseInt($start_value) * 60;
} else if ($start_value.indexOf("m") != -1) {
_start_value = parseInt($start_value) * 3600;
} else {
_start_value = parseInt($start_value);
}
if (!isNaN(Number($end_value))) {
_end_value = $end_value;
} else if ($end_value.indexOf("ms") != -1) {
_end_value = parseInt($end_value);
} else if ($end_value.indexOf("s") != -1) {
_end_value = parseInt($end_value) * 60;
} else if ($end_value.indexOf("m") != -1) {
_end_value = parseInt($end_value) * 3600;
} else {
_end_value = parseInt($end_value);
}
_dir = (Pirrest.Common.PiVal.isEmpty($dir) ? 1 : ($dir));
_digits = (Pirrest.Common.PiVal.isEmpty($digits) ? 1 : ($digits));
_dir = ((_dir >= 0) ? 1 : -1);
_value = _start_value;
}
function startIt() {
onEnterFrame = _tic;
}
function onTic($mins, $secs, $msecs) {
}
function onEnd() {
trace("Timer onEnd()");
}
function pauseIt() {
delete onEnterFrame;
}
function stopIt() {
delete onEnterFrame;
reset();
}
function reset() {
_value = _start_value;
}
function getMSecs() {
return(Math.floor(_value));
}
function getSecs() {
return(_getSecs(_value));
}
function getMins() {
return(_getMins(_value));
}
function getCurrentMSecs() {
return(_convertByDigits(_value - (getSecs() * 60)));
}
function getCurrentSecs() {
return(_convertByDigits(_getSecs(_value) - (getMins() * 60)));
}
function getCurrentMins() {
return(_convertByDigits(getMins()));
}
function _getSecs($val) {
return(Math.floor($val / 60));
}
function _getMins($val) {
return(Math.floor(_getSecs($val) / 60));
}
function _convertByDigits($val) {
var _local2 = String($val);
while (_local2.length < _digits) {
_local2 = "0" + _local2;
}
return(_local2);
}
}
Symbol 758 MovieClip [__Packages.Pirrest.Common.PiVal] Frame 0
class Pirrest.Common.PiVal
{
function PiVal () {
}
static function isEmpty($obj) {
if (($obj == "") || ($obj == undefined)) {
return(true);
}
return(false);
}
}
Symbol 109 MovieClip Frame 50
stop();
_parent.play();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 136 MovieClip Frame 1
stop();
Symbol 252 MovieClip [lib_fish] Frame 1
#initclip 12
Object.registerClass("lib_fish", Pirrest.Nemo.Fish);
#endinitclip
Symbol 261 MovieClip [lib_level] Frame 1
#initclip 10
Object.registerClass("lib_level", Pirrest.Nemo.Level);
#endinitclip
Symbol 266 MovieClip [lib_score] Frame 1
#initclip 11
Object.registerClass("lib_score", Pirrest.Nemo.Score);
#endinitclip
if (_root.sunet == true) {
_root.plici.start(0, 1);
}
Symbol 266 MovieClip [lib_score] Frame 20
Pirrest.Nemo.Score.deleteScore(this);
Symbol 273 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?FishEatFish", "_blank");
}
Symbol 276 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 284 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 284 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 284 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 285 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 292 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 292 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 292 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 293 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 296 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 296 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 296 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 301 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 305 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 306 MovieClip Frame 1
stop();
Symbol 307 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 314 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 314 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 314 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 315 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 316 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
function instructionsFunction() {
this._visible = false;
_parent.instructions._visible = true;
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 317 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 317 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 317 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 317 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 317 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 328 Button
on (release) {
this._visible = false;
_parent.butoane._visible = true;
}
Symbol 336 MovieClip [lib_timer] Frame 1
#initclip 13
Object.registerClass("lib_timer", Pirrest.Nemo.Timer);
#endinitclip
Symbol 343 Button
on (release) {
_global.zcor = _parent.scor;
trace(_global.zcor);
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Symbol 346 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
_parent._parent.meniu._visible = false;
play();
Instance of Symbol 317 MovieClip in Symbol 351 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
wynume = "FishEatFish";
wyculoare = 94650 /* 0x0171BA */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 351 MovieClip Frame 12
but_btn.onRelease = nextFunc;
stop();
Symbol 351 MovieClip Frame 13
_parent._parent.meniu._visible = true;
Symbol 351 MovieClip Frame 22
gotoAndStop (1);
Symbol 351 MovieClip Frame 24
trace("aici");
if (gl_user_info.curr_level == gl_user_info.max_level) {
title_mc.caption = "Game Completed!";
} else {
title_mc.caption = ("Level " + Number(gl_user_info.curr_level)) + " Completed!";
}
Symbol 351 MovieClip Frame 30
mess_mc.caption = "Time bonus:";
Symbol 351 MovieClip Frame 35
temp_score = 0;
gl_timer.init(1);
gl_timer.setUpIt(Number(gl_timer.getSecs() + 1) + "s", 0, -1, 2);
gl_timer.onTic = function ($mins, $secs, $msecs) {
_root.main_mc.messages_mc.time_txt.text = ($mins + ":") + $secs;
score_mc.caption = temp_score++;
gl_score_txt.text = gl_user_info.score++;
};
but2_btn.enabled = false;
gl_timer.startIt();
gl_timer.onEnd = function () {
_root.main_mc.messages_mc.time_txt.text = "00:00";
_root.main_mc.messages_mc.mess_mc.but2_btn.enabled = true;
_root.main_mc.messages_mc.mess_mc.but2_btn.onRelease = function () {
if (gl_user_info.curr_level == gl_user_info.max_level) {
_global.gl_user_info.score = 0;
_global.gl_user_info.curr_level == 1;
_root.main_mc.gotoAndStop("intro");
} else {
_global.gl_user_info.curr_level++;
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("l_c_off");
}
};
};
stop();
_parent._parent.meniu._visible = false;
Symbol 351 MovieClip Frame 36
_parent._parent.meniu._visible = true;
Symbol 351 MovieClip Frame 45
_root.main_mc.gotoAndPlay("replay");
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 100
stop();
Symbol 354 MovieClip Frame 1
score_txt.text = gl_user_info.score;
Symbol 356 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 357 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 358 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 359 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 360 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 361 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 372 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 372 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 372 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 372 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 372 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 372 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 372 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 372 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 377 Button
on (press) {
_parent.play();
}
Symbol 380 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 380 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 380 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 380 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 380 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 380 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 380 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 380 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 380 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 380 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 399 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 400 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 401 MovieClip Frame 1
function pauseFunction() {
_global.gl_game_info.is_pause = !_global.gl_game_info.is_pause;
if (_global.gl_game_info.is_pause) {
_root.main_mc.messages_mc.mess_mc.caption_mc.caption = "PAUSED";
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("on");
_global.gl_timer.pauseIt();
_root.main_mc.messages_mc.mess_mc.nextFunc = function () {
_global.gl_timer.startIt();
_global.gl_game_info.is_pause = false;
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("off");
delete _root.main_mc.messages_mc.mess_mc.nextFunc;
};
} else {
_root.main_mc.messages_mc.mess_mc.gotoAndPlay("off");
_global.gl_timer.startIt();
}
}
function soundFunction() {
if (_root.sunet == true) {
_root.sunet = false;
} else {
_root.sunet = true;
}
}
function mainMenuFunction() {
_parent.gotoAndStop("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 401 MovieClip Frame 10
stop();
Symbol 402 MovieClip Frame 9
start_btn.onRelease = function () {
gotoAndStop ("game");
};
stop();
Instance of Symbol 317 MovieClip "butoane" in Symbol 402 MovieClip Frame 9
//component parameters
onClipEvent (construct) {
wynume = "FishEatFish";
wyculoare = 11422015 /* 0xAE493F */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Instance of Symbol 331 MovieClip "instructions" in Symbol 402 MovieClip Frame 9
onClipEvent (load) {
this._visible = false;
}
Symbol 402 MovieClip Frame 21
_root.startGame();
nextFrame();
Instance of Symbol 401 MovieClip "meniu" in Symbol 402 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
wxnume = "FishEatFish";
wxaliniere = "Stanga-Jos";
wxculoare = 94650 /* 0x0171BA */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Symbol 402 MovieClip Frame 22
main_cont_mc.level_mc.init();
Symbol 407 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 414 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 719 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 82 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 719 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 725 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 741 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 747 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 9
stop();
Symbol 751 MovieClip Frame 22
stop();
Symbol 751 MovieClip Frame 34
var my_date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 751 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}