Combined Code
frame 1 {
stop();
}
// unknown tag 88 length 65
movieClip 7 {
}
movieClip 9 {
}
// unknown tag 88 length 68
movieClip 12 {
frame 23 {
if (percent > 99) {
_root.play();
} else {
gotoAndPlay(r);
}
}
}
instance loading of movieClip 12 {
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent = Math.round((loading / total) * 100);
loading_bar.bar._xscale = percent;
}
}
movieClip 160 __Packages.mx.xpath.XPathAPI {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.xpath) {
_global.mx.xpath = new Object();
}
if (!_global.mx.xpath.XPathAPI) {
var v1 = function () {};
mx.xpath.XPathAPI = v1;
var v2 = v1.prototype;
v1.getEvalString = function (node, path) {
var v7 = '';
var v4 = null;
var v9 = mx.xpath.XPathAPI.getPathSet(path);
var v3 = v9[0].nodeName;
var v8;
var v2 = node;
var v5 = false;
if (v3 != undefined && (v3 == '*' || node.nodeName == v3)) {
var v6 = 1;
while (v6 < v9.length) {
v3 = v9[v6].nodeName;
v8 = v3.indexOf('@');
if (v8 >= 0) {
v3 = v3.substring(v8 + 1);
v5 = v2.attributes[v3] != undefined;
v7 += '.attributes.' + v3;
} else {
v5 = false;
var v1 = 0;
while (v1 < v2.childNodes.length) {
v4 = v2.childNodes[v1];
if (v4.nodeName == v3) {
v7 += '.childNodes.' + v1;
v1 = v2.childNodes.length;
v2 = v4;
v5 = true;
}
++v1;
}
}
if (!v5) {
return '';
}
++v6;
}
if (!v5) {
v7 = '';
} else {
if (v8 == -1) {
v7 += '.firstChild.nodeValue';
}
}
return v7;
}
v7 = '';
return v7;
};
v1.selectNodeList = function (node, path) {
var v2 = new Array(node);
var v5 = mx.xpath.XPathAPI.getPathSet(path);
var v4 = v5[0];
var v6 = v4.__get__nodeName();
var v1 = null;
if (v6 != undefined && (v6 == '*' || node.nodeName == v6)) {
if ((v4.__get__filter()).length > 0) {
v1 = new mx.xpath.FilterStack(v4.__get__filter());
v2 = mx.xpath.XPathAPI.filterNodes(v2, v1);
}
if (v2.length > 0) {
var v3 = 1;
while (v3 < v5.length) {
v4 = v5[v3];
v2 = mx.xpath.XPathAPI.getAllChildNodesByName(v2, v4.__get__nodeName());
if ((v4.__get__filter()).length > 0) {
v1 = new mx.xpath.FilterStack(v4.__get__filter());
} else {
v1 = null;
}
if (v1 != null && (v1.__get__exprs()).length > 0) {
v2 = mx.xpath.XPathAPI.filterNodes(v2, v1);
}
++v3;
}
}
return v2;
}
v2 = new Array();
return v2;
};
v1.selectSingleNode = function (node, path) {
var v1 = mx.xpath.XPathAPI.selectNodeList(node, path);
if (v1.length > 0) {
return v1[0];
} else {
return null;
}
};
v1.setNodeValue = function (node, path, newValue) {
var v1 = new Array(node);
var v9 = mx.xpath.XPathAPI.getPathSet(path);
var v7 = v9[v9.length - 1].nodeName;
if (v7.charAt(0) == '@') {
v7 = v7.substring(1, v7.length);
v9.pop();
} else {
v7 = null;
}
var v5 = v9[0];
var v11 = v5.__get__nodeName();
var v3 = null;
if (v11 != undefined && (v11 == '*' || node.nodeName == v11)) {
if ((v5.__get__filter()).length > 0) {
v3 = new mx.xpath.FilterStack(v5.__get__filter());
v1 = mx.xpath.XPathAPI.filterNodes(v1, v3);
}
if (v1.length > 0) {
var v2 = 1;
while (v2 < v9.length) {
v5 = v9[v2];
v1 = mx.xpath.XPathAPI.getAllChildNodesByName(v1, v5.__get__nodeName());
if ((v5.__get__filter()).length > 0) {
v3 = new mx.xpath.FilterStack(v5.__get__filter());
} else {
v3 = null;
}
if (v3 != null && (v3.__get__exprs()).length > 0) {
v1 = mx.xpath.XPathAPI.filterNodes(v1, v3);
}
++v2;
}
}
} else {
v1 = new Array();
}
var v4 = null;
var v6 = null;
var v10 = new XML();
var v2 = 0;
while (v2 < v1.length) {
if (v7 != null) {
v1[v2].attributes[v7] = newValue;
} else {
v4 = v1[v2];
if (v4.firstChild == null || v4.firstChild.nodeType != 3) {
v6 = v10.createTextNode(newValue);
v4.appendChild(v6);
} else {
v6 = v4.firstChild;
v6.nodeValue = newValue;
}
}
++v2;
}
return v1.length;
};
v1.copyStack = function (toStk, fromStk) {
var v1 = 0;
while (v1 < fromStk.length) {
toStk.splice(v1, 0, fromStk[v1]);
++v1;
}
};
v1.evalExpr = function (expr, node) {
var v2 = true;
if (expr.__get__attr()) {
v2 = (expr.__get__value() != null) ? (node.attributes[expr.__get__name()] == expr.__get__value()) : (node.attributes[expr.__get__name()] != null);
return v2;
}
var v3 = mx.xpath.XPathAPI.getChildNodeByName(node, expr.__get__name());
if (v3 != null) {
v2 = (expr.__get__value() != null) ? (v3.firstChild.nodeValue == expr.__get__value()) : true;
return v2;
}
v2 = false;
return v2;
};
v1.filterNodes = function (nodeList, stack) {
var v13 = new Array();
var v2;
var v3;
var v9;
var v6;
var v10;
var v1 = true;
var v4;
var v5;
var v8 = 0;
while (v8 < nodeList.length) {
v5 = true;
v2 = new Array();
v3 = new Array();
mx.xpath.XPathAPI.copyStack(v2, stack.__get__exprs());
mx.xpath.XPathAPI.copyStack(v3, stack.__get__ops());
v4 = nodeList[v8];
for (;;) {
if (!(v2.length > 0 && v5)) break;
if (typeof v2[v2.length - 1] == 'object') {
v9 = mx.xpath.FilterExpr(v2.pop());
v1 = mx.xpath.XPathAPI.evalExpr(v9, v4);
} else {
v10 = Boolean(v2.pop());
v1 = v10;
}
if (v3.length > 0) {
var v7 = v2.pop();
v6 = v7;
switch (v3[v3.length - 1]) {
case 'and':
v1 = v1 && mx.xpath.XPathAPI.evalExpr(v6, v4);
v5 = v1;
break;
case 'or':
v1 = v1 || mx.xpath.XPathAPI.evalExpr(v6, v4);
v5 = !v1;
}
v3.pop();
v2.push(v1);
}
}
if (v1) {
v13.push(v4);
}
++v8;
}
return v13;
};
v1.getAllChildNodesByName = function (nodeList, name) {
var v5 = new Array();
var v2;
var v3 = 0;
while (v3 < nodeList.length) {
v2 = nodeList[v3].childNodes;
if (v2 != null) {
var v1 = 0;
while (v1 < v2.length) {
if (name == '*' || v2[v1].nodeName == name) {
v5.push(v2[v1]);
}
++v1;
}
}
++v3;
}
return v5;
};
v1.getChildNodeByName = function (node, nodeName) {
var v2;
var v3 = node.childNodes;
var v1 = 0;
while (v1 < v3.length) {
v2 = v3[v1];
if (v2.nodeName == nodeName) {
return v2;
}
++v1;
}
return null;
};
v1.getKeyValues = function (node, keySpec) {
var v5 = '';
var v3 = new mx.utils.StringTokenParser(keySpec);
var v2 = v3.nextToken();
var v1;
var v6;
while (v2 != mx.utils.StringTokenParser.tkEOF) {
v1 = v3.token;
v5 += ' ' + v1;
if (v2 == mx.utils.StringTokenParser.tkSymbol) {
if (v1 == '@') {
v2 = v3.nextToken();
v1 = v3.token;
if (v2 == mx.utils.StringTokenParser.tkSymbol) {
v5 += v1 + '=\'' + node.attributes[v1] + '\'';
}
} else {
if (v1 == '/') {
v2 = v3.nextToken();
if (v2 == mx.utils.StringTokenParser.tkSymbol) {
v1 = v3.token;
node = mx.xpath.XPathAPI.getChildNodeByName(node, v1);
if (node != null) {
v5 += v1;
}
}
} else {
if (v1 != 'and' && v1 != 'or' && v1 != '[' && v1 != ']') {
v6 = mx.xpath.XPathAPI.getChildNodeByName(node, v1);
if (v6 != null) {
v5 += '=\'' + v6.firstChild.nodeValue + '\'';
}
}
}
}
}
if (node == null) {
trace('Invalid keySpec specified. \'' + keySpec + '\' Error.');
return 'ERR';
}
v2 = v3.nextToken();
}
return v5.slice(1);
};
v1.getPath = function (node, keySpecs) {
var v2 = '';
var v5 = keySpecs[node.nodeName];
if (v5 == undefined) {
var v8 = '';
var v10;
for (v10 in node.attributes) {
v8 += '@' + v10 + '=\'' + node.attributes[v10] + '\' and ';
}
var v7 = '';
var v1;
var v6;
var v4 = 0;
while (v4 < node.childNodes.length) {
v1 = node.childNodes[v4];
v6 = v1.firstChild.nodeValue;
if (v6 != undefined) {
v7 += v1.nodeName + '=\'' + v6 + '\' and ';
}
++v4;
}
if (v8.length > 0) {
if (v7.length > 0) {
v2 = '/' + node.nodeName + '[' + v8 + v7.substring(0, v7.length - 4) + ']';
} else {
v2 = '/' + node.nodeName + '[' + v8.substring(0, v8.length - 4) + ']';
}
} else {
v2 = '/' + node.nodeName + '[' + v7.substring(0, v7.length - 4) + ']';
}
} else {
v2 += '/' + node.nodeName + mx.xpath.XPathAPI.getKeyValues(node, v5);
}
var v1 = node.parentNode;
while (v1.parentNode != null) {
v5 = keySpecs[v1.nodeName];
if (v5 != undefined) {
v2 = '/' + v1.nodeName + mx.xpath.XPathAPI.getKeyValues(v1, v5) + v2;
} else {
v2 = '/' + v1.nodeName + v2;
}
v1 = v1.parentNode;
}
return v2;
};
v1.getPathSet = function (path) {
var v6 = new Array();
var v4;
var v1;
var v2;
var v5;
while (path.length > 0) {
v4 = path.lastIndexOf('/');
v1 = path.substring(v4 + 1);
v2 = v1.indexOf('[', 0);
v5 = v2 >= 0 ? v1.substring(v2 + 1, v1.length - 1) : '';
v1 = v2 >= 0 ? v1.substring(0, v2) : v1;
v6.splice(0, 0, new mx.xpath.NodePathInfo(v1, v5));
path = path.substring(0, v4);
}
return v6;
};
ASSetPropFlags(mx.xpath.XPathAPI.prototype, null, 1);
}
#endinitclip
}
movieClip 161 __Packages.mx.xpath.NodePathInfo {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.xpath) {
_global.mx.xpath = new Object();
}
if (!_global.mx.xpath.NodePathInfo) {
var v1 = function (nodeName, filter) {
this.__nodeName = nodeName;
this.__filter = filter;
};
mx.xpath.NodePathInfo = v1;
var v2 = v1.prototype;
v2.__get__nodeName = function () {
return this.__nodeName;
};
v2.__get__filter = function () {
return this.__filter;
};
v2.__nodeName = null;
v2.__filter = null;
v2.addProperty('filter', v2.__get__filter, function () {});
v2.addProperty('nodeName', v2.__get__nodeName, function () {});
ASSetPropFlags(mx.xpath.NodePathInfo.prototype, null, 1);
}
#endinitclip
}
movieClip 162 __Packages.mx.xpath.FilterStack {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.xpath) {
_global.mx.xpath = new Object();
}
if (!_global.mx.xpath.FilterStack) {
var v1 = function (filterVal) {
this.__expr = new Array();
this.__ops = new Array();
var v2 = new mx.utils.StringTokenParser(filterVal);
var v5 = v2.nextToken();
var v4;
var v3 = v2.__get__token();
while (v5 != mx.utils.StringTokenParser.tkEOF) {
if (v3 == '@') {
v5 = v2.nextToken();
v3 = v2.token;
v4 = new mx.xpath.FilterExpr(true, v3, null);
this.__expr.splice(0, 0, v4);
if (v2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (v2.__get__token() == '=') {
v5 = v2.nextToken();
v4.__set__value(v2.token);
}
}
} else {
if (v3 == 'and' || v3 == 'or') {
this.__ops.splice(0, 0, v3);
} else {
if (v3 != ')' && v3 != '(') {
v4 = new mx.xpath.FilterExpr(false, v3, null);
this.__expr.splice(0, 0, v4);
if (v2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (v2.__get__token() == '=') {
v5 = v2.nextToken();
v4.__set__value(v2.token);
}
}
}
}
}
v5 = v2.nextToken();
v3 = v2.token;
}
};
mx.xpath.FilterStack = v1;
var v2 = v1.prototype;
v2.__get__exprs = function () {
return this.__expr;
};
v2.__get__ops = function () {
return this.__ops;
};
v2.addProperty('exprs', v2.__get__exprs, function () {});
v2.addProperty('ops', v2.__get__ops, function () {});
ASSetPropFlags(mx.xpath.FilterStack.prototype, null, 1);
}
#endinitclip
}
movieClip 163 __Packages.mx.utils.StringTokenParser {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.utils) {
_global.mx.utils = new Object();
}
if (!_global.mx.utils.StringTokenParser) {
var v1 = function (source, skipChars) {
this._source = source;
this._skipChars = (skipChars == undefined) ? null : skipChars;
};
mx.utils.StringTokenParser = v1;
var v2 = v1.prototype;
v2.__get__token = function () {
return this._token;
};
v2.getPos = function () {
return this._index;
};
v2.nextToken = function () {
var v4;
var v2;
var v3 = this._source.length;
this.skipBlanks();
if (this._index >= v3) {
return mx.utils.StringTokenParser.tkEOF;
}
v2 = this._source.charCodeAt(this._index);
if (v2 >= 65 && v2 <= 90 || v2 >= 97 && v2 <= 122 || v2 >= 192 && v2 <= Number.POSITIVE_INFINITY || v2 == 95) {
v4 = this._index;
++this._index;
v2 = this._source.charCodeAt(this._index);
for (;;) {
if (!((v2 >= 65 && v2 <= 90 || v2 >= 97 && v2 <= 122 || v2 >= 48 && v2 <= 57 || v2 >= 192 && v2 <= Number.POSITIVE_INFINITY || v2 == 95) && this._index < v3)) break;
++this._index;
v2 = this._source.charCodeAt(this._index);
}
this._token = this._source.substring(v4, this._index);
return mx.utils.StringTokenParser.tkSymbol;
} else {
if (v2 == 34 || v2 == 39) {
++this._index;
v4 = this._index;
v2 = this._source.charCodeAt(v4);
for (;;) {
if (!(v2 != 34 && v2 != 39 && this._index < v3)) break;
++this._index;
v2 = this._source.charCodeAt(this._index);
}
this._token = this._source.substring(v4, this._index);
++this._index;
return mx.utils.StringTokenParser.tkString;
} else {
if (v2 == 45 || v2 >= 48 && v2 <= 57) {
var v5 = mx.utils.StringTokenParser.tkInteger;
v4 = this._index;
++this._index;
v2 = this._source.charCodeAt(this._index);
for (;;) {
if (!(v2 >= 48 && v2 <= 57 && this._index < v3)) break;
++this._index;
v2 = this._source.charCodeAt(this._index);
}
if (this._index < v3) {
if (v2 >= 48 && v2 <= 57 || v2 == 46 || v2 == 43 || v2 == 45 || v2 == 101 || v2 == 69) {
v5 = mx.utils.StringTokenParser.tkFloat;
}
for (;;) {
if (!((v2 >= 48 && v2 <= 57 || v2 == 46 || v2 == 43 || v2 == 45 || v2 == 101 || v2 == 69) && this._index < v3)) break;
++this._index;
v2 = this._source.charCodeAt(this._index);
}
}
this._token = this._source.substring(v4, this._index);
return v5;
} else {
this._token = this._source.charAt(this._index);
++this._index;
return mx.utils.StringTokenParser.tkSymbol;
}
}
}
};
v2.skipBlanks = function () {
if (this._index < this._source.length) {
var v2 = this._source.charAt(this._index);
for (;;) {
if (!(v2 == ' ' || this._skipChars != null && this.skipChar(v2))) break;
++this._index;
v2 = this._source.charAt(this._index);
}
}
};
v2.skipChar = function (ch) {
var v2 = 0;
while (v2 < this._skipChars.length) {
if (ch == this._skipChars[v2]) {
return true;
}
++v2;
}
return false;
};
v1.tkEOF = -1;
v1.tkSymbol = 0;
v1.tkString = 1;
v1.tkInteger = 2;
v1.tkFloat = 3;
v2._index = 0;
v2._token = '';
v2.addProperty('token', v2.__get__token, function () {});
ASSetPropFlags(mx.utils.StringTokenParser.prototype, null, 1);
}
#endinitclip
}
movieClip 164 __Packages.mx.xpath.FilterExpr {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.xpath) {
_global.mx.xpath = new Object();
}
if (!_global.mx.xpath.FilterExpr) {
var v1 = function (attrInit, nameInit, valueInit) {
this.__attr = attrInit;
this.__name = nameInit;
this.__value = valueInit;
};
mx.xpath.FilterExpr = v1;
var v2 = v1.prototype;
v2.__get__attr = function () {
return this.__attr;
};
v2.__set__attr = function (newVal) {
this.__attr = newVal;
return this.__get__attr();
};
v2.__get__name = function () {
return this.__name;
};
v2.__set__name = function (newVal) {
this.__name = newVal;
return this.__get__name();
};
v2.__get__value = function () {
return this.__value;
};
v2.__set__value = function (newVal) {
this.__value = newVal;
return this.__get__value();
};
v2.__attr = false;
v2.__value = null;
v2.__name = null;
v2.addProperty('attr', v2.__get__attr, v2.__set__attr);
v2.addProperty('name', v2.__get__name, v2.__set__name);
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mx.xpath.FilterExpr.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
var CPMStarPoolID = 34992;
var CPMStarSubPoolID = 5;
System.security.allowDomain('server.cpmstar.com');
adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?poolid=' + CPMStarPoolID + '&subpoolid=' + CPMStarSubPoolID);
more_games.onRelease = function () {
getURL('http://bitofgame.com', self);
};
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 21 {
}
movieClip 23 {
}
movieClip 26 {
}
movieClip 42 {
}
movieClip 44 {
}
movieClip 48 {
}
movieClip 49 {
}
button 50 {
on (release) {
_root.play();
}
}
movieClip 52 {
}
movieClip 53 {
}
movieClip 58 {
}
frame 3 {
stop();
more_games.onRelease = function () {
getURL('http://bitofgame.com', self);
};
}
button 59 {
on (release) {
_root.play();
}
}
frame 4 {
function saveScore() {
trace(score + ' score');
var _gameId;
var _userId;
var _sadScore;
var _normalScore;
var v2 = new GatewayScoreArchiver();
v2.scoreSaveURL = 'add-game-score.aspx';
var v4 = new Object();
v4.onData = function (eventObj) {
var v6 = parseInt(eventObj.data.toString());
if (v6 > 0) {
var v1 = new LoadVars();
v1.gameId = _gameId;
v1.userId = _userId;
v1.rank = eventObj.data.toString();
v1.send('ceremony-page.aspx', '_self', 'POST');
} else {
var v4;
var v3;
var v2;
if (isNaN(parseInt(_sadScore)) == false && isNaN(parseInt(_normalScore)) == false) {
v4 = parseInt(_sadScore);
v3 = parseInt(_normalScore);
if (score <= v4) {
v2 = 3;
}
if (score >= v4 + 1 && score <= v3) {
v2 = 1;
}
if (score >= v3 + 1) {
v2 = 2;
}
var v5 = 'changeAvatarMode(' + v2.toString() + ')';
flash.external.ExternalInterface.call('window.setTimeout', v5, 500);
}
}
};
v2.addEventListener('onData', v4);
var v6 = String(flash.external.ExternalInterface.call('GetGameData'));
var v1 = new XML(v6);
v1.ignoreWhite = true;
_gameId = (mx.xpath.XPathAPI.selectSingleNode(v1.firstChild, '/data/gameId')).firstChild.nodeValue.toString();
_userId = (mx.xpath.XPathAPI.selectSingleNode(v1.firstChild, '/data/userId')).firstChild.nodeValue.toString();
_sadScore = (mx.xpath.XPathAPI.selectSingleNode(v1.firstChild, '/data/sadScore')).firstChild.nodeValue.toString();
_normalScore = (mx.xpath.XPathAPI.selectSingleNode(v1.firstChild, '/data/normalScore')).firstChild.nodeValue.toString();
if (isNaN(parseInt(_userId)) == false) {
v2.addGameScore(_gameId, _userId, score.toString());
}
}
more_games.onRelease = function () {
getURL('http://bitofgame.com', self);
};
score = 0;
speed_st = 25;
speed_random = 2;
ease = 10;
lifes = 10;
level_no = 1;
lifes_no = lifes;
}
movieClip 66 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 76 {
frame 15 {
gotoAndPlay(1);
}
}
movieClip 77 {
}
movieClip 85 {
}
movieClip 86 {
}
movieClip 88 {
}
movieClip 89 {
}
movieClip 92 {
}
movieClip 93 {
frame 1 {
stop();
}
frame 8 {
win = 1;
}
}
movieClip 98 {
}
movieClip 100 {
}
movieClip 101 {
}
movieClip 102 {
}
movieClip 109 {
frame 1 {
stop();
}
frame 7 {
gotoAndStop(1);
}
frame 15 {
gotoAndStop(1);
}
}
instance myfish_mc of movieClip 109 {
onClipEvent (load) {
this.drag = true;
oldX = this._x;
oldY = this._y;
}
onClipEvent (enterFrame) {
if (this.drag == true) {
this.targX = _root._xmouse;
this.targY = _root._ymouse;
}
if (this._x != this.targX | this._y != this.targY) {
this._x += (this.targX - this._x) / _root.ease;
this._y += (this.targY - this._y) / _root.ease;
}
}
}
movieClip 124 {
}
movieClip 132 {
frame 1 {
stop();
}
frame 7 {
_root.end();
_root.myfish_mc.swapDepths(_root.myfish_mc_depths);
_root.gotoAndStop('lose');
}
}
movieClip 137 {
}
movieClip 139 {
frame 1 {
function timer_fun() {
++sec;
if (sec == 60) {
sec = 0;
}
if (sec <= 9) {
sec = '0' + sec;
}
if (sec == 0) {
++min;
if (min == 60) {
min = 0;
}
if (min <= 9) {
min = '0' + min;
}
}
if (min == 0 && sec == 0) {
++hour;
if (hour <= 9) {
hour = '0' + hour;
}
}
}
time_interval = setInterval(timer_fun, 1000);
}
}
instance timer of movieClip 139 {
onClipEvent (load) {
function reset() {
delete _root.onEnterFrame;
sec = 0;
min = 0;
hour = 0;
if (sec <= 9) {
sec = '0' + sec;
}
if (min <= 9) {
min = '0' + min;
}
if (hour <= 9) {
hour = '0' + hour;
}
}
t = 1;
reset();
}
onClipEvent (enterFrame) {
if (sec == 20 && min == 1 && hour == 0) {
clearInterval(time_interval);
_root.timeout();
}
}
}
frame 6 {
function new_fish() {
clearInterval(fishes_niterval);
duplicateMovieClip('fishes', 'fishes' + i, i);
eval('speed' + i) = random(speed_random + level_no) + speed_st * level_no / 4;
(eval('fishes' + i)).onEnterFrame = function () {
if (this._currentframe == 1) {
this.gotoAndStop(random(7) + 2);
this.y = 100 + random(400);
while (Math.abs(this.y - lastY) < 150) {
this.y = 100 + random(400);
}
lastY = this.y;
this._y = this.y;
}
this._x += eval('speed' + this._name.substring(6, 20));
if (this._x > 1000) {
removeMovieClip(this);
}
};
++i;
fishes_niterval = setInterval(new_fish, 1700 / level_no + random(1000 / level_no));
}
function timeout() {
clearInterval(fishes_niterval);
this.onEnterFrame = function () {
if ((eval('fishes' + (i - 1)))._x >= (eval('fishes' + (i - 1)))._width + Stage.width) {
end();
if (level_no != 3) {
_root.gotoAndStop('nxt');
} else {
myfish_mc.swapDepths(myfish_mc_depths);
_root.gotoAndStop('win');
delete _root.onEnterFrame;
}
}
};
}
function end() {
clearInterval(timer.time_interval);
m = i;
while (m >= 1) {
removeMovieClip('fishes' + m);
--m;
}
clearInterval(fishes_niterval);
}
more_games.onRelease = function () {
getURL('http://bitofgame.com', self);
};
stop();
myfish_mc_depths = myfish_mc.getDepth();
myfish_mc.swapDepths(10000000);
i = 1;
new_fish();
myfish_mc.onEnterFrame = function () {
s = i;
while (s >= 1) {
if ((eval('fishes' + s)).hitarea.hitTest(_root.myfish_mc.hitarea) && hitOne != s) {
hitOne = s;
if ((eval('fishes' + s)).win != 1) {
_root.myfish_mc.gotoAndPlay('hit');
(eval('fishes' + s))._x += (eval('fishes' + s))._width - this._width;
_root.lives_mc.nextFrame();
} else {
(eval('fishes' + s))._visible = 0;
_root.myfish_mc.gotoAndPlay('win');
_root.score += 10 * level_no;
}
}
--s;
}
};
}
frame 10 {
myfish_mc.swapDepths(myfish_mc_depths);
delete myfish_mc.onEnterFrame;
more_games.onRelease = function () {
getURL('http://bitofgame.com', self);
};
}
frame 14 {
more_games1.onRelease = function () {
getURL('http://bitofgame.com', self);
};
_root.saveScore();
}
movieClip 141 {
}
movieClip 143 {
}
button 150 {
on (release) {
_root.gotoAndPlay('re');
}
}
frame 17 {
more_games1.onRelease = function () {
getURL('http://bitofgame.com', self);
};
}