STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/62693149?noj=FRM62693149-22DC" width="1" height="1"></div>

12 Swap.swf

This is the info page for
Flash #11251

(Click the ID number above for more basic data on this flash file.)


Text
+20

<P ALIGN="CENTER"><FONT FACE="Arial" SIZE="20" COLOR="#000000"><A HREF="http://www.myfreeweb.nl/funnygames/12swap/more.php" target = "_blank"><B>Powered by 12 Swap</B></A></FONT></P>

Arrange the smiley faces so that there are 3 or more
faces of the same color in a row. To move an smiley
face click on an face and then click on another
face that is to the left, right, above or
below the first face you clicked on. The
two faces will swap positions. Try to
get 3 in a row to earn points and move
to the next level. Have fun!

enter email

Play till you
run out of
moves

Play till you
run out of
moves

Play till you
run out of
moves

Play till you
run out of time

Play till you
run out of time

Play till you
run out of
time

Please choose an option and then
click on the Play button:

Please choose an option and then
click on the Play button:

Resize this movie clip to define
the area the game pieces are
positioned in...
And Remember to give the
component the instance name
"game"...

0

Quiz Question

Correct Answer!

Incorrect Answer!

No More Moves!
New Board...

The game is
paused. Press
"Resume Game" to
start playing
again...

No More Moves!
Game Over!

Time Out Component

We hope you enjoyed this free trial!
Click on the link below for
more games!

<P ALIGN="CENTER"><FONT FACE="Arial" SIZE="20" COLOR="#000000"><A HREF="http://www.myfreeweb.nl/funnygames/12swap/more.php"><B>Powered by 12 Swap</B></A></FONT></P>

0

ActionScript [AS1/AS2]

Instance of Symbol 197 MovieClip in Frame 1
//component parameters onClipEvent (initialize) { xin_motion_val = "Toward"; xin_alphatype_val = "No"; xout_motion_val = "None"; xout_alphatype_val = "No"; perc_req_val = 100; show_perc_val = "Yes"; slow_factor_val = 0.2; init_action_val = "_root.stop();"; play_action_val = "_root.play();"; }
Frame 2
stop();
Instance of Symbol 237 MovieClip in Frame 2
//component parameters onClipEvent (initialize) { home_url = "http://www.myfreeweb.nl/funnygames/12swap/home.php"; more_games_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; game_php_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; }
Frame 3
stop();
Instance of Symbol 237 MovieClip in Frame 3
//component parameters onClipEvent (initialize) { home_url = "http://www.myfreeweb.nl/funnygames/12swap/home.php"; more_games_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; game_php_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; }
Frame 4
game.game_type = _root.game_type; game.automatic_hint = false; stop(); _root._quality = "MEDIUM";
Instance of Symbol 392 MovieClip [DiamondMineComponent] "game" in Frame 4
//component parameters onClipEvent (initialize) { use_quiz = "False"; quiz_data_file = ""; quiz_piece_probability = 0.2; correct_points = 100; incorrect_points = -20; max_quiz_per_level = 3; game_type = "Timer"; time_percent_change = 0.025; level_percent_change_increase = 0.01; collapse_percent_increase = 3; level_collapse_percent_change = 0.5; minimum_collapse_percent = 0.5; num_rows = 8; num_columns = 8; piece_acceleration = 2; stage_width = 640; stage_height = 480; points_per_piece = 10; level_point_increase = 5; }
Instance of Symbol 395 MovieClip in Frame 4
//component parameters onClipEvent (initialize) { wait_time = 180000 /* 0x02BF20 */; frame_label = "Time Out"; }
Frame 5
stop();
Instance of Symbol 237 MovieClip in Frame 5
//component parameters onClipEvent (initialize) { home_url = "http://www.myfreeweb.nl/funnygames/12swap/home.php"; more_games_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; game_php_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; }
Frame 6
stop(); _root._quality = "HIGH";
Instance of Symbol 237 MovieClip in Frame 6
//component parameters onClipEvent (initialize) { home_url = "http://www.myfreeweb.nl/funnygames/12swap/home.php"; more_games_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; game_php_url = "http://www.myfreeweb.nl/funnygames/12swap/more.php"; }
Symbol 10 MovieClip [MathExtensions] Frame 1
#initclip 5 Math.randf = function (a, b) { return((Math.random() * (b - a)) + a); }; Math.randi = function (a, b) { return(Math.floor(Math.random() * (b - a)) + Math.floor(a)); }; #endinitclip
Symbol 11 MovieClip [ArrayExtensions] Frame 1
#initclip 6 Array.prototype.swap = function (a, b) { var t = this[a]; this[a] = this[b]; this[b] = t; }; Array.prototype.swap2D = function (a, b, c, d) { var temp = this[a][b]; this[a][b] = this[c][d]; this[c][d] = temp; }; Array.prototype.shuffle = function () { var len = this.length; var j = 0; while (j < len) { this.swap(j, Math.randi(0, len)); j++; } }; Array.prototype.rande = function () { return(this[Math.randi(0, this.length)]); }; Array.prototype._push = function (e) { if (e != undefined) { this[this.length] = e; } }; Array.negated_intersection = function (A, B) { var _array = new Array(); var a_length = A.length; var b_length = B.length; var j = 0; while (j < a_length) { var found = false; var k = 0; while (k < b_length) { if (A[j] == B[k]) { found = true; } k++; } if (!found) { _array._push(A[j]); } j++; } var k = 0; while (k < b_length) { var found = false; var j = 0; while (j < a_length) { if (B[k] == A[j]) { found = true; } j++; } if (!found) { _array._push(B[k]); } k++; } return(_array); }; Array.prototype.remove_repeats = function () { var _array = new Array(); var j = 0; while (j < this.length) { found = false; var k = 0; while (k < _array.length) { if (typeof(this[j]) == "object") { var equal = true; for (var n in this[j]) { if (this[j][n] != _array[k][n]) { equal = false; } } if (equal) { found = true; } } else if (this[j] == _array[k]) { found = true; } k++; } if (!found) { _array._push(this[j]); } j++; } return(_array); }; Array.getIndices = function (a, b) { var indices = new Array(); var j = a; while (j <= b) { indices._push(j); j++; } return(indices); }; Array.prototype.return_copy = function () { var _array = new Array(); var j = 0; while (j < this.length) { _array[j] = this[j]; j++; } return(_array); }; #endinitclip
Symbol 12 MovieClip [MovieClipExtensions] Frame 1
#initclip 2 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 frame_i = this._parent.__TEMP__._currentframe; this._parent.__TEMP__.nextFrame(); this._parent.__TEMP__.gotoAndStop(label); var frame_f = this._parent.__TEMP__._currentframe; var bool = (frame_i == frame_f); this._parent.__TEMP__.removeMovieClip(); return(bool); }; MovieClip.prototype.gotoAndPlayRandom = function () { this._gotoAndPlay(Math.randi(1, this._totalframes + 1)); }; MovieClip.prototype.gotoAndStopRandom = function () { this._gotoAndStop(Math.randi(1, this._totalframes + 1)); }; #endinitclip
Symbol 36 MovieClip Frame 1
this._stop();
Symbol 36 MovieClip Frame 22
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 36 MovieClip Frame 37
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 36 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 50 MovieClip Frame 1
this._stop();
Symbol 50 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 50 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 50 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 70 MovieClip Frame 1
this._stop();
Symbol 70 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 70 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 70 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 88 MovieClip Frame 1
this._stop();
Symbol 88 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 88 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 88 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 109 MovieClip Frame 1
this._stop();
Symbol 109 MovieClip Frame 25
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 109 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 109 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 129 MovieClip Frame 1
this._stop();
Symbol 129 MovieClip Frame 28
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 129 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 129 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 148 MovieClip Frame 1
this._stop();
Symbol 148 MovieClip Frame 30
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 148 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 148 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 165 MovieClip Frame 1
this._stop();
Symbol 165 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 165 MovieClip Frame 37
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 165 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 166 MovieClip Frame 1
this._stop();
Symbol 166 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 166 MovieClip Frame 37
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 166 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 167 MovieClip Frame 1
this._stop();
Symbol 167 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 167 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 167 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 168 MovieClip Frame 1
this._stop();
Symbol 168 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 168 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 168 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 169 MovieClip Frame 1
this._stop();
Symbol 169 MovieClip Frame 25
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 169 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 169 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 170 MovieClip Frame 1
this._stop();
Symbol 170 MovieClip Frame 28
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 170 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 170 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 171 MovieClip Frame 1
this._stop();
Symbol 171 MovieClip Frame 30
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 171 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 171 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 172 MovieClip [game_piece] Frame 1
this._stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 62
this._gotoAndPlay(2);
Symbol 175 MovieClip [PieceComponent] Frame 1
#initclip 3 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 + Math.randf(-5, 5); this._y = this.final_position_y + Math.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 no_movement = true; for (var j in this._parent) { if (this._parent[j].onEnterFrame != undefined) { no_movement = false; } } if (no_movement && (this.regenerate)) { this._parent._parent.initialize_initial_pieces(); } else if (no_movement && (this.game_over)) { _root.gotoAndStop("Game Over"); } else if (no_movement) { 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)) { 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.onRollOver = function () { 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 176 MovieClip [TextfieldExtensions] Frame 1
#initclip 1 TextField.prototype.scrollToNumber = function (goToNumber, speed) { this.current_num = Number(this.text); this.goToNumber = goToNumber; if (this.scroller_interval != undefined) { clearInterval(this.scroller_interval); } this.scroller_interval = setInterval(this.incrementNumber, speed, this); }; Textfield.prototype.incrementNumber = function (_txt) { if (Number(_txt.text) < Number(_txt.goToNumber)) { _txt.text = Math.floor(Number(_txt.text) + 1); } else { _txt.text = Math.floor(Number(_txt.text) - 1); } if (Number(_txt.text) == Number(_txt.goToNumber)) { clearInterval(_txt.scroller_interval); _txt.scroller_interval = undefined; } }; #endinitclip
Symbol 177 MovieClip [ObjectExtensions] Frame 1
#initclip 4 Object.prototype.swap = function (a, b) { var temp = this[a]; this[a] = this[b]; this[b] = temp; }; #endinitclip
Symbol 180 MovieClip [points_animation] Frame 16
this.unloadMovie();
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip "swfloader" in Symbol 197 MovieClip Frame 1
onClipEvent (load) { function strip_spaces(str) { var _str = new String(""); var j = 0; while (j < str.length) { if ((str.charAt(j) != " ") && (str.charAt(j) != ";")) { _str = _str + str.charAt(j); } j++; } return(_str); } function simple_script(action, timeline) { action = strip_spaces(action); if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) { var sections = action.split("."); var timeline_action = sections.pop(); var first_paren = timeline_action.indexOf("("); var second_paren = timeline_action.indexOf(")"); var timeline_function = timeline_action.substr(0, first_paren); var function_parameter = timeline_action.substr(first_paren + 1, second_paren - (first_paren + 1)); var timeline_reference = timeline; var j = 0; while (j < sections.length) { timeline_reference = timeline_reference[sections[j]]; j++; } if (function_parameter.indexOf("\"") != -1) { function_parameter = function_parameter.substr(1, function_parameter.length - 2); } timeline_reference[timeline_function](function_parameter); } } 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 210 Button
on (release) { this.play(); }
Symbol 225 Button
on (release) { btn_press(); }
Instance of Symbol 227 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) { function btn_press() { getURL (_parent.more_games_url, "_blank"); } }
Instance of Symbol 229 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) { function btn_press() { getURL (_parent.home_url, "_blank"); } }
Instance of Symbol 231 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) { function btn_press() { getURL (((_parent.game_php_url + "?id=") + _root.id) + "&show=scores", "_blank"); } }
Instance of Symbol 233 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) { function btn_press() { getURL ((((_parent.game_php_url + "?id=") + _root.id) + "&friend_email=") + escape(_parent.email), "_blank"); } }
Symbol 247 Button
on (press) { this.gotoAndStop(1); }
Symbol 254 Button
on (press) { this.gotoAndStop(2); }
Symbol 257 MovieClip Frame 1
stop(); _root.game_type = "Normal";
Symbol 257 MovieClip Frame 2
_root.game_type = "Timer";
Symbol 260 Button
on (release) { this.play(); }
Symbol 267 MovieClip Frame 1
this._stop();
Symbol 267 MovieClip Frame 2
this._stop();
Symbol 267 MovieClip Frame 3
this._stop();
Symbol 267 MovieClip Frame 4
this._stop();
Symbol 267 MovieClip Frame 5
this._stop();
Symbol 271 MovieClip Frame 1
this._visible = false;
Symbol 277 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 287 Button
on (press) { _root.gotoAndStop("Starting Screen"); }
Symbol 291 Button
on (press) { if (_parent.paused_prompt._currentframe != 1) { return(undefined); } _parent.pause_game(); this.nextFrame(); }
Symbol 293 Button
on (press) { if (_parent.paused_prompt._currentframe != 22) { return(undefined); } _parent.unpause_game(); this.prevFrame(); }
Symbol 294 MovieClip Frame 1
stop();
Symbol 296 Button
on (press) { nextFrame(); }
Symbol 298 Button
on (press) { prevFrame(); }
Symbol 299 MovieClip Frame 1
stop(); delete this.onEnterFrame;
Symbol 299 MovieClip Frame 2
this.onEnterFrame = function () { stopAllSounds(); };
Symbol 301 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 316 Button
on (press) { _parent._parent.evaluate_answer(this); }
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 22
stop(); _parent.fill_quiz_form();
Symbol 336 MovieClip Frame 59
this._gotoAndStop(1);
Symbol 336 MovieClip Frame 96
this._gotoAndStop(1);
Symbol 351 MovieClip Frame 60
this._gotoAndStop(1);
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 75
this._gotoAndStop(1);
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 22
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 120
this._gotoAndStop(1);
Symbol 392 MovieClip [DiamondMineComponent] Frame 1
#initclip 7 DiamondMine = function () { if (this._name != undefined) { this.initialize(); } }; DiamondMine.prototype = new MovieClip(); Object.registerClass("DiamondMineComponent", DiamondMine); DiamondMine.prototype.initialize = function () { this.load_quiz_data(); this.initialize_variables(); this.initialize_graphics(); this.initialize_level(); }; DiamondMine.prototype.load_quiz_data = function () { this.quiz_loader = new LoadVars(); this.quiz_loader.load(this.quiz_data_file); this.quiz_loader.onLoad = function () { this.loaded_successfully = arguments[0]; this.num_choices_per_question = Number(this.num_choices_per_question); this.questions = new Array(); var j = 0; while (j >= 0) { if (this[("question" + j) + "_text"] == undefined) { break; } this.questions[j] = new Object(); this.questions[j].text = this[("question" + j) + "_text"]; this.questions[j].answer = Number(this[("question" + j) + "_answer"]); this.questions[j].choices = new Array(); var k = 0; while (k < this.num_choices_per_question) { this.questions[j].choices[k] = this[(("question" + j) + "_choice") + k]; k++; } j++; } this.current_question_list = this.questions.return_copy(); this.questions.shuffle(); this.current_question_list.shuffle(); }; }; DiamondMine.prototype.initialize_variables = function () { this.depth = 0; this.score = 0; this.piece_width = this.piece_holder.play_area._width / this.num_columns; this.piece_height = this.piece_holder.play_area._height / this.num_rows; this.piece = new Array(); this.current_level = -1; this.selected_piece0_mc = undefined; this.selected_piece1_mc = undefined; var _mc = this.attachMovie("PieceComponent", "__TEMP__", 123); this.num_pieces = _mc.pieces._totalframes / 2; _mc.unloadMovie(); this.paused = false; this.level_questions_maxed = false; this.num_asked_questions = 0; }; DiamondMine.prototype.initialize_graphics = function () { }; DiamondMine.prototype.initialize_level = function () { this.current_level++; this.time_percentage = 50; this.level_prompt._play(); 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; this.paused = false; }; DiamondMine.prototype.initialize_initial_pieces = function () { var grid = this.calculate_solutionless_grid(); this.pieces = new Array(); var j = (this.num_rows - 1); while (j >= 0) { var k = 0; while (k < this.num_columns) { if (j == (this.num_rows - 1)) { var prev_y = (((this.piece_holder.play_area._y - this.piece_holder.play_area._height) + (this.num_rows * this.piece_height)) - Math.randf(0, 50)); } else { var prev_y = this.piece_holder[(("piece_" + (j + 1)) + "_") + k]._y; } var initial_position_x = (this.piece_holder.play_area._x + (k * this.piece_width)); var initial_position_y = ((prev_y - (this.piece_height * 2)) - Math.randf(50, 100)); var final_position_x = this.calculate_final_position(j, k).x; var final_position_y = this.calculate_final_position(j, k).y; this.create_piece(j, k, initial_position_x, initial_position_y, final_position_x, final_position_y, grid[j][k]); k++; } j--; } }; DiamondMine.prototype.create_piece = function (index_j, index_k, initial_position_x, initial_position_y, final_position_x, final_position_y, type) { if (((this.use_quiz == "True") && (this.quiz_loader.loaded_successfully)) && (!this.level_questions_maxed)) { if (Math.random() <= this.quiz_piece_probability) { var quiz = true; } else { var quiz = false; } } var _mc = this.piece_holder.attachMovie("PieceComponent", (("piece_" + index_j) + "_") + index_k, this.depth++, {type:type, quiz:quiz}); _mc.index_j = index_j; _mc.index_k = index_k; _mc._width = this.piece_width; _mc._height = this.piece_height; _mc._x = initial_position_x; _mc._y = initial_position_y; _mc.final_position_x = final_position_x; _mc.final_position_y = final_position_y; _mc.acceleration_y = this.piece_acceleration; }; DiamondMine.prototype.clicked_piece = function (piece_mc) { if (this.paused) { return(undefined); } if (this.check_for_movement()) { return(undefined); } this.last_clicked_time = getTimer(); 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 { this.select_piece(piece_mc); } }; DiamondMine.prototype.unselect_piece = function (piece_mc, custom_animation) { piece_mc.selector_mc._gotoAndStop(1); if (!custom_animation) { piece_mc.pieces.sub._gotoAndStop("Default"); } this.selected_piece0_mc.pieces.sub._gotoAndPlay("Remove Animation"); this.selected_piece1_mc.pieces.sub._gotoAndPlay("Remove Animation"); 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; piece_mc.selector_mc._gotoAndPlay(this.selected_piece0_mc.selector_mc._currentframe); } }; 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 mc0 = this.selected_piece0_mc; var mc1 = this.selected_piece1_mc; if (this.selected_piece0_mc.pieces.sub.hasLabel("Wrong Move")) { mc0.pieces.sub._gotoAndPlay("Wrong Move"); } if (this.selected_piece1_mc.pieces.sub.hasLabel("Wrong Move")) { mc1.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 indices_j = {a:this.selected_piece0_mc.index_j, b:this.selected_piece1_mc.index_j}; var indices_k = {a:this.selected_piece0_mc.index_k, b:this.selected_piece1_mc.index_k}; indices_j.swap("a", "b"); indices_k.swap("a", "b"); this.selected_piece0_mc.index_j = indices_j.a; this.selected_piece0_mc.index_k = indices_k.a; this.selected_piece1_mc.index_j = indices_j.b; this.selected_piece1_mc.index_k = indices_k.b; }; DiamondMine.prototype.swap_selected_instance_names = function () { var name0 = this.selected_piece0_mc._name; var name1 = this.selected_piece1_mc._name; this.selected_piece0_mc._name = "name0"; this.selected_piece1_mc._name = "name1"; this.selected_piece0_mc._name = name1; this.selected_piece1_mc._name = name0; }; DiamondMine.prototype.piece_sliding_done_before = function () { this._parent._parent.evaluate_grid(); }; DiamondMine.prototype.piece_sliding_done_after = function () { this._parent._parent.stop_all_movement(); }; DiamondMine.prototype.stop_all_movement = function () { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { this.piece_holder[(("piece_" + j) + "_") + k].onEnterFrame = undefined; k++; } j++; } }; DiamondMine.prototype.evaluate_grid = function () { this.selected_piece0_mc.onEnterFrame = undefined; this.selected_piece1_mc.onEnterFrame = undefined; if (this.alreadyHasSolution()) { this.handle_solutions(); } else { if (arguments.length == 0) { this.play_sound("egg_move_sound"); } this.swap_selected_pieces_back(); } this.selected_piece0_mc = undefined; this.selected_piece1_mc = undefined; }; DiamondMine.prototype.handle_solutions = function () { var remove_list = this.calculate_remove_list(); this.update_score(remove_list); this.play_remove_animations(remove_list); this.shift_pieces_down(remove_list); this.add_new_pieces(remove_list); this.increase_time_percentage(remove_list.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") { this.time_percentage = this.time_percentage + (this.collapse_percent_increase + (this.level_collapse_percent_change * num_collapsed_pieces)); } 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 remove_list = new Array(); var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var near = this.get_neighborhood(j, k); if (((near.left.type == near.middle.type) && (near.middle.type == near.right.type)) && (near.left.type == near.right.type)) { remove_list._push({j:near.left.index_j, k:near.left.index_k}); remove_list._push({j:near.middle.index_j, k:near.middle.index_k}); remove_list._push({j:near.right.index_j, k:near.right.index_k}); } else if (((near.top.type == near.middle.type) && (near.middle.type == near.bottom.type)) && (near.top.type == near.bottom.type)) { remove_list._push({j:near.top.index_j, k:near.top.index_k}); remove_list._push({j:near.middle.index_j, k:near.middle.index_k}); remove_list._push({j:near.bottom.index_j, k:near.bottom.index_k}); } k++; } j++; } return(remove_list.remove_repeats()); }; DiamondMine.prototype.play_remove_animations = function (remove_list) { var quiz_piece = false; var j = 0; while (j < remove_list.length) { var index_j = remove_list[j].j; var index_k = remove_list[j].k; var _mc = this.piece_holder[(("piece_" + index_j) + "_") + index_k]; _mc.IAMDEAD = true; _mc._name = "__TEMP__" + Math.randi(0, 10000); _mc.pieces.sub._gotoAndPlay("Remove Animation"); if (_mc.quiz) { quiz_piece = true; } _mc._x = -1000; _mc._y = -1000; _mc._visible = false; _mc.unloadMovie(); j++; } if (quiz_piece && (!this.level_questions_maxed)) { this.create_quiz(); } }; DiamondMine.prototype.create_quiz = function () { if (this.new_board_prompt.playing) { return(undefined); } if (this.quiz_prompt._currentframe != 1) { return(undefined); } this.paused = true; this.quiz_prompt._play(); this.quiz_prompt.swapDepths(this.depth + 5000); this.num_asked_questions++; if (this.num_asked_questions >= this.max_quiz_per_level) { this.level_questions_maxed = true; var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var _mc = this.piece_holder[(("piece_" + j) + "_") + k]; if (_mc.pieces._currentframe > this.num_pieces) { _mc.pieces.gotoAndStop(_mc.pieces._currentframe - this.num_pieces); } k++; } j++; } } }; DiamondMine.prototype.fill_quiz_form = function () { if (this.quiz_loader.current_question_list.length == 0) { this.quiz_loader.current_question_list = this.quiz_loader.questions.return_copy(); this.quiz_loader.current_question_list.shuffle(); } var question = this.quiz_loader.current_question_list.pop(); this.quiz_prompt.question = question.text; var j = 0; while (j < this.quiz_loader.num_choices_per_question) { var choice_mc = this.quiz_prompt["choice" + j]; choice_mc.choice = String.fromCharCode("A".charCodeAt(0) + j); choice_mc.field = question.choices[j]; if (j == question.answer) { choice_mc.correct = true; } j++; } }; DiamondMine.prototype.evaluate_answer = function (choice_mc) { this.paused = false; if (choice_mc.correct) { this.correct_answer(); } else { this.incorrect_answer(); } }; DiamondMine.prototype.correct_answer = function () { this.score = this.score + this.correct_points; this.score_txt.scrollToNumber(Math.round(this.score), 10); this.quiz_prompt._gotoAndPlay("Correct Answer"); }; DiamondMine.prototype.incorrect_answer = function () { this.score = this.score + this.incorrect_points; this.score_txt.scrollToNumber(Math.round(this.score), 10); this.quiz_prompt._gotoAndPlay("Incorrect Answer"); }; DiamondMine.prototype.shift_pieces_down = function (remove_list) { var shift_columns = this.get_shifted_columns(remove_list); var k = 0; while (k < shift_columns.length) { var j = (this.num_rows - 2); while (j >= 0) { var _mc = this.piece_holder[(("piece_" + j) + "_") + shift_columns[k]]; if (_mc != undefined) { var done = false; while (!done) { if ((this.piece_holder[(("piece_" + (_mc.index_j + 1)) + "_") + _mc.index_k] == undefined) && ((_mc.index_j + 1) < this.num_rows)) { _mc.index_j++; _mc._name = (("piece_" + _mc.index_j) + "_") + _mc.index_k; _mc.final_position_x = this.calculate_final_position(_mc.index_j, _mc.index_k).x; _mc.final_position_y = this.calculate_final_position(_mc.index_j, _mc.index_k).y; _mc.onEnterFrame = _mc.fall_to_position; } else { done = true; } } } j--; } k++; } }; DiamondMine.prototype.get_shifted_columns = function (remove_list) { var columns = new Array(); var j = 0; while (j < remove_list.length) { columns._push(remove_list[j].k); j++; } return(columns.remove_repeats()); }; DiamondMine.prototype.get_minimum_rows = function (columns, remove_list) { var min_rows = new Array(); var j = 0; while (j < columns.length) { var c = columns[j]; var minimum = Number.MAX_VALUE; var n = 0; while (n < remove_list.length) { if (remove_list[n].k == c) { if (remove_list[n].j <= minimum) { minimum = remove_list[n].j; } } n++; } min_rows[j] = minimum; j++; } return(min_rows); }; DiamondMine.prototype.get_num_column_pieces = function (shift_columns, remove_list) { var num_pieces = new Array(); var j = 0; while (j < shift_columns.length) { num_pieces[j] = 0; var k = 0; while (k < remove_list.length) { if (remove_list[k].k == shift_columns[j]) { num_pieces[j]++; } k++; } j++; } return(num_pieces); }; DiamondMine.prototype.shift_above_pieces = function (minimum_rows, shift_columns, num_columns_pieces) { var k = 0; while (k < shift_columns.length) { var j = (minimum_rows[k] - 1); while (j >= 0) { var _mc = this.piece_holder[(("piece_" + j) + "_") + shift_columns[k]]; _mc.index_j = _mc.index_j + num_columns_pieces[k]; _mc._name = (("piece_" + _mc.index_j) + "_") + _mc.index_k; _mc.final_position_x = this.calculate_final_position(_mc.index_j, _mc.index_k).x; _mc.final_position_y = this.calculate_final_position(_mc.index_j, _mc.index_k).y; _mc.onEnterFrame = _mc.fall_to_position; j--; } k++; } }; DiamondMine.prototype.add_new_pieces = function (remove_list) { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var _mc = this.piece_holder[(("piece_" + j) + "_") + k]; if (_mc == undefined) { var n = j; while (n < this.num_rows) { var piece_mc = this.piece_holder[(("piece_" + n) + "_") + k]; if (piece_mc != undefined) { var bottom = n; break; } n++; } var initial_position_x = (this.piece_holder.play_area._x + (k * this.piece_width)); var initial_position_y = (((-this.piece_height) * 0) - ((bottom - j) * this.piece_height)); var final_position_x = this.calculate_final_position(j, k).x; var final_position_y = this.calculate_final_position(j, k).y; this.create_piece(j, k, initial_position_x, initial_position_y, final_position_x, final_position_y, Math.randi(1, this.num_pieces + 1)); } k++; } j++; } }; DiamondMine.prototype.selected_nonadjacent_pieces = function () { 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 j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var near = this.get_neighborhood(j, k); if ((((near.left.type == near.middle.type) && (near.middle.type == near.right.type)) && (near.left.type == near.right.type)) || (((near.top.type == near.middle.type) && (near.middle.type == near.bottom.type)) && (near.top.type == near.bottom.type))) { return(true); } k++; } j++; } return(false); }; DiamondMine.prototype.hasPossibleSolution = function () { 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)) { return(true); } k++; } j++; } 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 n = 0; while (n < neighbors.length) { grid.swap2D(j, k, neighbors[n][0], neighbors[n][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[n][0], neighbors[n][1]); n++; } return(false); }; DiamondMine.prototype.get_current_grid = function () { var grid = new Array(); var j = 0; while (j < this.num_rows) { grid[j] = new Array(); var k = 0; while (k < this.num_columns) { grid[j][k] = this.piece_holder[(("piece_" + j) + "_") + k].type; k++; } j++; } return(grid); }; DiamondMine.prototype.gridHasSolution = function (grid) { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var near = new Object(); near.left = grid[j][k - 1]; near.right = grid[j][k + 1]; near.top = grid[j - 1][k]; near.bottom = grid[j + 1][k]; near.middle = grid[j][k]; if ((((near.left == near.middle) && (near.middle == near.right)) && (near.left == near.right)) || (((near.top == near.middle) && (near.middle == near.bottom)) && (near.top == near.bottom))) { return(true); } k++; } j++; } return(false); }; DiamondMine.prototype.gridHasNeighborhoodSolution = function (grid, j, k) { if (grid[j][k] == undefined) { return(false); } var near = new Object(); near.left = grid[j][k - 1]; near.right = grid[j][k + 1]; near.top = grid[j - 1][k]; near.bottom = grid[j + 1][k]; near.middle = grid[j][k]; if ((((near.left == near.middle) && (near.middle == near.right)) && (near.left == near.right)) || (((near.top == near.middle) && (near.middle == near.bottom)) && (near.top == near.bottom))) { return(true); } return(false); }; DiamondMine.prototype.update_final_position = function (piece_mc) { var position = this.calculate_final_position(piece_mc.index_j, piece_mc.index_k); piece_mc.final_position_x = position.x; piece_mc.final_position_y = position.y; }; DiamondMine.prototype.calculate_final_position = function (j, k) { var coordinate = {}; coordinate.x = this.piece_holder.play_area._x + (k * this.piece_width); coordinate.y = this.piece_holder.play_area._y + (j * this.piece_height); return(coordinate); }; DiamondMine.prototype.calculate_solutionless_grid = function () { var grid = new Array(); var j = 0; while (j < this.num_rows) { grid[j] = new Array(); var k = 0; while (k < this.num_columns) { var left = grid[j][k - 1]; var right = grid[j][k + 1]; var top = grid[j - 1][k]; var bottom = grid[j + 1][k]; var possibilities = Array.getIndices(1, this.num_pieces); var non_possibilities = [left, right, top, bottom]; var different_pieces = Array.negated_intersection(possibilities, non_possibilities); grid[j][k] = different_pieces.rande(); k++; } j++; } return(grid); }; DiamondMine.prototype.get_neighborhood = function (j, k) { var neighborhood = new Array(); neighborhood.middle = this.piece_holder[(("piece_" + j) + "_") + k]; neighborhood.left = this.piece_holder[(("piece_" + j) + "_") + (k - 1)]; neighborhood.right = this.piece_holder[(("piece_" + j) + "_") + (k + 1)]; neighborhood.top = this.piece_holder[(("piece_" + (j - 1)) + "_") + k]; neighborhood.bottom = this.piece_holder[(("piece_" + (j + 1)) + "_") + k]; return(neighborhood); }; DiamondMine.prototype.check_for_movement = function () { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var _mc = this.piece_holder[(("piece_" + j) + "_") + k]; if (_mc.onEnterFrame != undefined) { return(true); } k++; } j++; } return(false); }; DiamondMine.prototype.check_all_stopped = function () { if (!this.check_for_movement()) { this.evaluate_grid(0); var bool = this.hasPossibleSolution(); if (!bool) { if (this.game_type == "Timer") { this.new_board(); } else { this.game_over(); } } } }; DiamondMine.prototype.game_over = function () { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { this.piece_holder[(("piece_" + j) + "_") + k].game_over = true; k++; } j++; } this.explode_pieces(); this.game_over_prompt._play(); }; DiamondMine.prototype.onEnterFrame = function () { if ((((getTimer() - this.last_clicked_time) > 3000) && (!this.check_for_movement())) && (this.automatic_hint)) { this.last_clicked_time = getTimer(); 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(); return(undefined); } k++; } j++; } } this.update_game_timer(); this.update_game_properties(); }; DiamondMine.prototype.update_game_timer = function () { if ((this.game_type == "Timer") && (!this.paused)) { this.time_percentage = this.time_percentage - (this.time_percent_change + (this.level_percent_change_increase * this.current_level)); } this.render_game_timer(); }; DiamondMine.prototype.render_game_timer = function () { var goToX = ((this.time_percentage / 100) * this.timer_mc.frame_mc._width); this.timer_mc.bar_mc._x = this.timer_mc.bar_mc._x + ((goToX - this.timer_mc.bar_mc._x) / 10); this.timer_mc.bar_mc._gotoAndStop(Math.round((this.time_percentage / 100) * this.timer_mc.bar_mc._totalframes) + 1); if (this.time_percentage >= 100) { this.next_level(); } else if (this.time_percentage <= 0) { _root._gotoAndStop("Game Over"); } }; DiamondMine.prototype.next_level = function () { for (var j in this.piece_holder) { var _mc = this.piece_holder[j]; if (typeof(_mc) == "movieclip") { if ((_mc._name != "backgrounds") && (_mc._name != "play_area")) { _mc.unloadMovie(); } } } this.paused = true; this.explode_pieces(); this.time_percentage = 50; }; DiamondMine.prototype.explode_pieces = function () { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var _mc = this.piece_holder[(("piece_" + j) + "_") + k]; _mc.velocity_x = Math.randf(-10, 10); _mc.velocity_y = Math.randf(-30, -20); _mc.final_position_y = (this.piece_holder.play_area._y + this.piece_holder.play_area._height) + _mc._height; _mc._y = _mc.final_position_y + 100; _mc.remove_piece = true; _mc.num_wait_frames = Math.randi(0, 50); _mc.current_frame = 0; _mc.swapDepths(this.depth++); _mc._name = "__TEMP__" + Math.randi(0, 10000); _mc.onEnterFrame = _mc.wait_to_fall; k++; } j++; } }; DiamondMine.prototype.update_score = function (remove_list) { var score_increase = (remove_list.length * (this.points_per_piece + (this.level_point_increase * this.current_level))); this.score = this.score + score_increase; this.score_txt.scrollToNumber(Math.round(this.score), 10); this.depth++; var _mc = this.attachMovie("points_animation", "points" + this.depth, this.depth); var p = remove_list.rande(); _mc._x = this.piece_holder[(("piece_" + p.j) + "_") + p.k]._x; _mc._y = this.piece_holder[(("piece_" + p.j) + "_") + p.k]._y; _mc.points = "+" + score_increase; }; DiamondMine.prototype.update_game_properties = function () { _root.score = this.score; }; DiamondMine.prototype.new_board = function () { var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { this.piece_holder[(("piece_" + j) + "_") + k].regenerate = true; k++; } j++; } this.explode_pieces(); for (var j in this.piece_holder) { var _mc = this.piece_holder[j]; if (typeof(_mc) == "movieclip") { if (((!_mc.regenerate) && (_mc._name != "backgrounds")) && (_mc._name != "play_area")) { _mc.unloadMovie(); } } } this.new_board_prompt._play(); }; 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 _sound = new Sound(this); _sound.attachSound(linkage); _sound.start(0, 1); }; DiamondMine.prototype.onMouseDown = function () { }; #endinitclip this._x = 0; this._y = 0;
Instance of Symbol 272 MovieClip "piece_holder" in Symbol 392 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]); } } } }
Symbol 395 MovieClip Frame 1
this.start_time = getTimer(); this.wait_time = Number(this.wait_time); this.timed_out = false;
Symbol 395 MovieClip Frame 2
if (((getTimer() - this.start_time) > this.wait_time) && (!this.timed_out)) { this.timed_out = true; for (var j in this._parent) { this._parent[j].removeMovieClip(); } this._parent.gotoAndStop(this.frame_label); }
Symbol 395 MovieClip Frame 3
this.gotoAndPlay(this._currentframe - 1);
Symbol 402 Button
on (release) { getURL ("http://www.myfreeweb.nl/funnygames/12swap/more.php", "_blank"); }
Symbol 407 Button
on (press) { this.gotoAndPlay("Starting Screen"); }

Library Items

Symbol 1 Sound [sdb_hit1]
Symbol 2 Sound [sdb_hit3]
Symbol 3 Sound [egg_move_sound]
Symbol 4 Sound [snap_sound]
Symbol 5 Sound [ddd_shoot2]
Symbol 6 Sound [ddd_shoot1]
Symbol 7 Sound [clear_sound2]
Symbol 8 Sound [clear_sound1]
Symbol 9 Sound [clear_sound0]
Symbol 10 MovieClip [MathExtensions]
Symbol 11 MovieClip [ArrayExtensions]
Symbol 12 MovieClip [MovieClipExtensions]
Symbol 13 GraphicUsed by:172
Symbol 14 GraphicUsed by:36  Timeline
Symbol 15 GraphicUsed by:22
Symbol 16 GraphicUsed by:22
Symbol 17 GraphicUsed by:22
Symbol 18 GraphicUsed by:22
Symbol 19 GraphicUsed by:22
Symbol 20 GraphicUsed by:22
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:15 16 17 18 19 20 21Used by:36
Symbol 23 GraphicUsed by:30 164
Symbol 24 GraphicUsed by:30
Symbol 25 GraphicUsed by:30
Symbol 26 GraphicUsed by:30
Symbol 27 GraphicUsed by:30
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:23 24 25 26 27 28 29Used by:36
Symbol 31 GraphicUsed by:36 165
Symbol 32 GraphicUsed by:36 165
Symbol 33 GraphicUsed by:36 165
Symbol 34 GraphicUsed by:36 165
Symbol 35 GraphicUsed by:36 165
Symbol 36 MovieClipUses:14 22 30 31 32 33 34 35Used by:172
Symbol 37 GraphicUsed by:50 166  Timeline
Symbol 38 GraphicUsed by:42
Symbol 39 GraphicUsed by:42
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:38 39 40 41Used by:50 166
Symbol 43 GraphicUsed by:49
Symbol 44 GraphicUsed by:49
Symbol 45 GraphicUsed by:49
Symbol 46 GraphicUsed by:49
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:43 44 45 46 47 48Used by:50 166
Symbol 50 MovieClipUses:37 42 49Used by:172
Symbol 51 GraphicUsed by:70 167  Timeline
Symbol 52 GraphicUsed by:56
Symbol 53 GraphicUsed by:56
Symbol 54 GraphicUsed by:56
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:52 53 54 55Used by:70 167
Symbol 57 GraphicUsed by:64
Symbol 58 GraphicUsed by:64
Symbol 59 GraphicUsed by:64
Symbol 60 GraphicUsed by:64
Symbol 61 GraphicUsed by:64
Symbol 62 GraphicUsed by:64
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:57 58 59 60 61 62 63Used by:70 167
Symbol 65 GraphicUsed by:70 167
Symbol 66 GraphicUsed by:70 167
Symbol 67 GraphicUsed by:70 167
Symbol 68 GraphicUsed by:70 167
Symbol 69 GraphicUsed by:70 167
Symbol 70 MovieClipUses:51 56 64 65 66 67 68 69Used by:172
Symbol 71 GraphicUsed by:74 88 168
Symbol 72 GraphicUsed by:74
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClipUses:71 72 73Used by:88 168
Symbol 75 GraphicUsed by:81
Symbol 76 GraphicUsed by:81
Symbol 77 GraphicUsed by:81
Symbol 78 GraphicUsed by:81
Symbol 79 GraphicUsed by:81
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:75 76 77 78 79 80Used by:88 168
Symbol 82 GraphicUsed by:87
Symbol 83 GraphicUsed by:87
Symbol 84 GraphicUsed by:87
Symbol 85 GraphicUsed by:87
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:82 83 84 85 86Used by:88 168
Symbol 88 MovieClipUses:71 74 81 87Used by:172
Symbol 89 GraphicUsed by:109 169  Timeline
Symbol 90 GraphicUsed by:94
Symbol 91 GraphicUsed by:94
Symbol 92 GraphicUsed by:94
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:90 91 92 93Used by:109 169
Symbol 95 GraphicUsed by:102
Symbol 96 GraphicUsed by:102
Symbol 97 GraphicUsed by:102
Symbol 98 GraphicUsed by:102
Symbol 99 GraphicUsed by:102
Symbol 100 GraphicUsed by:102
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:95 96 97 98 99 100 101Used by:109 169
Symbol 103 GraphicUsed by:108
Symbol 104 GraphicUsed by:108
Symbol 105 GraphicUsed by:108
Symbol 106 GraphicUsed by:108
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:103 104 105 106 107Used by:109 169
Symbol 109 MovieClipUses:89 94 102 108Used by:172
Symbol 110 GraphicUsed by:129 170  Timeline
Symbol 111 GraphicUsed by:115
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:111 112 113 114Used by:129 170
Symbol 116 GraphicUsed by:122
Symbol 117 GraphicUsed by:122
Symbol 118 GraphicUsed by:122
Symbol 119 GraphicUsed by:122
Symbol 120 GraphicUsed by:122
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:116 117 118 119 120 121Used by:129 170
Symbol 123 GraphicUsed by:128
Symbol 124 GraphicUsed by:128
Symbol 125 GraphicUsed by:128
Symbol 126 GraphicUsed by:128
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:123 124 125 126 127Used by:129 170
Symbol 129 MovieClipUses:110 115 122 128Used by:172
Symbol 130 GraphicUsed by:148 171  Timeline
Symbol 131 GraphicUsed by:135
Symbol 132 GraphicUsed by:135
Symbol 133 GraphicUsed by:135
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClipUses:131 132 133 134Used by:148 171
Symbol 136 GraphicUsed by:141
Symbol 137 GraphicUsed by:141
Symbol 138 GraphicUsed by:141
Symbol 139 GraphicUsed by:141
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:136 137 138 139 140Used by:148 171
Symbol 142 GraphicUsed by:147
Symbol 143 GraphicUsed by:147
Symbol 144 GraphicUsed by:147
Symbol 145 GraphicUsed by:147
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:142 143 144 145 146Used by:148 171
Symbol 148 MovieClipUses:130 135 141 147Used by:172
Symbol 149 GraphicUsed by:165
Symbol 150 GraphicUsed by:157
Symbol 151 GraphicUsed by:157
Symbol 152 GraphicUsed by:157
Symbol 153 GraphicUsed by:157
Symbol 154 GraphicUsed by:157
Symbol 155 GraphicUsed by:157
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:150 151 152 153 154 155 156Used by:165
Symbol 158 GraphicUsed by:164
Symbol 159 GraphicUsed by:164
Symbol 160 GraphicUsed by:164
Symbol 161 GraphicUsed by:164
Symbol 162 GraphicUsed by:164
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses:23 158 159 160 161 162 163Used by:165
Symbol 165 MovieClipUses:149 157 164 31 32 33 34 35Used by:172
Symbol 166 MovieClipUses:37 42 49Used by:172
Symbol 167 MovieClipUses:51 56 64 65 66 67 68 69Used by:172
Symbol 168 MovieClipUses:71 74 81 87Used by:172
Symbol 169 MovieClipUses:89 94 102 108Used by:172
Symbol 170 MovieClipUses:110 115 122 128Used by:172
Symbol 171 MovieClipUses:130 135 141 147Used by:172
Symbol 172 MovieClip [game_piece]Uses:13 36 50 70 88 109 129 148 165 166 167 168 169 170 171Used by:175
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:175
Symbol 175 MovieClip [PieceComponent]Uses:172 174
Symbol 176 MovieClip [TextfieldExtensions]
Symbol 177 MovieClip [ObjectExtensions]
Symbol 178 FontUsed by:179
Symbol 179 EditableTextUses:178Used by:180
Symbol 180 MovieClip [points_animation]Uses:179
Symbol 181 GraphicUsed by:Timeline
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:192
Symbol 184 GraphicUsed by:185
Symbol 185 MovieClipUses:184Used by:192
Symbol 186 GraphicUsed by:192
Symbol 187 ShapeTweeningUsed by:192
Symbol 188 GraphicUsed by:192
Symbol 189 GraphicUsed by:190
Symbol 190 MovieClipUses:189Used by:192
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:183 185 186 187 188 190 191Used by:197
Symbol 193 FontUsed by:194 198 241 243 246 249 251 253 258 259 343 358 372 384 398 403
Symbol 194 EditableTextUses:193Used by:195
Symbol 195 MovieClipUses:194Used by:197
Symbol 196 MovieClipUsed by:197
Symbol 197 MovieClipUses:192 195 196Used by:Timeline
Symbol 198 EditableTextUses:193 288Used by:Timeline
Symbol 199 GraphicUsed by:Timeline
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:Timeline
Symbol 202 GraphicUsed by:Timeline
Symbol 203 GraphicUsed by:Timeline
Symbol 204 GraphicUsed by:210 260 407
Symbol 205 GraphicUsed by:210 260 407
Symbol 206 GraphicUsed by:210 260
Symbol 207 GraphicUsed by:210 260
Symbol 208 GraphicUsed by:210 260
Symbol 209 GraphicUsed by:210 260
Symbol 210 ButtonUses:204 205 206 207 208 209Used by:Timeline
Symbol 211 FontUsed by:212
Symbol 212 TextUses:211Used by:Timeline
Symbol 213 GraphicUsed by:Timeline
Symbol 214 GraphicUsed by:Timeline
Symbol 215 GraphicUsed by:Timeline
Symbol 216 GraphicUsed by:Timeline
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:237
Symbol 219 GraphicUsed by:222
Symbol 220 GraphicUsed by:222
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClipUses:219 220 221Used by:227 229 231 233
Symbol 223 GraphicUsed by:225
Symbol 224 GraphicUsed by:225
Symbol 225 ButtonUses:223 224Used by:227 229 231 233
Symbol 226 GraphicUsed by:227
Symbol 227 MovieClipUses:222 225 226Used by:237
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:222 225 228Used by:237
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:222 225 230Used by:237
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:222 225 232Used by:237
Symbol 234 FontUsed by:235
Symbol 235 EditableTextUses:234Used by:237
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClipUses:218 227 229 231 233 235 236Used by:Timeline
Symbol 238 GraphicUsed by:Timeline
Symbol 239 GraphicUsed by:247 254
Symbol 240 GraphicUsed by:247
Symbol 241 EditableTextUses:193Used by:247
Symbol 242 GraphicUsed by:247
Symbol 243 EditableTextUses:193Used by:247
Symbol 244 GraphicUsed by:247
Symbol 245 GraphicUsed by:247 254
Symbol 246 TextUses:193Used by:247
Symbol 247 ButtonUses:239 240 241 242 243 244 245 246Used by:257
Symbol 248 GraphicUsed by:254
Symbol 249 EditableTextUses:193Used by:254
Symbol 250 GraphicUsed by:254
Symbol 251 EditableTextUses:193Used by:254
Symbol 252 GraphicUsed by:254
Symbol 253 TextUses:193Used by:254
Symbol 254 ButtonUses:239 248 249 250 251 252 245 253Used by:257
Symbol 255 GraphicUsed by:257
Symbol 256 GraphicUsed by:257
Symbol 257 MovieClipUses:247 254 255 256Used by:Timeline
Symbol 258 EditableTextUses:193Used by:Timeline
Symbol 259 EditableTextUses:193Used by:Timeline
Symbol 260 ButtonUses:204 205 206 207 208 209Used by:Timeline
Symbol 261 GraphicUsed by:Timeline
Symbol 262 GraphicUsed by:392
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClipUses:263Used by:267
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:265Used by:267
Symbol 267 MovieClipUses:264 266Used by:272
Symbol 268 GraphicUsed by:271
Symbol 269 FontUsed by:270
Symbol 270 TextUses:269Used by:271
Symbol 271 MovieClipUses:268 270Used by:272
Symbol 272 MovieClipUses:267 271Used by:392
Symbol 273 GraphicUsed by:278
Symbol 274 GraphicUsed by:275
Symbol 275 MovieClipUses:274Used by:278
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:276Used by:278
Symbol 278 MovieClipUses:273 275 277Used by:392
Symbol 279 GraphicUsed by:280
Symbol 280 MovieClipUses:279Used by:392
Symbol 281 GraphicUsed by:282
Symbol 282 MovieClipUses:281Used by:392
Symbol 283 GraphicUsed by:392
Symbol 284 GraphicUsed by:287 291 293 296 298 301 392  Timeline
Symbol 285 GraphicUsed by:287
Symbol 286 GraphicUsed by:287 291 293 296 298 301
Symbol 287 ButtonUses:284 285 286Used by:392
Symbol 288 FontUsed by:198 289 311 312 317 318 320 329 403 410
Symbol 289 EditableTextUses:288Used by:392
Symbol 290 GraphicUsed by:291
Symbol 291 ButtonUses:284 290 286Used by:294
Symbol 292 GraphicUsed by:293
Symbol 293 ButtonUses:284 292 286Used by:294
Symbol 294 MovieClipUses:291 293Used by:392
Symbol 295 GraphicUsed by:296
Symbol 296 ButtonUses:284 295 286Used by:299
Symbol 297 GraphicUsed by:298
Symbol 298 ButtonUses:284 297 286Used by:299
Symbol 299 MovieClipUses:296 298Used by:392
Symbol 300 GraphicUsed by:301
Symbol 301 ButtonUses:284 300 286Used by:392
Symbol 302 GraphicUsed by:392  Timeline
Symbol 303 ShapeTweeningUsed by:336
Symbol 304 SoundUsed by:336
Symbol 305 ShapeTweeningUsed by:336
Symbol 306 ShapeTweeningUsed by:336
Symbol 307 ShapeTweeningUsed by:336
Symbol 308 ShapeTweeningUsed by:336
Symbol 309 GraphicUsed by:336
Symbol 310 ShapeTweeningUsed by:336
Symbol 311 TextUses:288Used by:336
Symbol 312 EditableTextUses:288Used by:336
Symbol 313 GraphicUsed by:316
Symbol 314 GraphicUsed by:316
Symbol 315 GraphicUsed by:316
Symbol 316 ButtonUses:313 314 315Used by:319
Symbol 317 EditableTextUses:288Used by:319
Symbol 318 EditableTextUses:288Used by:319
Symbol 319 MovieClipUses:316 317 318Used by:336
Symbol 320 TextUses:288Used by:336
Symbol 321 ShapeTweeningUsed by:336
Symbol 322 ShapeTweeningUsed by:336
Symbol 323 ShapeTweeningUsed by:336
Symbol 324 ShapeTweeningUsed by:336
Symbol 325 ShapeTweeningUsed by:336
Symbol 326 ShapeTweeningUsed by:336
Symbol 327 GraphicUsed by:336
Symbol 328 ShapeTweeningUsed by:336
Symbol 329 TextUses:288Used by:336
Symbol 330 ShapeTweeningUsed by:336
Symbol 331 ShapeTweeningUsed by:336
Symbol 332 ShapeTweeningUsed by:336
Symbol 333 ShapeTweeningUsed by:336
Symbol 334 ShapeTweeningUsed by:336
Symbol 335 ShapeTweeningUsed by:336
Symbol 336 MovieClipUses:303 304 305 306 307 308 309 310 311 312 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335Used by:392
Symbol 337 ShapeTweeningUsed by:351
Symbol 338 SoundUsed by:351
Symbol 339 ShapeTweeningUsed by:351
Symbol 340 ShapeTweeningUsed by:351
Symbol 341 ShapeTweeningUsed by:351
Symbol 342 ShapeTweeningUsed by:351
Symbol 343 EditableTextUses:193Used by:351
Symbol 344 ShapeTweeningUsed by:351
Symbol 345 ShapeTweeningUsed by:351
Symbol 346 ShapeTweeningUsed by:351
Symbol 347 ShapeTweeningUsed by:351
Symbol 348 ShapeTweeningUsed by:351
Symbol 349 ShapeTweeningUsed by:351
Symbol 350 GraphicUsed by:351 365 378 391
Symbol 351 MovieClipUses:337 338 339 340 341 342 343 344 345 346 347 348 349 350Used by:392
Symbol 352 ShapeTweeningUsed by:365
Symbol 353 SoundUsed by:365
Symbol 354 ShapeTweeningUsed by:365
Symbol 355 ShapeTweeningUsed by:365
Symbol 356 ShapeTweeningUsed by:365
Symbol 357 ShapeTweeningUsed by:365
Symbol 358 TextUses:193Used by:365
Symbol 359 ShapeTweeningUsed by:365
Symbol 360 ShapeTweeningUsed by:365
Symbol 361 ShapeTweeningUsed by:365
Symbol 362 ShapeTweeningUsed by:365
Symbol 363 ShapeTweeningUsed by:365
Symbol 364 ShapeTweeningUsed by:365
Symbol 365 MovieClipUses:352 353 354 355 356 357 358 359 360 361 362 363 364 350Used by:392
Symbol 366 ShapeTweeningUsed by:378
Symbol 367 ShapeTweeningUsed by:378
Symbol 368 ShapeTweeningUsed by:378
Symbol 369 ShapeTweeningUsed by:378
Symbol 370 ShapeTweeningUsed by:378
Symbol 371 ShapeTweeningUsed by:378
Symbol 372 TextUses:193Used by:378
Symbol 373 ShapeTweeningUsed by:378
Symbol 374 ShapeTweeningUsed by:378
Symbol 375 ShapeTweeningUsed by:378
Symbol 376 ShapeTweeningUsed by:378
Symbol 377 ShapeTweeningUsed by:378
Symbol 378 MovieClipUses:366 367 368 369 370 371 372 373 374 375 376 377 350Used by:392
Symbol 379 ShapeTweeningUsed by:391
Symbol 380 ShapeTweeningUsed by:391
Symbol 381 ShapeTweeningUsed by:391
Symbol 382 ShapeTweeningUsed by:391
Symbol 383 ShapeTweeningUsed by:391
Symbol 384 TextUses:193Used by:391
Symbol 385 ShapeTweeningUsed by:391
Symbol 386 ShapeTweeningUsed by:391
Symbol 387 ShapeTweeningUsed by:391
Symbol 388 ShapeTweeningUsed by:391
Symbol 389 ShapeTweeningUsed by:391
Symbol 390 ShapeTweeningUsed by:391
Symbol 391 MovieClipUses:379 380 381 382 383 384 385 386 387 388 389 390 350Used by:392
Symbol 392 MovieClip [DiamondMineComponent]Uses:262 272 278 280 282 283 287 284 289 294 299 301 302 336 351 365 378 391Used by:Timeline
Symbol 393 FontUsed by:394
Symbol 394 EditableTextUses:393Used by:395
Symbol 395 MovieClipUses:394Used by:Timeline
Symbol 396 GraphicUsed by:Timeline
Symbol 397 GraphicUsed by:Timeline
Symbol 398 TextUses:193Used by:Timeline
Symbol 399 GraphicUsed by:402
Symbol 400 GraphicUsed by:402
Symbol 401 GraphicUsed by:402
Symbol 402 ButtonUses:399 400 401Used by:Timeline
Symbol 403 EditableTextUses:193 288Used by:Timeline
Symbol 404 GraphicUsed by:Timeline
Symbol 405 GraphicUsed by:407
Symbol 406 GraphicUsed by:407
Symbol 407 ButtonUses:204 205 405 406Used by:Timeline
Symbol 408 GraphicUsed by:Timeline
Symbol 409 GraphicUsed by:Timeline
Symbol 410 EditableTextUses:288Used by:Timeline

Instance Names

"game"Frame 4Symbol 392 MovieClip [DiamondMineComponent]
"score_txt"Frame 6Symbol 410 EditableText
"sub"Symbol 172 MovieClip [game_piece] Frame 1Symbol 36 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 2Symbol 50 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 3Symbol 70 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 4Symbol 88 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 5Symbol 109 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 6Symbol 129 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 7Symbol 148 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 8Symbol 165 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 9Symbol 166 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 10Symbol 167 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 11Symbol 168 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 12Symbol 169 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 13Symbol 170 MovieClip
"sub"Symbol 172 MovieClip [game_piece] Frame 14Symbol 171 MovieClip
"pieces"Symbol 175 MovieClip [PieceComponent] Frame 1Symbol 172 MovieClip [game_piece]
"selector_mc"Symbol 175 MovieClip [PieceComponent] Frame 1Symbol 174 MovieClip
"anim"Symbol 197 MovieClip Frame 1Symbol 192 MovieClip
"perc"Symbol 197 MovieClip Frame 1Symbol 195 MovieClip
"swfloader"Symbol 197 MovieClip Frame 1Symbol 196 MovieClip
"backgrounds"Symbol 272 MovieClip Frame 1Symbol 267 MovieClip
"play_area"Symbol 272 MovieClip Frame 1Symbol 271 MovieClip
"frame_mc"Symbol 278 MovieClip Frame 1Symbol 275 MovieClip
"bar_mc"Symbol 278 MovieClip Frame 1Symbol 277 MovieClip
"choice0"Symbol 336 MovieClip Frame 22Symbol 319 MovieClip
"choice1"Symbol 336 MovieClip Frame 22Symbol 319 MovieClip
"choice2"Symbol 336 MovieClip Frame 22Symbol 319 MovieClip
"choice3"Symbol 336 MovieClip Frame 22Symbol 319 MovieClip
"piece_holder"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 272 MovieClip
"timer_mc"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 278 MovieClip
"score_txt"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 289 EditableText
"quiz_prompt"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 336 MovieClip
"level_prompt"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 351 MovieClip
"new_board_prompt"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 365 MovieClip
"paused_prompt"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 378 MovieClip
"game_over_prompt"Symbol 392 MovieClip [DiamondMineComponent] Frame 1Symbol 391 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "sdb_hit1"
ExportAssets (56)Timeline Frame 1Symbol 2 as "sdb_hit3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "egg_move_sound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "snap_sound"
ExportAssets (56)Timeline Frame 1Symbol 5 as "ddd_shoot2"
ExportAssets (56)Timeline Frame 1Symbol 6 as "ddd_shoot1"
ExportAssets (56)Timeline Frame 1Symbol 7 as "clear_sound2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "clear_sound1"
ExportAssets (56)Timeline Frame 1Symbol 9 as "clear_sound0"
ExportAssets (56)Timeline Frame 1Symbol 10 as "MathExtensions"
ExportAssets (56)Timeline Frame 1Symbol 11 as "ArrayExtensions"
ExportAssets (56)Timeline Frame 1Symbol 12 as "MovieClipExtensions"
ExportAssets (56)Timeline Frame 1Symbol 172 as "game_piece"
ExportAssets (56)Timeline Frame 1Symbol 172 as "game_piece"
ExportAssets (56)Timeline Frame 1Symbol 175 as "PieceComponent"
ExportAssets (56)Timeline Frame 1Symbol 176 as "TextfieldExtensions"
ExportAssets (56)Timeline Frame 1Symbol 177 as "ObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 180 as "points_animation"
ExportAssets (56)Timeline Frame 4Symbol 392 as "DiamondMineComponent"

Labels

"Starting Screen"Frame 3
"Content"Frame 4
"Time Out"Frame 5
"Game Over"Frame 6
"Default"Symbol 36 MovieClip Frame 1
"Rollover Animation"Symbol 36 MovieClip Frame 10
"Clicked Animation"Symbol 36 MovieClip Frame 23
"Remove Animation"Symbol 36 MovieClip Frame 38
"Default"Symbol 50 MovieClip Frame 1
"Rollover Animation"Symbol 50 MovieClip Frame 10
"Clicked Animation"Symbol 50 MovieClip Frame 24
"Remove Animation"Symbol 50 MovieClip Frame 37
"Default"Symbol 70 MovieClip Frame 1
"Rollover Animation"Symbol 70 MovieClip Frame 10
"Clicked Animation"Symbol 70 MovieClip Frame 24
"Remove Animation"Symbol 70 MovieClip Frame 37
"Default"Symbol 88 MovieClip Frame 1
"Rollover Animation"Symbol 88 MovieClip Frame 10
"Clicked Animation"Symbol 88 MovieClip Frame 24
"Remove Animation"Symbol 88 MovieClip Frame 37
"Default"Symbol 109 MovieClip Frame 1
"Rollover Animation"Symbol 109 MovieClip Frame 10
"Clicked Animation"Symbol 109 MovieClip Frame 26
"Remove Animation"Symbol 109 MovieClip Frame 45
"Default"Symbol 129 MovieClip Frame 1
"Rollover Animation"Symbol 129 MovieClip Frame 10
"Clicked Animation"Symbol 129 MovieClip Frame 29
"Remove Animation"Symbol 129 MovieClip Frame 45
"Default"Symbol 148 MovieClip Frame 1
"Rollover Animation"Symbol 148 MovieClip Frame 10
"Clicked Animation"Symbol 148 MovieClip Frame 31
"Remove Animation"Symbol 148 MovieClip Frame 45
"Default"Symbol 165 MovieClip Frame 1
"Rollover Animation"Symbol 165 MovieClip Frame 10
"Clicked Animation"Symbol 165 MovieClip Frame 24
"Remove Animation"Symbol 165 MovieClip Frame 38
"Default"Symbol 166 MovieClip Frame 1
"Rollover Animation"Symbol 166 MovieClip Frame 10
"Clicked Animation"Symbol 166 MovieClip Frame 24
"Remove Animation"Symbol 166 MovieClip Frame 38
"Default"Symbol 167 MovieClip Frame 1
"Rollover Animation"Symbol 167 MovieClip Frame 10
"Clicked Animation"Symbol 167 MovieClip Frame 24
"Remove Animation"Symbol 167 MovieClip Frame 37
"Default"Symbol 168 MovieClip Frame 1
"Rollover Animation"Symbol 168 MovieClip Frame 10
"Clicked Animation"Symbol 168 MovieClip Frame 24
"Remove Animation"Symbol 168 MovieClip Frame 37
"Default"Symbol 169 MovieClip Frame 1
"Rollover Animation"Symbol 169 MovieClip Frame 10
"Clicked Animation"Symbol 169 MovieClip Frame 26
"Remove Animation"Symbol 169 MovieClip Frame 45
"Default"Symbol 170 MovieClip Frame 1
"Rollover Animation"Symbol 170 MovieClip Frame 10
"Clicked Animation"Symbol 170 MovieClip Frame 29
"Remove Animation"Symbol 170 MovieClip Frame 45
"Default"Symbol 171 MovieClip Frame 1
"Rollover Animation"Symbol 171 MovieClip Frame 10
"Clicked Animation"Symbol 171 MovieClip Frame 31
"Remove Animation"Symbol 171 MovieClip Frame 45
"Correct Answer"Symbol 336 MovieClip Frame 23
"Incorrect Answer"Symbol 336 MovieClip Frame 60

Dynamic Text Variables

pointsSymbol 179 EditableText"+20"
textSymbol 194 EditableText""
emailSymbol 235 EditableText"enter email"
questionSymbol 312 EditableText""
fieldSymbol 317 EditableText""
choiceSymbol 318 EditableText""
fieldSymbol 343 EditableText""
scoreSymbol 410 EditableText"0"




http://swfchan.com/3/11251/info.shtml
Created: 7/6 -2019 12:41:59 Last modified: 7/6 -2019 12:41:59 Server time: 22/12 -2024 13:21:08