Frame 1
function createStattooz() {
trace("stats");
var _local2 = _root.Branditz.pSkinPath;
_root.Stattooz = new stattooz(myGameName, myDeveloper, myGenre, myGameType, _local2, myPlayer);
_root.Stattooz.reportEvent("load");
}
var myGameName = "sea_jewels_promo";
var myDeveloper = "3rdsense";
var myGenre = 5;
var myGameType = 1;
System.security.allowDomain("*");
_root.Branditz = new branditz(myGameName, createStattooz);
stop();
Frame 10
_root.loadComplete = function () {
_root.gotoAndStop("intro");
};
stop();
Frame 20
_root.introComplete = function () {
_root.gotoAndStop("version");
};
stop();
Frame 31
var myVersionArray = System.capabilities.version.split(" ");
myVersionArray = myVersionArray[1].split(",");
var myMajorVersion = myVersionArray[0];
if (myMajorVersion < 8) {
gotoAndStop ("update");
} else {
gotoAndStop ("splash");
}
Frame 32
stop();
Instance of Symbol 196 MovieClip in Frame 32
on (release) {
getURL ("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW", "_top");
}
Frame 33
getURL ("javascript:if (top.location != location) top.location.href ='http://www.playaholics.com/';");
this.onEnterFrame = undefined;
if (((((((!((_url.indexOf("file://") == 0) && (_url.indexOf("development") != -1))) && (_url.indexOf("http://www.lightning-games.com/", 0) != 0)) && (_url.indexOf("http://www.macromediadeveloper.com/", 0) != 0)) && (_url.indexOf("http://www.chickstop.com/", 0) != 0)) && (_url.indexOf("http://www.playaholics.com/", 0) != 0)) && (_url.indexOf("http://www.3rdsense.com/", 0) != 0)) && (_url.indexOf("http://admin.3rdsense.com/", 0) != 0)) {
_root.gotoAndStop("pirate");
} else {
_root.gotoAndStop("splash");
}
Frame 34
stop();
Frame 37
play();
_root.pTutorial = 0;
_root.pSound = "on";
_root.toggleSound = function () {
var _local2 = new Sound();
if (_root.pSound == "on") {
_local2.setVolume(0);
_root.pSound = "off";
} else {
_local2.setVolume(100);
_root.pSound = "on";
}
return(_root.pSound);
};
_root.pGraphics = "med";
_root.toggleGraphics = function () {
switch (_root.pGraphics) {
case "high" :
_root.pGraphics = "low";
_root._quality = "LOW";
break;
case "med" :
_root.pGraphics = "high";
_root._quality = "BEST";
break;
case "low" :
_root.pGraphics = "med";
_root._quality = "MEDIUM";
break;
}
return(_root.pGraphics);
};
Instance of Symbol 232 MovieClip in Frame 37
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 236 MovieClip in Frame 37
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Frame 172
gotoAndPlay ("looppoint");
Frame 173
stop();
Instance of Symbol 232 MovieClip in Frame 173
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 236 MovieClip in Frame 173
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 232 MovieClip in Frame 174
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 236 MovieClip in Frame 174
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Frame 175
play();
Instance of Symbol 232 MovieClip in Frame 175
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 236 MovieClip in Frame 175
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Frame 176
game.game_type = _root.game_type;
game.automatic_hint = false;
stop();
Instance of Symbol 435 MovieClip [DiamondMineComponent] "game" in Frame 176
//component parameters
onClipEvent (construct) {
use_quiz = "False";
quiz_data_file = "dino_quiz.txt";
quiz_piece_probability = 0.2;
correct_points = 100;
incorrect_points = -20;
max_quiz_per_level = 3;
game_type = "Timer";
time_percent_change = 0.07;
level_percent_change_increase = 0.04;
collapse_percent_increase = 0.5;
level_collapse_percent_change = 0.05;
minimum_collapse_percent = 0.5;
num_rows = 10;
num_columns = 20;
piece_acceleration = 2;
stage_width = 640;
stage_height = 480;
points_per_piece = 10;
level_point_increase = 5;
}
Frame 177
stop();
score_txt.text = this.score;
if (this.score > 75000) {
_root.Stattooz.reportEvent("endpass");
this.myComment.text = "Hey, You're good!\rSubmit your score and have another go!";
this.myEndChoice.gotoAndStop(2);
} else {
_root.Stattooz.reportEvent("endfail");
}
Instance of Symbol 232 MovieClip in Frame 177
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 236 MovieClip in Frame 177
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Symbol 25 MovieClip [mouth1] Frame 9
stop();
Symbol 25 MovieClip [mouth1] Frame 19
stop();
Symbol 25 MovieClip [mouth1] Frame 29
stop();
Symbol 25 MovieClip [mouth1] Frame 39
stop();
Symbol 25 MovieClip [mouth1] Frame 49
stop();
Symbol 25 MovieClip [mouth1] Frame 60
stop();
Symbol 25 MovieClip [mouth1] Frame 70
stop();
Symbol 25 MovieClip [mouth1] Frame 80
stop();
Symbol 25 MovieClip [mouth1] Frame 90
stop();
Symbol 25 MovieClip [mouth1] Frame 100
stop();
Symbol 25 MovieClip [mouth1] Frame 109
stop();
Symbol 36 MovieClip [eyes1] Frame 9
stop();
Symbol 36 MovieClip [eyes1] Frame 19
stop();
Symbol 36 MovieClip [eyes1] Frame 29
stop();
Symbol 36 MovieClip [eyes1] Frame 39
stop();
Symbol 36 MovieClip [eyes1] Frame 49
stop();
Symbol 36 MovieClip [eyes1] Frame 59
stop();
Symbol 36 MovieClip [eyes1] Frame 69
stop();
Symbol 36 MovieClip [eyes1] Frame 79
stop();
Symbol 36 MovieClip [eyes1] Frame 90
stop();
Symbol 36 MovieClip [eyes1] Frame 100
stop();
Symbol 36 MovieClip [eyes1] Frame 111
stop();
Symbol 46 MovieClip [Preloader] Frame 1
if (_global.System) {
System.security.allowDomain("mochibot.com");
}
_level0.__com_mochibot__swfid = "17f720ec";
iStatus = 0;
setProperty("bolt", _alpha , 0);
Symbol 46 MovieClip [Preloader] Frame 2
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded / iBytesTotal) * 100;
setProperty("bolt", _alpha , iBytes);
setProperty("bolt", _xscale , iBytes);
setProperty("bolt", _yscale , iBytes);
sStatus = Math.round(iBytes) + "% loaded";
Symbol 46 MovieClip [Preloader] Frame 3
if (iBytes < 100) {
gotoAndPlay (2);
} else {
sStatus = "COMPLETE";
}
Symbol 46 MovieClip [Preloader] Frame 5
_root.gotoAndPlay("version");
Symbol 64 MovieClip [preloader 1] Frame 1
stop();
Instance of Symbol 63 MovieClip "swfloader" in Symbol 64 MovieClip [preloader 1] Frame 1
onClipEvent (load) {
function strip_spaces(str) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < str.length) {
if ((str.charAt(_local1) != " ") && (str.charAt(_local1) != ";")) {
_local3 = _local3 + str.charAt(_local1);
}
_local1++;
}
return(_local3);
}
function simple_script(action, timeline) {
action = strip_spaces(action);
if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) {
var _local3 = action.split(".");
var _local5 = _local3.pop();
var _local7 = _local5.indexOf("(");
var _local9 = _local5.indexOf(")");
var _local8 = _local5.substr(0, _local7);
var _local4 = _local5.substr(_local7 + 1, _local9 - (_local7 + 1));
var _local2 = timeline;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2[_local3[_local1]];
_local1++;
}
if (_local4.indexOf("\"") != -1) {
_local4 = _local4.substr(1, _local4.length - 2);
}
_local2[_local8](_local4);
}
}
function execute_action() {
unloaded = true;
_parent._visible = false;
simple_script(_parent.play_action_val, _parent);
}
_parent.anim.gotoAndStop(1);
simple_script(_parent.init_action_val, _parent);
var done = false;
var unloaded = false;
var orig_x = _parent._x;
var orig_y = _parent._y;
var dist_x = (_parent._x + ((_parent._width * 2) / 3));
var dist_y = (_parent._y + ((_parent._height * 2) / 3));
var orig_a = _parent._alpha;
var accel_jump = 0.75;
var slow_factor = _parent.slow_factor_val;
var speed_factor = (1 + (slow_factor / (1 - slow_factor)));
var ready = false;
var perc_fadeout = 0;
_parent.perc._x = _parent.anim._x - (_parent.perc._width / 2);
_parent.perc._y = _parent.anim._y - (_parent.perc._height / 2);
if (slow_factor < 1) {
switch (_parent.xin_motion_val) {
case "Up" :
_parent._y = orig_y + (dist_y * 2);
break;
case "Down" :
_parent._y = orig_y - (dist_y * 2);
break;
case "Left" :
_parent._x = orig_x + (dist_x * 2);
break;
case "Right" :
_parent._x = orig_x - (dist_x * 2);
break;
case "Toward" :
_parent._xscale = (_parent._yscale = 1);
break;
case "None" :
_parent._alpha = 0;
}
} else {
ready = true;
}
}
onClipEvent (enterFrame) {
if (unloaded) {
return(undefined);
}
if (!ready) {
switch (_parent.xin_motion_val) {
case "Toward" :
_parent._xscale = _parent._xscale + ((100 - _parent._xscale) * slow_factor);
_parent._yscale = _parent._xscale;
if (_parent.xin_alphatype_val == "Yes") {
_parent._alpha = Math.round((orig_a / 100) * Math.max(0, Math.min(_parent._xscale, 100)));
}
if (Math.abs(100 - _parent._xscale) < 0.5) {
_parent._xscale = (_parent._yscale = 100);
_parent._alpha = orig_a;
ready = true;
}
break;
default :
_parent._x = _parent._x + ((orig_x - _parent._x) * slow_factor);
_parent._y = _parent._y + ((orig_y - _parent._y) * slow_factor);
if (_parent.xin_alphatype_val == "Yes") {
if (_parent.xin_motion_val == "None") {
_parent._alpha = _parent._alpha + ((orig_a - _parent._alpha) * slow_factor);
} else if (Math.abs(orig_x - _parent._x) > Math.abs(orig_y - _parent._y)) {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x)) * 100);
} else {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y)) * 100);
}
}
if (!(((_parent.xin_motion_val == "None") && (Math.abs(_parent._alpha - orig_a) <= 1)) || (((_parent.xin_motion_val != "None") && (Math.abs(_parent._y - orig_y) < 0.5)) && (Math.abs(_parent._x - orig_x) < 0.5)))) {
break;
}
_parent._x = orig_x;
_parent._y = orig_y;
_parent._alpha = orig_a;
ready = true;
}
} else if (!done) {
var rl = _root.getBytesLoaded();
var rt = (_root.getBytesTotal() * (_parent.perc_req_val / 100));
if ((rl > 10) && (rt > 10)) {
rl = Math.min(rl, rt);
var new_frame = (_parent.anim._currentframe + Math.ceil(((_parent.anim._totalframes * (rl / rt)) - _parent.anim._currentframe) / 4));
new_frame = Math.max(1, new_frame);
if (_parent.show_perc_val == "Yes") {
_parent.perc.text = Math.round(((new_frame - 1) / (_parent.anim._totalframes - 1)) * 100) + " %";
}
if (new_frame != _parent.anim._currentframe) {
_parent.anim.gotoAndStop(new_frame);
}
if ((_parent.anim._totalframes == _parent.anim._currentframe) && (rl >= rt)) {
done = true;
}
}
} else if (slow_factor < 1) {
switch (_parent.xout_motion_val) {
case "Down" :
if (_parent._y <= orig_y) {
_parent._y = orig_y + accel_jump;
}
_parent._y = orig_y + (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y > (orig_y + (dist_y * 2))) {
execute_action();
}
break;
case "Up" :
if (_parent._y >= orig_y) {
_parent._y = orig_y - accel_jump;
}
_parent._y = orig_y - (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y < (orig_y - (dist_y * 2))) {
execute_action();
}
break;
case "Right" :
if (_parent._x <= orig_x) {
_parent._x = orig_x + accel_jump;
}
_parent._x = orig_x + (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x > (orig_x + (dist_x * 2))) {
execute_action();
}
break;
case "Left" :
if (_parent._x >= orig_x) {
_parent._x = orig_x - accel_jump;
}
_parent._x = orig_x - (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x < (orig_x - (dist_x * 2))) {
execute_action();
}
break;
case "Away" :
if ((_parent._xscale >= 100) || (_parent._yscale >= 100)) {
_parent._xscale = (_parent._yscale = 100 - accel_jump);
}
_parent._xscale = (_parent._yscale = Math.max(0.5, 100 - ((100 - _parent._yscale) * speed_factor)));
perc_fadeout = 100 - Math.round(Math.max(0, Math.min(_parent._xscale, 100)));
if (_parent._xscale < 1) {
execute_action();
}
break;
default :
perc_fadeout = perc_fadeout + ((100 - perc_fadeout) * slow_factor);
if (Math.abs(perc_fadeout - 100) > 1) {
break;
}
execute_action();
}
if (!(_parent.xout_alphatype_val === "Yes")) {
} else {
_parent._alpha = (orig_a / 100) * (100 - perc_fadeout);
}
} else {
execute_action();
}
}
Symbol 65 MovieClip [MathExtensions] Frame 1
#initclip 7
_global.Math2 = new Object();
_global.Math2.randf = function (a, b) {
return((Math.random() * (b - a)) + a);
};
_global.Math2.randi = function (a, b) {
return(Math.floor(Math.random() * (b - a)) + Math.floor(a));
};
#endinitclip
Symbol 66 MovieClip [ArrayExtensions] Frame 1
#initclip 8
Array.prototype.swap = function (a, b) {
var _local2 = this[a];
this[a] = this[b];
this[b] = _local2;
};
Array.prototype.swap2D = function (a, b, c, d) {
var _local2 = this[a][b];
this[a][b] = this[c][d];
this[c][d] = _local2;
};
Array.prototype.shuffle = function () {
var _local4 = this.length;
var _local3 = 0;
while (_local3 < _local4) {
this.swap(_local3, _global.math2.randi(0, _local4));
_local3++;
}
};
Array.prototype.rande = function () {
return(this[_global.Math2.randi(0, this.length)]);
};
Array.prototype._push = function (e) {
if (e != undefined) {
this[this.length] = e;
}
};
Array.negated_intersection = function (A, B) {
var _local8 = new Array();
var _local7 = A.length;
var _local6 = B.length;
var _local1 = 0;
while (_local1 < _local7) {
var _local5 = false;
var _local2 = 0;
while (_local2 < _local6) {
if (A[_local1] == B[_local2]) {
_local5 = true;
}
_local2++;
}
if (!_local5) {
_local8._push(A[_local1]);
}
_local1++;
}
var _local2 = 0;
while (_local2 < _local6) {
var _local5 = false;
_local1 = 0;
while (_local1 < _local7) {
if (B[_local2] == A[_local1]) {
_local5 = true;
}
_local1++;
}
if (!_local5) {
_local8._push(B[_local2]);
}
_local2++;
}
return(_local8);
};
Array.prototype.remove_repeats = function () {
var _local5 = new Array();
var _local2 = 0;
while (_local2 < this.length) {
found = false;
var _local3 = 0;
while (_local3 < _local5.length) {
if (typeof(this[_local2]) == "object") {
var _local4 = true;
for (var _local6 in this[_local2]) {
if (this[_local2][_local6] != _local5[_local3][_local6]) {
_local4 = false;
}
}
if (_local4) {
found = true;
}
} else if (this[_local2] == _local5[_local3]) {
found = true;
}
_local3++;
}
if (!found) {
_local5._push(this[_local2]);
}
_local2++;
}
return(_local5);
};
Array.getIndices = function (a, b) {
var _local2 = new Array();
var _local1 = a;
while (_local1 <= b) {
_local2._push(_local1);
_local1++;
}
return(_local2);
};
Array.prototype.return_copy = function () {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < this.length) {
_local3[_local2] = this[_local2];
_local2++;
}
return(_local3);
};
#endinitclip
Symbol 67 MovieClip [MovieClipExtensions] Frame 1
#initclip 4
MovieClip.prototype.playing = false;
MovieClip.prototype.mouseOver = false;
MovieClip.prototype._currentlabel = "";
MovieClip.prototype._play = function () {
this.playing = true;
this.play();
};
MovieClip.prototype._stop = function () {
this.playing = false;
this.stop();
};
MovieClip.prototype._gotoAndPlay = function (frame) {
this.playing = true;
if (typeof(frame) == "string") {
this._currentlabel = frame;
}
this.gotoAndPlay(frame);
};
MovieClip.prototype._gotoAndStop = function (frame) {
this.playing = false;
if (typeof(frame) == "string") {
this._currentlabel = frame;
}
this.gotoAndStop(frame);
};
MovieClip.prototype.hasLabel = function (label) {
this.duplicateMovieClip("__TEMP__", 97324, {_x:-1, _y:-1, _visible:false, _width:1, _height:1});
new Sound(this._parent.__TEMP__).setVolume(0);
this._parent.__TEMP__.gotoAndStop(label);
var _local3 = this._parent.__TEMP__._currentframe;
this._parent.__TEMP__.nextFrame();
this._parent.__TEMP__.gotoAndStop(label);
var _local4 = this._parent.__TEMP__._currentframe;
var _local2 = _local3 == _local4;
this._parent.__TEMP__.removeMovieClip();
return(_local2);
};
MovieClip.prototype.gotoAndPlayRandom = function () {
this._gotoAndPlay(_global.math2.randi(1, this._totalframes + 1));
};
MovieClip.prototype.gotoAndStopRandom = function () {
this._gotoAndStop(_global.math2.randi(1, this._totalframes + 1));
};
#endinitclip
Symbol 77 MovieClip Frame 1
play();
Symbol 77 MovieClip Frame 21
stop();
if (this.pTutorial) {
gotoAndPlay (1);
}
Symbol 78 MovieClip Frame 1
this._stop();
Symbol 78 MovieClip Frame 22
this._gotoAndStop("Default");
Symbol 78 MovieClip Frame 37
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 78 MovieClip Frame 60
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 82 MovieClip Frame 1
this._stop();
Symbol 82 MovieClip Frame 23
this._gotoAndStop("Default");
Symbol 82 MovieClip Frame 36
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 82 MovieClip Frame 60
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 86 MovieClip Frame 1
this._stop();
Symbol 86 MovieClip Frame 24
this._gotoAndStop("Default");
Symbol 86 MovieClip Frame 36
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 86 MovieClip Frame 60
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 90 MovieClip Frame 1
this._stop();
Symbol 90 MovieClip Frame 24
this._gotoAndStop("Default");
Symbol 90 MovieClip Frame 36
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 90 MovieClip Frame 60
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 94 MovieClip Frame 1
this._stop();
Symbol 94 MovieClip Frame 26
this._gotoAndStop("Default");
Symbol 94 MovieClip Frame 44
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 94 MovieClip Frame 67
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 98 MovieClip Frame 1
this._stop();
Symbol 98 MovieClip Frame 28
this._gotoAndStop("Default");
Symbol 98 MovieClip Frame 44
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 98 MovieClip Frame 67
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 102 MovieClip Frame 1
this._stop();
Symbol 102 MovieClip Frame 30
this._gotoAndStop("Default");
Symbol 102 MovieClip Frame 44
if (this.mouseOver) {
this._gotoAndPlay("Clicked Animation");
} else {
this._gotoAndStop("Default");
}
Symbol 102 MovieClip Frame 67
trace("the piece to remove = " + this._parent._parent);
this._x = -10;
this._y = -10;
this._parent._parent.onEnterFrame = function () {
trace("yo!!!");
removeMovieClip(this);
this=undefined;//parameter overwritten
};
Symbol 103 MovieClip [game_piece] Frame 1
this._stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 14
stop();
Symbol 107 MovieClip Frame 24
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 6
play();
Symbol 112 MovieClip Frame 36
this.gotoAndPlay(6);
Symbol 113 MovieClip [PieceComponent] Frame 1
#initclip 5
PieceClass = function () {
if (this._name != undefined) {
this.initialize();
}
};
PieceClass.prototype = new MovieClip();
Object.registerClass("PieceComponent", PieceClass);
PieceClass.prototype.initialize = function () {
this.initialize_variables();
this.initialize_graphics();
};
PieceClass.prototype.initialize_variables = function () {
this.velocity_x = 0;
this.velocity_y = 0;
this.acceleration_x = 0;
this.acceleration_y = 0;
this.onEnterFrame = this.fall_to_position;
this.useHandCursor = false;
};
PieceClass.prototype.initialize_graphics = function () {
this.pieces._gotoAndStop(this.type);
if (this.quiz) {
this.pieces._gotoAndStop(this.pieces._currentframe + (this.pieces._totalframes / 2));
}
};
PieceClass.prototype.rattle = function () {
this._x = this.final_position_x + _global.math2.randf(-5, 5);
this._y = this.final_position_y + _global.math2.randf(-5, 5);
};
PieceClass.prototype.fall_to_position = function () {
this.velocity_x = this.velocity_x + this.acceleration_x;
this.velocity_y = this.velocity_y + this.acceleration_y;
this._x = this._x + this.velocity_x;
this._y = this._y + this.velocity_y;
if (this._y > this.final_position_y) {
if (this.remove_piece) {
this.onEnterFrame = undefined;
var _local3 = true;
for (var _local4 in this._parent) {
if (this._parent[_local4].onEnterFrame != undefined) {
_local3 = false;
}
}
if (_local3 && (this.regenerate)) {
this._parent._parent.initialize_initial_pieces();
} else if (_local3 && (this.game_over)) {
_root.gotoAndStop("Game Over");
} else if (_local3) {
trace("NEXT LEVEL");
this._parent._parent.initialize_level();
}
this.unloadMovie();
} else {
this.velocity_y = 0;
this._y = this.final_position_y;
delete this.onEnterFrame;
this._parent._parent.check_all_stopped();
}
}
};
PieceClass.prototype.wait_to_fall = function () {
if ((this.current_frame++) >= this.num_wait_frames) {
this.onEnterFrame = this.fall_to_position;
}
};
PieceClass.prototype.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.removing)) {
this._parent._parent.clicked_piece(this);
}
};
PieceClass.prototype.slide_new_position = function () {
this._x = this._x + ((this.final_position_x - this._x) / 4);
this._y = this._y + ((this.final_position_y - this._y) / 4);
if ((Math.abs(this._x - this.final_position_x) <= 1) && (Math.abs(this._y - this.final_position_y) <= 1)) {
this.callback();
}
};
PieceClass.prototype.jump_to_position = function () {
this._x = this.final_position_x;
this._y = this.final_position_y;
};
PieceClass.prototype.onRollOver = function () {
if (!_root.game.paused) {
if (this.pieces.sub._currentframe != 1) {
return(undefined);
}
if (this.pieces.sub._currentlabel != "Clicked Animation") {
this._parent._parent.last_clicked_time = getTimer();
this.pieces.sub.mouseOver = true;
this.pieces.sub._gotoAndPlay("Rollover Animation");
}
}
};
PieceClass.prototype.onRollOut = function () {
if (this.pieces.sub._currentlabel != "Clicked Animation") {
this.pieces.sub.mouseOver = false;
}
};
#endinitclip
Symbol 114 MovieClip [TextfieldExtensions] Frame 1
#initclip 3
TextField.prototype.scrollToNumber = function (goToNumber, speed) {
this.current_num = Number(this.text);
this.goToNumber = goToNumber;
var _local2 = (this.goToNumber - this.current_num) / 20;
trace("myStep = " + _local2);
if (this.scroller_interval != undefined) {
clearInterval(this.scroller_interval);
}
this.scroller_interval = setInterval(this, "incrementNumber", speed, this, _local2);
};
TextField.prototype.incrementNumber = function (_txt, thisIncrement) {
if (Number(_txt.text) < Number(_txt.goToNumber)) {
_txt.text = Math.floor(Number(_txt.text) + thisIncrement);
} else {
_txt.text = Number(_txt.goToNumber);
}
if (Number(_txt.text) == Number(_txt.goToNumber)) {
clearInterval(_txt.scroller_interval);
_txt.scroller_interval = undefined;
}
};
#endinitclip
Symbol 115 MovieClip [ObjectExtensions] Frame 1
#initclip 6
Object.prototype.swap = function (a, b) {
var _local2 = this[a];
this[a] = this[b];
this[b] = _local2;
};
#endinitclip
Symbol 118 MovieClip [points_animation] Frame 16
this.unloadMovie();
Symbol 145 MovieClip Frame 30
gotoAndPlay ("normal");
Symbol 145 MovieClip Frame 37
gotoAndPlay ("normal");
Symbol 145 MovieClip Frame 43
stop();
Symbol 145 MovieClip Frame 94
gotoAndPlay ("fried");
Symbol 154 MovieClip [avatar] Frame 28
blinky = 1 + random(5);
if (blinky == 5) {
head.gotoAndPlay("blink");
}
Symbol 154 MovieClip [avatar] Frame 35
blinky = 1 + random(5);
if (blinky == 5) {
head.gotoAndPlay("blink");
}
Symbol 154 MovieClip [avatar] Frame 40
randomove = 1 + random(5);
if (randomove == 5) {
gotoAndPlay ("tilt");
}
Symbol 154 MovieClip [avatar] Frame 65
gotoAndPlay ("standing");
Symbol 154 MovieClip [avatar] Frame 66
head.gotoAndPlay("fizz");
Symbol 154 MovieClip [avatar] Frame 95
stop();
Symbol 154 MovieClip [avatar] Frame 96
head.gotoAndPlay("fizz");
Symbol 154 MovieClip [avatar] Frame 130
stop();
Symbol 479 MovieClip [__Packages.branditz] Frame 0
class branditz
{
var pGameName, pStartFunction, pRequestAddress, pLoadedList, pLoaded, pLoadWhenCached, pCacheKiller, pElements, pPreLoadingHolder, pSkinPath;
function branditz (thisGameName, thisStartFunction) {
_root.mySandbox.text = "Sandbox = " + System.security.sandboxType;
pGameName = thisGameName;
pStartFunction = thisStartFunction;
pRequestAddress = "http://skins.branditz.com";
System.security.allowDomain("*");
pLoadedList = [];
pLoaded = false;
pLoadWhenCached = false;
pCacheKiller = "";
if (_root._url.slice(0, 4) != "file") {
pCacheKiller = "?cache=" + Math.random();
}
getRemotePaths();
}
function getRemotePaths() {
var _local4 = new LoadVars();
var _local3 = new LoadVars();
_local3.pController = this;
var _local5 = pRequestAddress;
_root.myFeedback.text = _root.myFeedback.text + (("OPENING: " + pRequestAddress) + newline);
_local3.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
this.pController.pSkinPath = this.skinurl;
this.pController.pElements = this.elements.split(",");
_root.myFeedback.text = _root.myFeedback.text + ((" LOADED " + this) + newline);
this.pController.pStartFunction();
if (((this.pController.pSkinPath == undefined) || (this.pController.pSkinPath == "noskin")) || (this.pController.pElements.length < 1)) {
_root.gotoAndStop("preloader");
} else {
this.pController.preloadElements();
}
} else {
_root.myFeedback.text = _root.myFeedback.text + " ERROR - \r";
this.pController.pStartFunction();
_root.gotoAndStop("preloader");
}
};
_local3.onHTTPStatus = function (httpStatus) {
_root.myFeedback.text = _root.myFeedback.text + "?\r";
var _local3 = this.pController.reportHttpStatus(httpStatus);
_root.myFeedback.text = _root.myFeedback.text + (((("STATUS = " + httpStatus) + " ") + _local3) + newline);
};
_local4.url = _root._url;
_local4.gamename = pGameName;
_local4.sendAndLoad(_local5, _local3, "POST");
}
function preloadElements() {
if (pElements.length > 0) {
var _local3 = (pPreLoadingHolder = _root.createEmptyMovieClip("myBrandingLoader", _root.getNextHighestDepth()));
_local3._xscale = 1;
_local3._yscale = 1;
_local3._x = -1000;
_local3._y = -1000;
_local3._alpha = 0;
preloadNext(pPreLoadingHolder);
} else {
_root.gotoAndStop("preloader");
}
}
function preloadElement(thisElement, thisContainer) {
_root.myLoadingText.text = "LOADING:" + thisElement;
var _local5 = thisContainer.createEmptyMovieClip(thisElement + "Holder", thisContainer.getNextHighestDepth());
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.myContainer = thisContainer;
_local3.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
_root.myLoadingText.text = "LOADING:" + thisElement;
};
_local3.onLoadInit = function (thisClip) {
trace("Branding Element Preloaded: " + thisClip);
this.myController.addToLoaded(this.myElement);
this.myController.preloadNext(this.myContainer);
};
_local3.onLoadError = function (thisClip) {
this.myController.preloadNext(this.myContainer);
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, _local5);
}
function preloadNext(thisContainer) {
if (pElements.length > 0) {
var _local3 = pElements.splice(0, 1)[0];
preloadElement(_local3, pPreLoadingHolder);
} else {
pPreLoadingHolder.removeMovieClip();
_root.gotoAndStop("preloader");
}
}
function reportHttpStatus(thisStatusNumber) {
var _local1;
if (thisStatusNumber < 100) {
_local1 = "flashError";
} else if (thisStatusNumber < 200) {
_local1 = "informational";
} else if (thisStatusNumber < 300) {
_local1 = "successful";
} else if (thisStatusNumber < 400) {
_local1 = "redirection";
} else if (thisStatusNumber < 500) {
_local1 = "clientError";
} else if (thisStatusNumber < 600) {
_local1 = "serverError";
} else if (thisStatusNumber == undefined) {
_local1 = "File Not found";
}
return(_local1);
}
function addToLoaded(thisElement) {
pLoadedList.push(thisElement);
}
function activateElement(thisElement, thisHolder, thisX, thisY) {
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.X = thisX;
_local3.Y = thisY;
_local3.onLoadInit = function (thisClip) {
_root.myFeedback.text = "Load success - " + this.myElement;
thisClip.myX = this.X;
thisClip.myY = this.Y;
thisClip.gotoAndStop("show");
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, thisHolder);
}
function activatePreloader() {
if (isInArray("preloader", pLoadedList)) {
var _local3 = _root.skin_loader;
var _local5 = _local3._x;
var _local4 = _local3._y;
activateElement("preloader", _local3, _local5, _local4);
}
}
function activateButton() {
if (isInArray("moregames", pLoadedList)) {
var _local3 = _root.skin_moregames;
var _local5 = _local3._x;
var _local4 = _local3._y;
activateElement("moregames", _local3, _local5, _local4);
}
}
function activateGameover() {
if (isInArray("gameover", pLoadedList)) {
var _local3 = _root.skin_gameover;
var _local5 = _local3._x;
var _local4 = _local3._y;
activateElement("gameover", _local3, _local5, _local4);
}
}
function activateCredits() {
if (isInArray("credits", pLoadedList)) {
var _local3 = _root.skin_credits;
var _local5 = _local3._x;
var _local4 = _local3._y;
activateElement("credits", _local3, _local5, _local4);
}
}
function activateIntro() {
if (isInArray("intro", pLoadedList)) {
var _local3 = _root.skin_intro;
var _local5 = _local3._x;
var _local4 = _local3._y;
activateElement("intro", _local3, _local5, _local4);
}
}
function isInArray(thisItem, thisArray) {
var _local2 = false;
for (var _local3 in thisArray) {
if (thisArray[_local3] == thisItem) {
_local2 = true;
break;
}
}
return(_local2);
}
}
Symbol 480 MovieClip [__Packages.stattooz] Frame 0
class stattooz
{
var pGameName, pDeveloper, pGenre, pGameType, pGameSkin, pPlayer, pGameUrl, pStatsPath;
function stattooz (thisGameName, thisDeveloper, thisGenre, thisGameType, thisGameSkin, thisPlayer) {
pGameName = thisGameName;
pDeveloper = thisDeveloper;
pGenre = thisGenre;
pGameType = thisGameType;
pGameSkin = thisGameSkin;
if (pGameSkin == undefined) {
pGameSkin = "noskin";
}
pPlayer = thisPlayer;
if (thisPlayer != "activate") {
pPlayer = System.capabilities.playerType;
}
pGameUrl = _root._url;
pStatsPath = "http://log.stattooz.com";
}
function reportEvent(thisEventName) {
if (pPlayer != "External") {
var _local2 = getEventId(thisEventName);
sendStat(_local2);
}
}
function sendStat(thisEventID) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pEvent = thisEventID;
_local4.pController = this;
_local4.onLoad = function (success) {
var _local3;
if (success) {
if (this.done == "true") {
_local3 = (("SUCCESS - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
}
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Log file not located: ") + this.pStatsPath;
}
trace(_local3);
_root.myFeedback.text = _root.myFeedback.text + (_local3 + newline);
};
_local4.onHTTPStatus = function (httpStatus) {
this.pController.reportHttpStatus(httpStatus);
};
_local3.skin = pGameSkin;
_local3.gamename = pGameName;
_local3.genre = pGenre;
_local3.developer = pDeveloper;
_local3.url = pGameUrl;
_local3.event = thisEventID;
_local3.type = pGameType;
_local3.sendAndLoad(pStatsPath, _local4, "POST");
}
function getEventId(thisEventName) {
var _local1;
if (!isNaN(Number(thisEventName))) {
_local1 = thisEventName;
} else {
switch (thisEventName) {
case "load" :
_local1 = 1;
break;
case "play" :
_local1 = 2;
break;
case "endpass" :
_local1 = 3;
break;
case "endfail" :
_local1 = 4;
break;
case "submit" :
_local1 = 5;
break;
case "moregames" :
_local1 = 6;
break;
case "creditsview" :
_local1 = 7;
break;
case "creditsthrough" :
_local1 = 8;
break;
case "pirate" :
_local1 = 9;
break;
default :
_local1 = 0;
}
}
return(_local1);
}
}
Symbol 173 MovieClip Frame 41
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 100
stop();
Symbol 175 MovieClip Frame 1
_root.Branditz.activatePreloader();
Symbol 175 MovieClip Frame 2
function loadFinished() {
_root.loadComplete();
}
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded / iBytesTotal) * 100;
if (iBytes < 100) {
this.preloader.gotoAndStop(Math.ceil(iBytes));
this.preloader.percent.text = Math.ceil(iBytes);
iLastBytes = iBytes;
} else {
gotoAndStop ("loaded");
this._currentframe == this._totalframes;
this.loadFinished();
}
Symbol 175 MovieClip Frame 3
this.gotoAndPlay("loadloop");
Symbol 175 MovieClip Frame 4
stop();
Symbol 183 MovieClip Frame 1
var myRandom = (Math.random() * 100);
var myTagLine;
if (myRandom < 40) {
myTagLine = "Games that hook you";
} else if (myRandom < 60) {
myTagLine = "Prizes that hook you";
} else if (myRandom < 80) {
myTagLine = "Challenges that hook you";
} else {
myTagLine = "Extras that hook you";
}
myTag.text = myTagLine;
Symbol 183 MovieClip Frame 22
stop();
Symbol 184 MovieClip Frame 1
_root.Branditz.activateIntro();
_quality = "HIGH";
mascot.gotoAndPlay("fried");
gotoAndPlay(_currentframe - 1);
Symbol 184 MovieClip Frame 25
mascot.gotoAndPlay("plugin");
Symbol 184 MovieClip Frame 195
_root.introComplete();
stop();
Symbol 205 Button
on (release) {
getURL ("http://www.playaholics.com", "_top");
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 3
stop();
Symbol 241 Button
on (release) {
_root.Stattooz.reportEvent("play");
_root.game_type = "Timer";
_root.gotoAndStop("game");
}
Symbol 244 Button
on (release) {
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("909a7902", this, 10301);
_root.pTutorial = 1;
_root.game_type = "Timer";
_root.gotoAndStop("game");
}
Symbol 247 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 263 MovieClip Frame 1
stop();
this._quality = "BEST";
Symbol 263 MovieClip Frame 2
play();
Symbol 263 MovieClip Frame 20
stop();
Symbol 264 MovieClip Frame 1
_root.Branditz.activateButton();
Instance of Symbol 263 MovieClip "myButton" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.Stattooz.reportEvent("moregames");
getURL ("http://www.playaholics.com/games/list/");
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Symbol 276 Button
on (release) {
_root.gotoAndStop("splash");
}
Symbol 288 MovieClip Frame 1
_root.Branditz.activateCredits();
_root.Stattooz.reportEvent("creditsview");
Instance of Symbol 248 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.Stattooz.reportEvent("creditsthrough");
getURL ("http://www.3rdsense.com", "_blank");
};
}
Instance of Symbol 248 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.Stattooz.reportEvent("creditsthrough");
getURL ("http://www.3rdsense.com", "_blank");
};
}
Symbol 291 Button
on (release) {
_root.game_type = "Timer";
gotoAndStop (176);
}
Symbol 301 MovieClip Frame 1
this.pFading = false;
stop();
Symbol 301 MovieClip Frame 7
stop();
Symbol 301 MovieClip Frame 8
this.pFading = true;
Symbol 301 MovieClip Frame 14
gotoAndStop (1);
Symbol 304 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 307 Button
on (press) {
var grid = this.get_current_grid();
var j = 0;
while (j < this.num_rows) {
var k = 0;
while (k < this.num_columns) {
var neighbors = this.get_neighbors(j, k);
if (this.check_possible_swaps(grid, j, k, neighbors)) {
var _mc = this.piece_holder[(("piece_" + j) + "_") + k];
_mc.onRollOver();
_mc.onRollOut();
this.score = this.score - 25;
return(undefined);
}
k++;
}
j++;
}
}
Symbol 309 Button
on (press) {
_root.gotoAndStop("Starting Screen", 1);
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 75
this._gotoAndStop(1);
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 22
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 120
this._gotoAndStop(1);
Symbol 365 MovieClip Frame 60
this._gotoAndStop(1);
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
play();
Symbol 374 MovieClip Frame 26
stop();
Symbol 377 Button
on (press) {
_root.gotoAndStop("splash");
}
Symbol 382 MovieClip Frame 1
this._visible = false;
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 10
gotoAndStop (1);
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 9
gotoAndStop (1);
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 10
stop();
Symbol 395 MovieClip Frame 20
gotoAndStop (1);
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 44
gotoAndStop (1);
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 49
gotoAndStop (1);
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 429 MovieClip Frame 30
stop();
Symbol 434 MovieClip Frame 1
stop();
Instance of Symbol 403 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.pTutorial = true;
}
Instance of Symbol 412 MovieClip in Symbol 434 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.game.myTutorial._alpha > 80) && (_root.game.myTutorial._visible)) {
this._parent.gotoAndStop(2);
}
}
Symbol 434 MovieClip Frame 2
stop();
Instance of Symbol 412 MovieClip in Symbol 434 MovieClip Frame 2
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.game.myTutorial._alpha > 80) && (_root.game.myTutorial._visible)) {
this._parent._alpha = 0;
_root.game.paused = false;
}
}
Symbol 434 MovieClip Frame 3
stop();
Instance of Symbol 412 MovieClip in Symbol 434 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.game.myTutorial._alpha > 80) && (_root.game.myTutorial._visible)) {
this._parent._alpha = 0;
_root.game.paused = false;
}
}
Symbol 434 MovieClip Frame 4
stop();
Instance of Symbol 412 MovieClip in Symbol 434 MovieClip Frame 4
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.game.myTutorial._alpha > 80) && (_root.game.myTutorial._visible)) {
this._parent._alpha = 0;
_root.game.paused = false;
_root.myTimerSecs = 2000;
}
}
Instance of Symbol 77 MovieClip in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.pTutorial = true;
}
Instance of Symbol 77 MovieClip in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.pTutorial = true;
}
Instance of Symbol 77 MovieClip in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.pTutorial = true;
}
Symbol 434 MovieClip Frame 5
stop();
Instance of Symbol 412 MovieClip in Symbol 434 MovieClip Frame 5
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.game.myTutorial._alpha > 80) && (_root.game.myTutorial._visible)) {
this._parent._alpha = 0;
_root.game.time_percentage = 99;
_root.animateTimer = setInterval(_root.game, "render_game_timer", 100);
}
}
Symbol 434 MovieClip Frame 6
stop();
Instance of Symbol 412 MovieClip in Symbol 434 MovieClip Frame 6
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.game.myTutorial._alpha > 80) && (_root.game.myTutorial._visible)) {
_root.game.myTutorial._x = -1000;
_root.game.myTutorial._y = -1000;
_root.pTutorial = "done";
this._parent._alpha = 0;
_root.game.paused = false;
_root.game.current_level = -1;
_root.game.score = 0;
_root.game.score_txt.text = 0;
_root.game.initialize_level();
}
}
Symbol 435 MovieClip [DiamondMineComponent] Frame 1
#initclip 9
DiamondMine = function () {
trace("GET HERE?");
if (this._name != undefined) {
this.initialize();
}
};
DiamondMine.prototype = new MovieClip();
Object.registerClass("DiamondMineComponent", DiamondMine);
DiamondMine.prototype.initialize = function () {
this.initialize_variables();
this.initialize_graphics();
this.initialize_level();
this.initializeTutorial();
};
DiamondMine.prototype.initializeTutorial = function () {
if ((_root.pTutorial > 0) && (_root.pTutorial != "done")) {
this.myTutorial._visible = true;
this.paused = true;
this.myTutorial._x = 135;
this.myTutorial._y = 190;
} else {
this.myTutorial._visible = false;
}
};
DiamondMine.prototype.initialize_variables = function () {
this.depth = 0;
this.score = 0;
_root.HorzSpace = this.piece_holder.play_area._width / this.num_columns;
_root.VertSpace = this.piece_holder.play_area._height / this.num_rows;
this.piece_width = 32;
this.piece_height = 32;
this.piece = new Array();
this.current_level = -1;
this.selected_piece0_mc = undefined;
this.selected_piece1_mc = undefined;
var _local3 = this.attachMovie("PieceComponent", "__TEMP__", 123);
this.num_pieces = _local3.pieces._totalframes;
removeMovieClip(_local3);
this.paused = false;
this.level_questions_maxed = false;
this.num_asked_questions = 0;
};
DiamondMine.prototype.initialize_graphics = function () {
};
DiamondMine.prototype.initialize_level = function () {
if (_root.pTutorial == 4) {
_root.game.paused = true;
_root.pTutorial++;
_root.game.myTutorial._alpha = 100;
trace("my tutorial = " + _root.pTutorial);
_root.game.myTutorial.gotoAndStop(_root.pTutorial + 1);
} else {
this.current_level++;
this.time_percentage = 50;
if (_root.pTutorial != 1) {
trace("YOU WANT TO PLAY? " + _root.pTutorial);
this.level_prompt._play();
this.myLevel.text = "LEVEL " + (Number(this.current_level) + 1);
this.level_prompt.field = ("Level " + (this.current_level + 1)) + "!";
}
this.initialize_initial_pieces();
this.piece_holder.backgrounds._play();
this.level_questions_maxed = false;
this.num_asked_questions = 0;
}
};
DiamondMine.prototype.initialize_initial_pieces = function () {
var _local11 = this.calculate_solutionless_grid();
this.pieces = new Array();
var _local5 = this.num_rows - 1;
while (_local5 >= 0) {
var _local4 = 0;
while (_local4 < this.num_columns) {
if (_local5 == (this.num_rows - 1)) {
var _local10 = ((this.piece_holder.play_area._y - this.piece_holder.play_area._height) + (this.num_rows * this.piece_height)) - _global.Math2.randf(0, 50);
} else {
var _local10 = this.piece_holder[(("piece_" + (_local5 + 1)) + "_") + _local4]._y;
}
var _local9 = this.piece_holder.play_area._x + (_local4 * _root.HorzSpace);
var _local8 = (_local10 - (this.piece_height * 2)) - _global.Math2.randf(50, 100);
var _local7 = this.calculate_final_position(_local5, _local4).x;
var _local6 = this.calculate_final_position(_local5, _local4).y;
this.create_piece(_local5, _local4, _local9, _local8, _local7, _local6, _local11[_local5][_local4]);
_local4++;
}
_local5--;
}
};
DiamondMine.prototype.create_piece = function (index_j, index_k, initial_position_x, initial_position_y, final_position_x, final_position_y, type) {
var _local3 = new Object();
_local3.type = type;
_local3.quiz = quiz;
var _local2 = this.piece_holder.attachMovie("PieceComponent", (("piece_" + index_j) + "_") + index_k, this.depth++, _local3);
_local2.index_j = index_j;
_local2.index_k = index_k;
_local2._x = initial_position_x;
_local2._y = initial_position_y;
_local2.final_position_x = final_position_x;
_local2.final_position_y = final_position_y;
_local2.acceleration_y = this.piece_acceleration;
};
DiamondMine.prototype.clicked_piece = function (piece_mc) {
trace("piece clicked");
if (_root.pTutorial == 3) {
return(undefined);
}
if (this.paused) {
return(undefined);
}
if (this.check_for_movement()) {
return(undefined);
}
this.last_clicked_time = getTimer();
if (piece_mc.matchRing._alpha < 80) {
if (piece_mc.selector_mc._currentframe != 1) {
this.unselect_piece(piece_mc);
} else if (this.selected_piece0_mc != undefined) {
this.select_piece(piece_mc);
this.evaluate_player_selection();
this.play_sound("egg_move_sound");
} else {
trace("no pieces selected");
this.select_piece(piece_mc);
_root.game.playSound("Select");
}
}
};
DiamondMine.prototype.unselect_piece = function (piece_mc, custom_animation) {
piece_mc.selector_mc._gotoAndStop(1);
if (!custom_animation) {
piece_mc.pieces.sub._gotoAndStop("Default");
}
if (piece_mc == this.selected_piece0_mc) {
this.selected_piece0_mc = undefined;
}
if (piece_mc == this.selected_piece1_mc) {
this.selected_piece1_mc = undefined;
}
};
DiamondMine.prototype.select_piece = function (piece_mc) {
piece_mc.selector_mc._gotoAndPlay(2);
piece_mc.pieces.sub._gotoAndPlay("Clicked Animation");
if (this.selected_piece0_mc == undefined) {
this.selected_piece0_mc = piece_mc;
} else {
this.selected_piece1_mc = piece_mc;
}
trace("this.selected_piece0_mc = " + this.selected_piece0_mc);
trace("this.selected_piece1_mc = " + this.selected_piece1_mc);
};
DiamondMine.prototype.evaluate_player_selection = function () {
if (this.adjacent_selections()) {
this.selected_adjacent_pieces();
} else {
this.selected_nonadjacent_pieces();
}
};
DiamondMine.prototype.adjacent_selections = function () {
return(((this.selected_piece0_mc.index_j == this.selected_piece1_mc.index_j) && (Math.abs(this.selected_piece0_mc.index_k - this.selected_piece1_mc.index_k) == 1)) || ((this.selected_piece0_mc.index_k == this.selected_piece1_mc.index_k) && (Math.abs(this.selected_piece0_mc.index_j - this.selected_piece1_mc.index_j) == 1)));
};
DiamondMine.prototype.selected_adjacent_pieces = function () {
this.swap_selected_pieces();
this.selected_piece0_mc.selector_mc._gotoAndStop(1);
this.selected_piece1_mc.selector_mc._gotoAndStop(1);
this.selected_piece0_mc.pieces.sub._gotoAndStop("Default");
this.selected_piece1_mc.pieces.sub._gotoAndStop("Default");
};
DiamondMine.prototype.swap_selected_pieces = function () {
this.swap_selected_indices();
this.swap_selected_instance_names();
this.selected_piece0_mc.onEnterFrame = this.selected_piece0_mc.slide_new_position;
this.selected_piece1_mc.onEnterFrame = this.selected_piece1_mc.slide_new_position;
this.selected_piece0_mc.callback = this.piece_sliding_done_before;
this.selected_piece1_mc.callback = undefined;
this.update_final_position(this.selected_piece0_mc);
this.update_final_position(this.selected_piece1_mc);
};
DiamondMine.prototype.swap_selected_pieces_back = function () {
this.swap_selected_pieces();
this.selected_piece0_mc.callback = this.piece_sliding_done_after;
this.selected_piece1_mc.callback = undefined;
var _local3 = this.selected_piece0_mc;
var _local2 = this.selected_piece1_mc;
if (this.selected_piece0_mc.pieces.sub.hasLabel("Wrong Move")) {
_local3.pieces.sub._gotoAndPlay("Wrong Move");
}
if (this.selected_piece1_mc.pieces.sub.hasLabel("Wrong Move")) {
_local2.pieces.sub._gotoAndPlay("Wrong Move");
}
this.unselect_piece(this.selected_piece0_mc, true);
this.unselect_piece(this.selected_piece1_mc, true);
};
DiamondMine.prototype.swap_selected_indices = function () {
var _local3 = {a:this.selected_piece0_mc.index_j, b:this.selected_piece1_mc.index_j};
var _local2 = {a:this.selected_piece0_mc.index_k, b:this.selected_piece1_mc.index_k};
_local3.swap("a", "b");
_local2.swap("a", "b");
this.selected_piece0_mc.index_j = _local3.a;
this.selected_piece0_mc.index_k = _local2.a;
this.selected_piece1_mc.index_j = _local3.b;
this.selected_piece1_mc.index_k = _local2.b;
};
DiamondMine.prototype.swap_selected_instance_names = function () {
var _local3 = this.selected_piece0_mc._name;
var _local2 = this.selected_piece1_mc._name;
this.selected_piece0_mc._name = "name0";
this.selected_piece1_mc._name = "name1";
this.selected_piece0_mc._name = _local2;
this.selected_piece1_mc._name = _local3;
};
DiamondMine.prototype.piece_sliding_done_before = function () {
_root.game.selected_piece0_mc.onEnterFrame = undefined;
_root.game.selected_piece1_mc.onEnterFrame = undefined;
if (!_root.match) {
var _local5 = this._parent._parent.check_for_match();
if ((_root.pTutorial == 1) && (_local5)) {
_root.game.paused = true;
_root.pTutorial++;
_root.game.myTutorial._alpha = 100;
trace("my tutorial = " + _root.pTutorial);
_root.game.myTutorial.gotoAndStop(_root.pTutorial + 1);
}
} else {
this.unselect_piece(this.selected_piece0_mc, true);
this.unselect_piece(this.selected_piece1_mc, true);
_root.game.selected_piece0_mc = undefined;
_root.game.selected_piece1_mc = undefined;
}
var _local3 = _root.game.calculate_remove_list();
var _local4 = _local3.length - _root.matchCount;
_root.matchCount = _local3.length;
_root.myTimerSecs = _root.myTimerSecs + (_local4 * 1000);
_root.game.highlight_match(_local3);
if (_local4 > 0) {
_root.game.playSound("Match" + Math.ceil(Math.random() * 2));
_root.game.updatePointsFeedback();
if (_root.pTutorial == 2) {
_root.game.paused = true;
_root.pTutorial++;
_root.game.myTutorial._alpha = 100;
_root.game.myTutorial.gotoAndStop(_root.pTutorial + 1);
}
}
};
DiamondMine.prototype.playSound = function (thisSound) {
var _local1 = new Sound();
_local1.attachSound(thisSound);
_local1.start();
};
DiamondMine.prototype.piece_sliding_done_after = function () {
this._parent._parent.stop_all_movement();
};
DiamondMine.prototype.stop_all_movement = function () {
var _local3 = 0;
while (_local3 < this.num_rows) {
var _local2 = 0;
while (_local2 < this.num_columns) {
this.piece_holder[(("piece_" + _local3) + "_") + _local2].onEnterFrame = undefined;
this.piece_holder[(("piece_" + _local3) + "_") + _local2]._x = this.piece_holder[(("piece_" + _local3) + "_") + _local2].final_position_x;
this.piece_holder[(("piece_" + _local3) + "_") + _local2]._y = this.piece_holder[(("piece_" + _local3) + "_") + _local2].final_position_y;
_local2++;
}
_local3++;
}
};
DiamondMine.prototype.check_for_match = function () {
var _local4 = false;
if (this.alreadyHasSolution()) {
_local4 = true;
this.selected_piece0_mc = undefined;
this.selected_piece1_mc = undefined;
_root.matchCount = _root.game.calculate_remove_list().length;
_root.match = true;
_root.game.playSound("Match" + Math.ceil(Math.random() * 2));
var _local3;
if (_root.game.current_level < 4) {
_local3 = 5;
} else if (_root.game.current_level < 8) {
_local3 = 4;
} else if (_root.game.current_level < 12) {
_local3 = 3;
} else if (_root.game.current_level < 12) {
_local3 = 2;
} else {
_local3 = 1;
}
_root.myTimerSecs = (_local3 + (_root.matchCount - 3)) * 1000;
this.matchTimer();
_root.timerID = setInterval(this, "matchTimer", 1000);
this.updatePointsFeedback();
this.displayPointsFeedback();
_root.game.myFreeze.gotoAndPlay(2);
this.playSound("ChainMode");
var _local5 = new Color(_root.game.timer_mc);
_local5.setRGB(Number("0xCCCCCC"));
_root.game.myGlass._alpha = 100;
} else {
this.swap_selected_pieces_back();
}
return(_local4);
};
DiamondMine.prototype.displayPointsFeedback = function () {
this.myPointCounterAnim.gotoAndPlay("reveal");
};
DiamondMine.prototype.hidePointsFeedback = function () {
if (this.myPointCounterAnim._currentframe != 1) {
this.myPointCounterAnim.gotoAndPlay("hide");
}
};
DiamondMine.prototype.updatePointsFeedback = function () {
var _local4 = this.calculate_hor_chains();
var _local3 = this.calculate_ver_chains();
this.myPointCounterAnim.myPointCounter.myChainAnim.myChain.chain_txt.text = "x" + (_local4.length + _local3.length);
_root.chainBonus = _local4.length + _local3.length;
this.myPointCounterAnim.myPointCounter.myChainAnim.gotoAndPlay(2);
var _local5 = this.calculate_chain_points(_local4, _local3);
_root.chainPoints = _local5;
this.myPointCounterAnim.myPointCounter.myPointsAnim.myPoints.points_txt.text = _local5;
this.myPointCounterAnim.myPointCounter.myPointsAnim.gotoAndPlay(2);
var _local6 = this.myPointCounterAnim.myPointCounter.myChainAnim.myChain.chain_txt.getTextFormat();
var _local7 = _local6.getTextExtent("x" + chainBonus);
var _local10 = _local7.textFieldWidth;
this.myPointCounterAnim.myPointCounter.myChainAnim._x = (this.myPointCounterAnim.myPointCounter.myBonusTitle._x + (this.myPointCounterAnim.myPointCounter.myBonusTitle._width / 2)) + (_local10 / 2);
var _local9 = _local6.getTextExtent(_local5);
var _local8 = _local9.textFieldWidth;
this.myPointCounterAnim.myPointCounter.myPointsAnim._x = ((this.myPointCounterAnim.myPointCounter.myPointsTitle._x + (this.myPointCounterAnim.myPointCounter.myPointsTitle._width / 2)) + (_local8 / 2)) - 20;
};
DiamondMine.prototype.calculate_chain_points = function (HorChains, VertChains) {
var _local6 = 0;
var _local7 = 0;
var _local1;
var _local3;
var _local2 = 0;
while (_local2 < HorChains.length) {
_local1 = Number(HorChains[_local2]);
trace("myChainLength = " + _local1);
_local3 = _local1 * ((_local1 + 1) * 5);
_local6 = _local6 + _local3;
_local2++;
}
trace("myHorPoints = " + _local6);
_local2 = 0;
while (_local2 < VertChains.length) {
_local1 = Number(VertChains[_local2]);
_local3 = _local1 * ((_local1 + 1) * 5);
_local7 = _local7 + _local3;
_local2++;
}
var _local8 = _local6 + _local7;
return(_local8);
};
DiamondMine.prototype.matchTimer = function () {
if (!this.paused) {
if (_root.myTimerSecs < 0) {
if (_root.pTutorial == 2) {
_root.game.paused = true;
_root.pTutorial = 3;
_root.game.myTutorial._alpha = 100;
_root.game.myTutorial.gotoAndStop(_root.pTutorial + 1);
} else {
clearInterval(_root.timerID);
this.stop_all_movement();
this.piece_sliding_done_before();
this.evaluate_grid();
_root.match = false;
}
} else {
if (_root.myTimerSecs < 2000) {
_root.game.playSound("Beep1");
} else {
_root.game.playSound("Beep0");
}
this.updatePieceTimers(_root.myTimerSecs);
}
_root.myTimerSecs = _root.myTimerSecs - 1000;
}
};
DiamondMine.prototype.updatePieceTimers = function (thisValue) {
var _local3 = _root.removeList;
var _local2 = 0;
while (_local2 < _local3.length) {
var _local5 = _local3[_local2].j;
var _local4 = _local3[_local2].k;
var _local6 = _root.game.piece_holder[(("piece_" + _local5) + "_") + _local4];
_local6.myBonusTimerAnim.myTimer.timer.text = Math.floor(thisValue / 1000);
_local2++;
}
};
DiamondMine.prototype.evaluate_grid = function () {
this.stop_all_movement();
this.selected_piece0_mc.onEnterFrame = undefined;
this.selected_piece1_mc.onEnterFrame = undefined;
this.unselect_piece(this.selected_piece0_mc);
this.unselect_piece(this.selected_piece1_mc);
if (this.alreadyHasSolution()) {
_root.removing = true;
this.handle_solutions();
} else {
if (arguments.length == 0) {
this.play_sound("egg_move_sound");
}
this.swap_selected_pieces_back();
}
};
DiamondMine.prototype.handle_solutions = function () {
var _local3 = this.calculate_remove_list();
this.tempList = _local3;
this.updatePointsFeedback();
this.update_score(_local3);
this.play_remove_animations(_local3);
_root.matchCount = 0;
};
DiamondMine.prototype.drop_new_peices = function () {
clearInterval(_root.dropInterval);
var _local3 = this.tempList;
trace("remove_list length = " + this.tempList.length);
this.shift_pieces_down(_local3);
this.add_new_pieces(_local3);
this.increase_time_percentage(_local3.length);
this.play_sound(["clear_sound0", "clear_sound1", "clear_sound2"].rande());
};
DiamondMine.prototype.increase_time_percentage = function (num_collapsed_pieces) {
if (this.game_type == "Timer") {
trace("My colour = " + this.timer_mc.bar_mc.myColourAnim);
if (this.timer_mc.bar_mc.myColourAnim._currentframe == 1) {
var _local4 = new Color(_root.game.timer_mc);
_local4.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
_root.game.myGlass._alpha = 50;
this.timer_mc.bar_mc.myColourAnim.gotoAndPlay("tohilight");
}
var _local3 = (this.collapse_percent_increase + this.level_collapse_percent_change) * num_collapsed_pieces;
this.time_percentage = this.time_percentage + _local3;
} else {
this.time_percentage = this.time_percentage + (this.collapse_percent_increase + Math.max((-this.level_collapse_percent_change) * num_collapsed_pieces, this.minimum_collapse_percent));
}
};
DiamondMine.prototype.calculate_remove_list = function () {
var _local4 = new Array();
var _local6 = 0;
while (_local6 < this.num_rows) {
var _local5 = 0;
while (_local5 < this.num_columns) {
var _local3 = this.get_neighborhood(_local6, _local5);
if (((_local3.left.type == _local3.middle.type) && (_local3.middle.type == _local3.right.type)) && (_local3.left.type == _local3.right.type)) {
_local4._push({j:_local3.left.index_j, k:_local3.left.index_k});
_local4._push({j:_local3.middle.index_j, k:_local3.middle.index_k});
_local4._push({j:_local3.right.index_j, k:_local3.right.index_k});
}
if (((_local3.top.type == _local3.middle.type) && (_local3.middle.type == _local3.bottom.type)) && (_local3.top.type == _local3.bottom.type)) {
_local4._push({j:_local3.top.index_j, k:_local3.top.index_k});
_local4._push({j:_local3.middle.index_j, k:_local3.middle.index_k});
_local4._push({j:_local3.bottom.index_j, k:_local3.bottom.index_k});
}
_local5++;
}
_local6++;
}
_root.removeList = _local4.remove_repeats();
return(_root.removeList);
};
DiamondMine.prototype.remove_all = function () {
var _local6 = new Array();
var _local5 = 0;
while (_local5 < this.num_rows) {
var _local4 = 0;
while (_local4 < this.num_columns) {
var _local3 = this.get_neighborhood(_local5, _local4);
_local6._push({j:_local3.middle.index_j, k:_local3.middle.index_k});
_local4++;
}
_local5++;
}
_root.removeList = _local6.remove_repeats();
this.stop_all_movement();
this.unselect_piece(this.selected_piece0_mc);
this.unselect_piece(this.selected_piece1_mc);
this.selected_piece0_mc.onEnterFrame = undefined;
this.selected_piece1_mc.onEnterFrame = undefined;
_root.removing = true;
this.updatePointsFeedback();
this.update_score(_root.removeList);
this.play_remove_animations(_root.removeList);
_root.matchCount = 0;
};
DiamondMine.prototype.calculate_hor_chains = function () {
var _local7 = 0;
var _local3 = 0;
var _local6 = new Array();
var _local8 = new Array();
var _local5 = 0;
while (_local5 < this.num_rows) {
var _local4 = 0;
while (_local4 < this.num_columns) {
var _local2 = this.get_neighborhood(_local5, _local4);
if (((_local2.left.type == _local2.middle.type) && (_local2.middle.type == _local2.right.type)) && (_local2.left.type == _local2.right.type)) {
if (!_local3) {
_local7++;
_local3 = 3;
} else {
_local3++;
}
} else {
if (_local3) {
_local6.push(_local3);
}
_local3 = 0;
}
_local4++;
}
_local5++;
}
return(_local6);
};
DiamondMine.prototype.calculate_ver_chains = function () {
var _local7 = 0;
var _local3 = false;
var _local6 = new Array();
var _local8 = new Array();
var _local5 = 0;
while (_local5 < this.num_columns) {
var _local4 = 0;
while (_local4 < this.num_rows) {
var _local2 = this.get_neighborhood(_local4, _local5);
if (((_local2.top.type == _local2.middle.type) && (_local2.middle.type == _local2.bottom.type)) && (_local2.top.type == _local2.bottom.type)) {
if (!_local3) {
_local7++;
_local3 = 3;
} else {
_local3++;
}
} else {
if (_local3) {
_local6.push(_local3);
}
_local3 = 0;
}
_local4++;
}
_local5++;
}
return(_local6);
};
DiamondMine.prototype.play_remove_animations = function (remove_list) {
_root.game.playSound("Reward" + Math.ceil(Math.random() * 3));
var _local9 = false;
var _local5 = 0;
while (_local5 < remove_list.length) {
var _local7 = remove_list[_local5].j;
var _local6 = remove_list[_local5].k;
var _local4 = this.piece_holder[(("piece_" + _local7) + "_") + _local6];
_local4.IAMDEAD = true;
_local4._name = "__TEMP__" + _global.Math2.randi(0, 10000);
_local4.matchRing.gotoAndPlay("zoom");
_local4.myBonusTimerAnim.myTimer.timer.text = "";
_local4.pieces.sub.gotoAndPlay("Remove Animation");
_local5++;
}
_root.dropInterval = setInterval(this, "drop_new_peices", 700);
};
DiamondMine.prototype.highlight_match = function (remove_list) {
var _local7 = false;
var _local2 = 0;
while (_local2 < remove_list.length) {
var _local5 = remove_list[_local2].j;
var _local4 = remove_list[_local2].k;
var _local3 = this.piece_holder[(("piece_" + _local5) + "_") + _local4];
if (_local3.matchRing._alpha < 80) {
_local3.matchRing._alpha = 100;
_local3.matchRing.gotoAndPlay("flicker");
}
_local2++;
}
};
DiamondMine.prototype.shift_pieces_down = function (remove_list) {
var _local6 = this.get_shifted_columns(remove_list);
var _local5 = 0;
while (_local5 < _local6.length) {
var _local4 = this.num_rows - 2;
while (_local4 >= 0) {
var _local2 = this.piece_holder[(("piece_" + _local4) + "_") + _local6[_local5]];
if (_local2 != undefined) {
var _local3 = false;
while (!_local3) {
if ((this.piece_holder[(("piece_" + (_local2.index_j + 1)) + "_") + _local2.index_k] == undefined) && ((_local2.index_j + 1) < this.num_rows)) {
_local2.index_j++;
_local2._name = (("piece_" + _local2.index_j) + "_") + _local2.index_k;
_local2.final_position_x = this.calculate_final_position(_local2.index_j, _local2.index_k).x;
_local2.final_position_y = this.calculate_final_position(_local2.index_j, _local2.index_k).y;
_local2.onEnterFrame = _local2.fall_to_position;
} else {
_local3 = true;
}
}
}
_local4--;
}
_local5++;
}
};
DiamondMine.prototype.get_shifted_columns = function (remove_list) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < remove_list.length) {
_local3._push(remove_list[_local1].k);
_local1++;
}
return(_local3.remove_repeats());
};
DiamondMine.prototype.get_minimum_rows = function (columns, remove_list) {
var _local7 = new Array();
var _local4 = 0;
while (_local4 < columns.length) {
var _local5 = columns[_local4];
var _local3 = Number.MAX_VALUE;
var _local1 = 0;
while (_local1 < remove_list.length) {
if (remove_list[_local1].k == _local5) {
if (remove_list[_local1].j <= _local3) {
_local3 = remove_list[_local1].j;
}
}
_local1++;
}
_local7[_local4] = _local3;
_local4++;
}
return(_local7);
};
DiamondMine.prototype.get_num_column_pieces = function (shift_columns, remove_list) {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < shift_columns.length) {
_local4[_local2] = 0;
var _local1 = 0;
while (_local1 < remove_list.length) {
if (remove_list[_local1].k == shift_columns[_local2]) {
_local4[_local2]++;
}
_local1++;
}
_local2++;
}
return(_local4);
};
DiamondMine.prototype.shift_above_pieces = function (minimum_rows, shift_columns, num_columns_pieces) {
var _local3 = 0;
while (_local3 < shift_columns.length) {
var _local4 = minimum_rows[_local3] - 1;
while (_local4 >= 0) {
var _local2 = this.piece_holder[(("piece_" + _local4) + "_") + shift_columns[_local3]];
_local2.index_j = _local2.index_j + num_columns_pieces[_local3];
_local2._name = (("piece_" + _local2.index_j) + "_") + _local2.index_k;
_local2.final_position_x = this.calculate_final_position(_local2.index_j, _local2.index_k).x;
_local2.final_position_y = this.calculate_final_position(_local2.index_j, _local2.index_k).y;
_local2.onEnterFrame = _local2.fall_to_position;
_local4--;
}
_local3++;
}
};
DiamondMine.prototype.add_new_pieces = function (remove_list) {
var _local6 = 0;
while (_local6 < this.num_rows) {
var _local4 = 0;
while (_local4 < this.num_columns) {
var _local11 = this.piece_holder[(("piece_" + _local6) + "_") + _local4];
if (_local11 == undefined) {
var _local5 = _local6;
while (_local5 < this.num_rows) {
var _local7 = this.piece_holder[(("piece_" + _local5) + "_") + _local4];
if (_local7 != undefined) {
var _local8 = _local5;
break;
}
_local5++;
}
var _local13 = this.piece_holder.play_area._x + (_local4 * _root.HorzSpace);
var _local12 = ((-this.piece_height) * 0) - ((_local8 - _local6) * _root.VertSpace);
var _local10 = this.calculate_final_position(_local6, _local4).x;
var _local9 = this.calculate_final_position(_local6, _local4).y;
this.create_piece(_local6, _local4, _local13, _local12, _local10, _local9, _global.Math2.randi(1, this.num_pieces + 1));
}
_local4++;
}
_local6++;
}
};
DiamondMine.prototype.selected_nonadjacent_pieces = function () {
trace("UNSELECT - this.selected_piece0_mc = " + this.selected_piece0_mc);
trace("UNSELECT - this.selected_piece1_mc = " + this.selected_piece1_mc);
this.unselect_piece(this.selected_piece0_mc);
this.unselect_piece(this.selected_piece1_mc);
};
DiamondMine.prototype.hasSolution = function () {
return(this.alreadyHasSolution());
};
DiamondMine.prototype.alreadyHasSolution = function () {
var _local4 = 0;
while (_local4 < this.num_rows) {
var _local3 = 0;
while (_local3 < this.num_columns) {
var _local2 = this.get_neighborhood(_local4, _local3);
if ((((_local2.left.type == _local2.middle.type) && (_local2.middle.type == _local2.right.type)) && (_local2.left.type == _local2.right.type)) || (((_local2.top.type == _local2.middle.type) && (_local2.middle.type == _local2.bottom.type)) && (_local2.top.type == _local2.bottom.type))) {
return(true);
}
_local3++;
}
_local4++;
}
return(false);
};
DiamondMine.prototype.hasPossibleSolution = function () {
var _local5 = this.get_current_grid();
var _local3 = 0;
while (_local3 < this.num_rows) {
var _local2 = 0;
while (_local2 < this.num_columns) {
var _local4 = this.get_neighbors(_local3, _local2);
if (this.check_possible_swaps(_local5, _local3, _local2, _local4)) {
return(true);
}
_local2++;
}
_local3++;
}
return(false);
};
DiamondMine.prototype.get_neighbors = function (j, k) {
if ((j == 0) && (k == 0)) {
return([[j + 1, k], [j, k + 1]]);
}
if ((j == 0) && (k == (this.num_columns - 1))) {
return([[j + 1, k], [j, k - 1]]);
}
if ((j == (this.num_rows - 1)) && (k == 0)) {
return([[j - 1, k], [j, k + 1]]);
}
if ((j == (this.num_rows - 1)) && (k == (this.num_columns - 1))) {
return([[j - 1, k], [j, k - 1]]);
}
if (j == 0) {
return([[j, k - 1], [j, k + 1], [j + 1, k]]);
}
if (k == 0) {
return([[j - 1, k], [j + 1, k], [j, k + 1]]);
}
if (j == (this.num_rows - 1)) {
return([[j, k - 1], [j, k + 1], [j - 1, k]]);
}
if (k == (this.num_columns - 1)) {
return([[j - 1, k], [j + 1, k], [j, k - 1]]);
}
return([[j - 1, k], [j + 1, k], [j, k - 1], [j, k + 1]]);
};
DiamondMine.prototype.check_possible_swaps = function (grid, j, k, neighbors) {
var _local2 = 0;
while (_local2 < neighbors.length) {
grid.swap2D(j, k, neighbors[_local2][0], neighbors[_local2][1]);
if (this.gridHasNeighborhoodSolution(grid, j, k)) {
return(true);
}
if (this.gridHasNeighborhoodSolution(grid, j + 1, k)) {
return(true);
}
if (this.gridHasNeighborhoodSolution(grid, j - 1, k)) {
return(true);
}
if (this.gridHasNeighborhoodSolution(grid, j, k + 1)) {
return(true);
}
if (this.gridHasNeighborhoodSolution(grid, j, k - 1)) {
return(true);
}
grid.swap2D(j, k, neighbors[_local2][0], neighbors[_local2][1]);
_local2++;
}
return(false);
};
DiamondMine.prototype.get_current_grid = function () {
var _local4 = new Array();
var _local3 = 0;
while (_local3 < this.num_rows) {
_local4[_local3] = new Array();
var _local2 = 0;
while (_local2 < this.num_columns) {
_local4[_local3][_local2] = this.piece_holder[(("piece_" + _local3) + "_") + _local2].type;
_local2++;
}
_local3++;
}
return(_local4);
};
DiamondMine.prototype.gridHasSolution = function (grid) {
var _local4 = 0;
while (_local4 < this.num_rows) {
var _local3 = 0;
while (_local3 < this.num_columns) {
var _local2 = new Object();
_local2.left = grid[_local4][_local3 - 1];
_local2.right = grid[_local4][_local3 + 1];
_local2.top = grid[_local4 - 1][_local3];
_local2.bottom = grid[_local4 + 1][_local3];
_local2.middle = grid[_local4][_local3];
if ((((_local2.left == _local2.middle) && (_local2.middle == _local2.right)) && (_local2.left == _local2.right)) || (((_local2.top == _local2.middle) && (_local2.middle == _local2.bottom)) && (_local2.top == _local2.bottom))) {
return(true);
}
_local3++;
}
_local4++;
}
return(false);
};
DiamondMine.prototype.gridHasNeighborhoodSolution = function (grid, j, k) {
if (grid[j][k] == undefined) {
return(false);
}
var _local1 = new Object();
_local1.left = grid[j][k - 1];
_local1.right = grid[j][k + 1];
_local1.top = grid[j - 1][k];
_local1.bottom = grid[j + 1][k];
_local1.middle = grid[j][k];
if ((((_local1.left == _local1.middle) && (_local1.middle == _local1.right)) && (_local1.left == _local1.right)) || (((_local1.top == _local1.middle) && (_local1.middle == _local1.bottom)) && (_local1.top == _local1.bottom))) {
return(true);
}
return(false);
};
DiamondMine.prototype.update_final_position = function (piece_mc) {
var _local3 = this.calculate_final_position(piece_mc.index_j, piece_mc.index_k);
piece_mc.final_position_x = _local3.x;
piece_mc.final_position_y = _local3.y;
};
DiamondMine.prototype.calculate_final_position = function (j, k) {
var _local3 = {};
_local3.x = this.piece_holder.play_area._x + (k * _root.HorzSpace);
_local3.y = this.piece_holder.play_area._y + (j * _root.VertSpace);
return(_local3);
};
DiamondMine.prototype.calculate_solutionless_grid = function () {
var _local4 = new Array();
var _local3 = 0;
while (_local3 < this.num_rows) {
_local4[_local3] = new Array();
var _local2 = 0;
while (_local2 < this.num_columns) {
var _local10 = _local4[_local3][_local2 - 1];
var _local7 = _local4[_local3][_local2 + 1];
var _local8 = _local4[_local3 - 1][_local2];
var _local6 = _local4[_local3 + 1][_local2];
var _local5 = Array.getIndices(1, this.num_pieces);
var _local11 = [_local10, _local7, _local8, _local6];
var _local9 = Array.negated_intersection(_local5, _local11);
_local4[_local3][_local2] = _local9.rande();
_local2++;
}
_local3++;
}
return(_local4);
};
DiamondMine.prototype.get_neighborhood = function (j, k) {
var _local2 = new Array();
_local2.middle = this.piece_holder[(("piece_" + j) + "_") + k];
_local2.left = this.piece_holder[(("piece_" + j) + "_") + (k - 1)];
_local2.right = this.piece_holder[(("piece_" + j) + "_") + (k + 1)];
_local2.top = this.piece_holder[(("piece_" + (j - 1)) + "_") + k];
_local2.bottom = this.piece_holder[(("piece_" + (j + 1)) + "_") + k];
return(_local2);
};
DiamondMine.prototype.check_for_movement = function () {
var _local4 = 0;
while (_local4 < this.num_rows) {
var _local2 = 0;
while (_local2 < this.num_columns) {
var _local3 = this.piece_holder[(("piece_" + _local4) + "_") + _local2];
if (_local3.onEnterFrame != undefined) {
return(true);
}
_local2++;
}
_local4++;
}
return(false);
};
DiamondMine.prototype.check_all_stopped = function () {
if (!this.check_for_movement()) {
trace("ALLLLL STOPED");
var _local3 = _root.game.calculate_remove_list();
var _local5 = _local3.length - _root.matchCount;
trace("!!!!!!!!!!!!!!EXTRA MATCHES = " + _local5);
_root.matchCount = _local3.length;
if (_local3.length < 1) {
_root.removing = false;
_root.game.hidePointsFeedback();
_root.game.myFreeze.gotoAndStop(1);
if (_root.pTutorial == 3) {
_root.game.paused = true;
_root.pTutorial = 4;
_root.game.myTutorial._alpha = 100;
_root.game.myTutorial.gotoAndStop(_root.pTutorial + 1);
}
_root.game.kill_temps();
_root.game.paused = false;
} else {
trace("MY REMOVE LIST = " + _local3.length);
_root.game.highlight_match(_local3);
this.evaluate_grid(0);
}
var _local4 = this.hasPossibleSolution();
if (!_local4) {
trace("there was no solution!!!!");
if (this.game_type == "Timer") {
this.new_board();
} else {
this.game_over();
}
}
}
};
DiamondMine.prototype.game_over = function () {
var _local3 = 0;
while (_local3 < this.num_rows) {
var _local2 = 0;
while (_local2 < this.num_columns) {
this.piece_holder[(("piece_" + _local3) + "_") + _local2].game_over = true;
_local2++;
}
_local3++;
}
this.explode_pieces();
this.game_over_prompt._play();
};
DiamondMine.prototype.onEnterFrame = function () {
this.update_game_timer();
this.update_game_properties();
};
DiamondMine.prototype.update_game_timer = function () {
if ((((this.game_type == "Timer") && (!this.paused)) && (!_root.match)) && (_root.game.myLargePointsAnim._currentframe == 1)) {
var _local3 = this.time_percent_change + (this.level_percent_change_increase * this.current_level);
this.time_percentage = this.time_percentage - _local3;
}
this.render_game_timer();
};
DiamondMine.prototype.render_game_timer = function () {
var _local4 = (this.time_percentage / 100) * this.timer_mc.frame_mc._width;
if ((this.timer_mc.bar_mc.myColourAnim._currentframe != 1) && (this.timer_mc.bar_mc._x > _local4)) {
trace("it's higher!");
if (this.timer_mc.bar_mc.myColourAnim.pFading != true) {
this.timer_mc.bar_mc.myColourAnim.gotoAndPlay("toblue");
}
}
this.timer_mc.bar_mc._x = this.timer_mc.bar_mc._x + ((_local4 - this.timer_mc.bar_mc._x) / 10);
if (this.timer_mc.bar_mc._x >= this.timer_mc.frame_mc._width) {
this.next_level();
} else if (this.time_percentage <= 0) {
_global.score = this.score;
_root.gotoAndStop("gameover");
}
if ((_root.animateTimer != undefined) && (_local4 < (this.timer_mc.bar_mc._x + 5))) {
trace("ESCAPE!!");
clearInterval(_root.animateTimer);
_root.animateTimer = undefined;
this.time_percentage = 101;
}
};
DiamondMine.prototype.next_level = function () {
for (var _local5 in this.piece_holder) {
var _local4 = this.piece_holder[_local5];
if (typeof(_local4) == "movieclip") {
if ((_local4._name != "backgrounds") && (_local4._name != "play_area")) {
}
}
}
this.paused = true;
this.myLevelCompleteAnim.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
if (_root.game.current_level < 1) {
_root.game.explode_pieces();
_root.game.initialize_level();
this.time_percentage = 50;
this.onEnterFrame = undefined;
} else {
_global.score = this.score;
_root.gotoAndStop("gameover");
}
}
};
this.myLevelCompleteAnim.gotoAndPlay(2);
_root.game.playSound("Level");
this.time_percentage = 50;
};
DiamondMine.prototype.explode_pieces = function () {
var _local4 = 0;
while (_local4 < this.num_rows) {
var _local2 = 0;
while (_local2 < this.num_columns) {
var _local3 = this.piece_holder[(("piece_" + _local4) + "_") + _local2];
removeMovieClip(_local3);
_local3 = undefined;
_local2++;
}
_local4++;
}
};
DiamondMine.prototype.kill_temps = function () {
for (var _local4 in this.piece_holder) {
var _local2 = this.piece_holder[_local4];
if (typeof(_local2) == "movieclip") {
var _local3 = _local2._name;
if (_local3.slice(0, 8) == "__TEMP__") {
removeMovieClip(_local2);
}
}
}
};
DiamondMine.prototype.update_score = function (remove_list) {
trace("UPDATE score");
var _local3 = _root.chainPoints * _root.chainBonus;
_root.chainPoints = 0;
_root.chainBonus = 0;
this.score = this.score + _local3;
trace("score INCREASE = " + _local3);
this.score_txt.scrollToNumber(Math.round(this.score), 5);
this.myLargePointsAnim.myLargePoints.largePoints.text = "+" + _local3;
this.myLargePointsAnim.gotoAndPlay(2);
};
DiamondMine.prototype.update_game_properties = function () {
_root.score = this.score;
};
DiamondMine.prototype.new_board = function () {
this.new_board_prompt._play();
this.current_level--;
this.explode_pieces();
};
DiamondMine.prototype.pause_game = function () {
this.paused = true;
this.paused_prompt.play();
};
DiamondMine.prototype.unpause_game = function () {
this.paused = false;
this.paused_prompt.play();
};
DiamondMine.prototype.play_sound = function (linkage) {
var _local2 = new Sound(this);
_local2.attachSound(linkage);
_local2.start(0, 1);
};
DiamondMine.prototype.onMouseDown = function () {
};
#endinitclip
this._x = 0;
this._y = 0;
this.tempList = [];
_root.match = false;
_root.timerID;
_root.timerCount;
_root.timerKill;
_root.myTimerSecs;
_root.matchCount = 0;
_root.HorzSpace;
_root.VertSpace;
_root.RemoveCounter;
_root.dropInterval;
_root.removing;
_root.removeList;
_root.chainBonus;
_root.chainPoints;
Instance of Symbol 369 MovieClip "myCheckers" in Symbol 435 MovieClip [DiamondMineComponent] Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
this.cacheAsBitmap = true;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 232 MovieClip in Symbol 435 MovieClip [DiamondMineComponent] Frame 1
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 236 MovieClip in Symbol 435 MovieClip [DiamondMineComponent] Frame 1
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (rollOver) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0xFFFFFF"));
}
on (rollOut) {
var myButColour = new Color(this);
myButColour.setRGB(Number("0x24406B"));
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 383 MovieClip "piece_holder" in Symbol 435 MovieClip [DiamondMineComponent] Frame 1
onClipEvent (keyDown) {
if (Key.isDown(16)) {
trace(_parent.hasPossibleSolution());
} else if (Key.isDown(32)) {
for (var j in this) {
if (typeof(this[j]) == "movieclip") {
trace(this[j]);
}
}
}
}
Instance of Symbol 434 MovieClip "myTutorial" in Symbol 435 MovieClip [DiamondMineComponent] Frame 1
onClipEvent (load) {
}
Symbol 440 Button
on (press) {
_root.Stattooz.reportEvent("play");
this._parent.gotoAndPlay("Starting Screen");
}
Symbol 441 Button
on (release) {
_root.Stattooz.reportEvent("play");
this._parent.gotoAndPlay("Starting Screen");
}
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
stop();
Symbol 478 MovieClip Frame 1
_root.Branditz.activateGameover();
Instance of Symbol 466 MovieClip in Symbol 478 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.Stattooz.reportEvent("moregames");
getURL ("http://www.playaholics.com");
}