STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #11251 |
+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 2stop();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 3stop();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 4game.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 5stop();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 6stop(); _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)); }; #endinitclipSymbol 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); }; #endinitclipSymbol 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)); }; #endinitclipSymbol 36 MovieClip Frame 1this._stop();Symbol 36 MovieClip Frame 22if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 36 MovieClip Frame 37if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 36 MovieClip Frame 62this._gotoAndStop("Default");Symbol 50 MovieClip Frame 1this._stop();Symbol 50 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 50 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 50 MovieClip Frame 62this._gotoAndStop("Default");Symbol 70 MovieClip Frame 1this._stop();Symbol 70 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 70 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 70 MovieClip Frame 62this._gotoAndStop("Default");Symbol 88 MovieClip Frame 1this._stop();Symbol 88 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 88 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 88 MovieClip Frame 62this._gotoAndStop("Default");Symbol 109 MovieClip Frame 1this._stop();Symbol 109 MovieClip Frame 25if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 109 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 109 MovieClip Frame 62this._gotoAndStop("Default");Symbol 129 MovieClip Frame 1this._stop();Symbol 129 MovieClip Frame 28if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 129 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 129 MovieClip Frame 62this._gotoAndStop("Default");Symbol 148 MovieClip Frame 1this._stop();Symbol 148 MovieClip Frame 30if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 148 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 148 MovieClip Frame 62this._gotoAndStop("Default");Symbol 165 MovieClip Frame 1this._stop();Symbol 165 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 165 MovieClip Frame 37if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 165 MovieClip Frame 62this._gotoAndStop("Default");Symbol 166 MovieClip Frame 1this._stop();Symbol 166 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 166 MovieClip Frame 37if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 166 MovieClip Frame 62this._gotoAndStop("Default");Symbol 167 MovieClip Frame 1this._stop();Symbol 167 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 167 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 167 MovieClip Frame 62this._gotoAndStop("Default");Symbol 168 MovieClip Frame 1this._stop();Symbol 168 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 168 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 168 MovieClip Frame 62this._gotoAndStop("Default");Symbol 169 MovieClip Frame 1this._stop();Symbol 169 MovieClip Frame 25if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 169 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 169 MovieClip Frame 62this._gotoAndStop("Default");Symbol 170 MovieClip Frame 1this._stop();Symbol 170 MovieClip Frame 28if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 170 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 170 MovieClip Frame 62this._gotoAndStop("Default");Symbol 171 MovieClip Frame 1this._stop();Symbol 171 MovieClip Frame 30if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 171 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 171 MovieClip Frame 62this._gotoAndStop("Default");Symbol 172 MovieClip [game_piece] Frame 1this._stop();Symbol 174 MovieClip Frame 1stop();Symbol 174 MovieClip Frame 62this._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; } }; #endinitclipSymbol 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; } }; #endinitclipSymbol 177 MovieClip [ObjectExtensions] Frame 1#initclip 4 Object.prototype.swap = function (a, b) { var temp = this[a]; this[a] = this[b]; this[b] = temp; }; #endinitclipSymbol 180 MovieClip [points_animation] Frame 16this.unloadMovie();Symbol 197 MovieClip Frame 1stop();Instance of Symbol 196 MovieClip "swfloader" in Symbol 197 MovieClip Frame 1onClipEvent (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 Buttonon (release) { this.play(); }Symbol 225 Buttonon (release) { btn_press(); }Instance of Symbol 227 MovieClip in Symbol 237 MovieClip Frame 1onClipEvent (load) { function btn_press() { getURL (_parent.more_games_url, "_blank"); } }Instance of Symbol 229 MovieClip in Symbol 237 MovieClip Frame 1onClipEvent (load) { function btn_press() { getURL (_parent.home_url, "_blank"); } }Instance of Symbol 231 MovieClip in Symbol 237 MovieClip Frame 1onClipEvent (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 1onClipEvent (load) { function btn_press() { getURL ((((_parent.game_php_url + "?id=") + _root.id) + "&friend_email=") + escape(_parent.email), "_blank"); } }Symbol 247 Buttonon (press) { this.gotoAndStop(1); }Symbol 254 Buttonon (press) { this.gotoAndStop(2); }Symbol 257 MovieClip Frame 1stop(); _root.game_type = "Normal";Symbol 257 MovieClip Frame 2_root.game_type = "Timer";Symbol 260 Buttonon (release) { this.play(); }Symbol 267 MovieClip Frame 1this._stop();Symbol 267 MovieClip Frame 2this._stop();Symbol 267 MovieClip Frame 3this._stop();Symbol 267 MovieClip Frame 4this._stop();Symbol 267 MovieClip Frame 5this._stop();Symbol 271 MovieClip Frame 1this._visible = false;Symbol 277 MovieClip Frame 1stop();Symbol 278 MovieClip Frame 1stop();Symbol 287 Buttonon (press) { _root.gotoAndStop("Starting Screen"); }Symbol 291 Buttonon (press) { if (_parent.paused_prompt._currentframe != 1) { return(undefined); } _parent.pause_game(); this.nextFrame(); }Symbol 293 Buttonon (press) { if (_parent.paused_prompt._currentframe != 22) { return(undefined); } _parent.unpause_game(); this.prevFrame(); }Symbol 294 MovieClip Frame 1stop();Symbol 296 Buttonon (press) { nextFrame(); }Symbol 298 Buttonon (press) { prevFrame(); }Symbol 299 MovieClip Frame 1stop(); delete this.onEnterFrame;Symbol 299 MovieClip Frame 2this.onEnterFrame = function () { stopAllSounds(); };Symbol 301 Buttonon (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 Buttonon (press) { _parent._parent.evaluate_answer(this); }Symbol 336 MovieClip Frame 1stop();Symbol 336 MovieClip Frame 22stop(); _parent.fill_quiz_form();Symbol 336 MovieClip Frame 59this._gotoAndStop(1);Symbol 336 MovieClip Frame 96this._gotoAndStop(1);Symbol 351 MovieClip Frame 60this._gotoAndStop(1);Symbol 365 MovieClip Frame 1stop();Symbol 365 MovieClip Frame 75this._gotoAndStop(1);Symbol 378 MovieClip Frame 1stop();Symbol 378 MovieClip Frame 22stop();Symbol 391 MovieClip Frame 1stop();Symbol 391 MovieClip Frame 120this._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 1onClipEvent (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 1this.start_time = getTimer(); this.wait_time = Number(this.wait_time); this.timed_out = false;Symbol 395 MovieClip Frame 2if (((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 3this.gotoAndPlay(this._currentframe - 1);Symbol 402 Buttonon (release) { getURL ("http://www.myfreeweb.nl/funnygames/12swap/more.php", "_blank"); }Symbol 407 Buttonon (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 Graphic | Used by:172 | |
Symbol 14 Graphic | Used by:36 Timeline | |
Symbol 15 Graphic | Used by:22 | |
Symbol 16 Graphic | Used by:22 | |
Symbol 17 Graphic | Used by:22 | |
Symbol 18 Graphic | Used by:22 | |
Symbol 19 Graphic | Used by:22 | |
Symbol 20 Graphic | Used by:22 | |
Symbol 21 Graphic | Used by:22 | |
Symbol 22 MovieClip | Uses:15 16 17 18 19 20 21 | Used by:36 |
Symbol 23 Graphic | Used by:30 164 | |
Symbol 24 Graphic | Used by:30 | |
Symbol 25 Graphic | Used by:30 | |
Symbol 26 Graphic | Used by:30 | |
Symbol 27 Graphic | Used by:30 | |
Symbol 28 Graphic | Used by:30 | |
Symbol 29 Graphic | Used by:30 | |
Symbol 30 MovieClip | Uses:23 24 25 26 27 28 29 | Used by:36 |
Symbol 31 Graphic | Used by:36 165 | |
Symbol 32 Graphic | Used by:36 165 | |
Symbol 33 Graphic | Used by:36 165 | |
Symbol 34 Graphic | Used by:36 165 | |
Symbol 35 Graphic | Used by:36 165 | |
Symbol 36 MovieClip | Uses:14 22 30 31 32 33 34 35 | Used by:172 |
Symbol 37 Graphic | Used by:50 166 Timeline | |
Symbol 38 Graphic | Used by:42 | |
Symbol 39 Graphic | Used by:42 | |
Symbol 40 Graphic | Used by:42 | |
Symbol 41 Graphic | Used by:42 | |
Symbol 42 MovieClip | Uses:38 39 40 41 | Used by:50 166 |
Symbol 43 Graphic | Used by:49 | |
Symbol 44 Graphic | Used by:49 | |
Symbol 45 Graphic | Used by:49 | |
Symbol 46 Graphic | Used by:49 | |
Symbol 47 Graphic | Used by:49 | |
Symbol 48 Graphic | Used by:49 | |
Symbol 49 MovieClip | Uses:43 44 45 46 47 48 | Used by:50 166 |
Symbol 50 MovieClip | Uses:37 42 49 | Used by:172 |
Symbol 51 Graphic | Used by:70 167 Timeline | |
Symbol 52 Graphic | Used by:56 | |
Symbol 53 Graphic | Used by:56 | |
Symbol 54 Graphic | Used by:56 | |
Symbol 55 Graphic | Used by:56 | |
Symbol 56 MovieClip | Uses:52 53 54 55 | Used by:70 167 |
Symbol 57 Graphic | Used by:64 | |
Symbol 58 Graphic | Used by:64 | |
Symbol 59 Graphic | Used by:64 | |
Symbol 60 Graphic | Used by:64 | |
Symbol 61 Graphic | Used by:64 | |
Symbol 62 Graphic | Used by:64 | |
Symbol 63 Graphic | Used by:64 | |
Symbol 64 MovieClip | Uses:57 58 59 60 61 62 63 | Used by:70 167 |
Symbol 65 Graphic | Used by:70 167 | |
Symbol 66 Graphic | Used by:70 167 | |
Symbol 67 Graphic | Used by:70 167 | |
Symbol 68 Graphic | Used by:70 167 | |
Symbol 69 Graphic | Used by:70 167 | |
Symbol 70 MovieClip | Uses:51 56 64 65 66 67 68 69 | Used by:172 |
Symbol 71 Graphic | Used by:74 88 168 | |
Symbol 72 Graphic | Used by:74 | |
Symbol 73 Graphic | Used by:74 | |
Symbol 74 MovieClip | Uses:71 72 73 | Used by:88 168 |
Symbol 75 Graphic | Used by:81 | |
Symbol 76 Graphic | Used by:81 | |
Symbol 77 Graphic | Used by:81 | |
Symbol 78 Graphic | Used by:81 | |
Symbol 79 Graphic | Used by:81 | |
Symbol 80 Graphic | Used by:81 | |
Symbol 81 MovieClip | Uses:75 76 77 78 79 80 | Used by:88 168 |
Symbol 82 Graphic | Used by:87 | |
Symbol 83 Graphic | Used by:87 | |
Symbol 84 Graphic | Used by:87 | |
Symbol 85 Graphic | Used by:87 | |
Symbol 86 Graphic | Used by:87 | |
Symbol 87 MovieClip | Uses:82 83 84 85 86 | Used by:88 168 |
Symbol 88 MovieClip | Uses:71 74 81 87 | Used by:172 |
Symbol 89 Graphic | Used by:109 169 Timeline | |
Symbol 90 Graphic | Used by:94 | |
Symbol 91 Graphic | Used by:94 | |
Symbol 92 Graphic | Used by:94 | |
Symbol 93 Graphic | Used by:94 | |
Symbol 94 MovieClip | Uses:90 91 92 93 | Used by:109 169 |
Symbol 95 Graphic | Used by:102 | |
Symbol 96 Graphic | Used by:102 | |
Symbol 97 Graphic | Used by:102 | |
Symbol 98 Graphic | Used by:102 | |
Symbol 99 Graphic | Used by:102 | |
Symbol 100 Graphic | Used by:102 | |
Symbol 101 Graphic | Used by:102 | |
Symbol 102 MovieClip | Uses:95 96 97 98 99 100 101 | Used by:109 169 |
Symbol 103 Graphic | Used by:108 | |
Symbol 104 Graphic | Used by:108 | |
Symbol 105 Graphic | Used by:108 | |
Symbol 106 Graphic | Used by:108 | |
Symbol 107 Graphic | Used by:108 | |
Symbol 108 MovieClip | Uses:103 104 105 106 107 | Used by:109 169 |
Symbol 109 MovieClip | Uses:89 94 102 108 | Used by:172 |
Symbol 110 Graphic | Used by:129 170 Timeline | |
Symbol 111 Graphic | Used by:115 | |
Symbol 112 Graphic | Used by:115 | |
Symbol 113 Graphic | Used by:115 | |
Symbol 114 Graphic | Used by:115 | |
Symbol 115 MovieClip | Uses:111 112 113 114 | Used by:129 170 |
Symbol 116 Graphic | Used by:122 | |
Symbol 117 Graphic | Used by:122 | |
Symbol 118 Graphic | Used by:122 | |
Symbol 119 Graphic | Used by:122 | |
Symbol 120 Graphic | Used by:122 | |
Symbol 121 Graphic | Used by:122 | |
Symbol 122 MovieClip | Uses:116 117 118 119 120 121 | Used by:129 170 |
Symbol 123 Graphic | Used by:128 | |
Symbol 124 Graphic | Used by:128 | |
Symbol 125 Graphic | Used by:128 | |
Symbol 126 Graphic | Used by:128 | |
Symbol 127 Graphic | Used by:128 | |
Symbol 128 MovieClip | Uses:123 124 125 126 127 | Used by:129 170 |
Symbol 129 MovieClip | Uses:110 115 122 128 | Used by:172 |
Symbol 130 Graphic | Used by:148 171 Timeline | |
Symbol 131 Graphic | Used by:135 | |
Symbol 132 Graphic | Used by:135 | |
Symbol 133 Graphic | Used by:135 | |
Symbol 134 Graphic | Used by:135 | |
Symbol 135 MovieClip | Uses:131 132 133 134 | Used by:148 171 |
Symbol 136 Graphic | Used by:141 | |
Symbol 137 Graphic | Used by:141 | |
Symbol 138 Graphic | Used by:141 | |
Symbol 139 Graphic | Used by:141 | |
Symbol 140 Graphic | Used by:141 | |
Symbol 141 MovieClip | Uses:136 137 138 139 140 | Used by:148 171 |
Symbol 142 Graphic | Used by:147 | |
Symbol 143 Graphic | Used by:147 | |
Symbol 144 Graphic | Used by:147 | |
Symbol 145 Graphic | Used by:147 | |
Symbol 146 Graphic | Used by:147 | |
Symbol 147 MovieClip | Uses:142 143 144 145 146 | Used by:148 171 |
Symbol 148 MovieClip | Uses:130 135 141 147 | Used by:172 |
Symbol 149 Graphic | Used by:165 | |
Symbol 150 Graphic | Used by:157 | |
Symbol 151 Graphic | Used by:157 | |
Symbol 152 Graphic | Used by:157 | |
Symbol 153 Graphic | Used by:157 | |
Symbol 154 Graphic | Used by:157 | |
Symbol 155 Graphic | Used by:157 | |
Symbol 156 Graphic | Used by:157 | |
Symbol 157 MovieClip | Uses:150 151 152 153 154 155 156 | Used by:165 |
Symbol 158 Graphic | Used by:164 | |
Symbol 159 Graphic | Used by:164 | |
Symbol 160 Graphic | Used by:164 | |
Symbol 161 Graphic | Used by:164 | |
Symbol 162 Graphic | Used by:164 | |
Symbol 163 Graphic | Used by:164 | |
Symbol 164 MovieClip | Uses:23 158 159 160 161 162 163 | Used by:165 |
Symbol 165 MovieClip | Uses:149 157 164 31 32 33 34 35 | Used by:172 |
Symbol 166 MovieClip | Uses:37 42 49 | Used by:172 |
Symbol 167 MovieClip | Uses:51 56 64 65 66 67 68 69 | Used by:172 |
Symbol 168 MovieClip | Uses:71 74 81 87 | Used by:172 |
Symbol 169 MovieClip | Uses:89 94 102 108 | Used by:172 |
Symbol 170 MovieClip | Uses:110 115 122 128 | Used by:172 |
Symbol 171 MovieClip | Uses:130 135 141 147 | Used by:172 |
Symbol 172 MovieClip [game_piece] | Uses:13 36 50 70 88 109 129 148 165 166 167 168 169 170 171 | Used by:175 |
Symbol 173 Graphic | Used by:174 | |
Symbol 174 MovieClip | Uses:173 | Used by:175 |
Symbol 175 MovieClip [PieceComponent] | Uses:172 174 | |
Symbol 176 MovieClip [TextfieldExtensions] | ||
Symbol 177 MovieClip [ObjectExtensions] | ||
Symbol 178 Font | Used by:179 | |
Symbol 179 EditableText | Uses:178 | Used by:180 |
Symbol 180 MovieClip [points_animation] | Uses:179 | |
Symbol 181 Graphic | Used by:Timeline | |
Symbol 182 Graphic | Used by:183 | |
Symbol 183 MovieClip | Uses:182 | Used by:192 |
Symbol 184 Graphic | Used by:185 | |
Symbol 185 MovieClip | Uses:184 | Used by:192 |
Symbol 186 Graphic | Used by:192 | |
Symbol 187 ShapeTweening | Used by:192 | |
Symbol 188 Graphic | Used by:192 | |
Symbol 189 Graphic | Used by:190 | |
Symbol 190 MovieClip | Uses:189 | Used by:192 |
Symbol 191 Graphic | Used by:192 | |
Symbol 192 MovieClip | Uses:183 185 186 187 188 190 191 | Used by:197 |
Symbol 193 Font | Used by:194 198 241 243 246 249 251 253 258 259 343 358 372 384 398 403 | |
Symbol 194 EditableText | Uses:193 | Used by:195 |
Symbol 195 MovieClip | Uses:194 | Used by:197 |
Symbol 196 MovieClip | Used by:197 | |
Symbol 197 MovieClip | Uses:192 195 196 | Used by:Timeline |
Symbol 198 EditableText | Uses:193 288 | Used by:Timeline |
Symbol 199 Graphic | Used by:Timeline | |
Symbol 200 Graphic | Used by:201 | |
Symbol 201 MovieClip | Uses:200 | Used by:Timeline |
Symbol 202 Graphic | Used by:Timeline | |
Symbol 203 Graphic | Used by:Timeline | |
Symbol 204 Graphic | Used by:210 260 407 | |
Symbol 205 Graphic | Used by:210 260 407 | |
Symbol 206 Graphic | Used by:210 260 | |
Symbol 207 Graphic | Used by:210 260 | |
Symbol 208 Graphic | Used by:210 260 | |
Symbol 209 Graphic | Used by:210 260 | |
Symbol 210 Button | Uses:204 205 206 207 208 209 | Used by:Timeline |
Symbol 211 Font | Used by:212 | |
Symbol 212 Text | Uses:211 | Used by:Timeline |
Symbol 213 Graphic | Used by:Timeline | |
Symbol 214 Graphic | Used by:Timeline | |
Symbol 215 Graphic | Used by:Timeline | |
Symbol 216 Graphic | Used by:Timeline | |
Symbol 217 Graphic | Used by:218 | |
Symbol 218 MovieClip | Uses:217 | Used by:237 |
Symbol 219 Graphic | Used by:222 | |
Symbol 220 Graphic | Used by:222 | |
Symbol 221 Graphic | Used by:222 | |
Symbol 222 MovieClip | Uses:219 220 221 | Used by:227 229 231 233 |
Symbol 223 Graphic | Used by:225 | |
Symbol 224 Graphic | Used by:225 | |
Symbol 225 Button | Uses:223 224 | Used by:227 229 231 233 |
Symbol 226 Graphic | Used by:227 | |
Symbol 227 MovieClip | Uses:222 225 226 | Used by:237 |
Symbol 228 Graphic | Used by:229 | |
Symbol 229 MovieClip | Uses:222 225 228 | Used by:237 |
Symbol 230 Graphic | Used by:231 | |
Symbol 231 MovieClip | Uses:222 225 230 | Used by:237 |
Symbol 232 Graphic | Used by:233 | |
Symbol 233 MovieClip | Uses:222 225 232 | Used by:237 |
Symbol 234 Font | Used by:235 | |
Symbol 235 EditableText | Uses:234 | Used by:237 |
Symbol 236 Graphic | Used by:237 | |
Symbol 237 MovieClip | Uses:218 227 229 231 233 235 236 | Used by:Timeline |
Symbol 238 Graphic | Used by:Timeline | |
Symbol 239 Graphic | Used by:247 254 | |
Symbol 240 Graphic | Used by:247 | |
Symbol 241 EditableText | Uses:193 | Used by:247 |
Symbol 242 Graphic | Used by:247 | |
Symbol 243 EditableText | Uses:193 | Used by:247 |
Symbol 244 Graphic | Used by:247 | |
Symbol 245 Graphic | Used by:247 254 | |
Symbol 246 Text | Uses:193 | Used by:247 |
Symbol 247 Button | Uses:239 240 241 242 243 244 245 246 | Used by:257 |
Symbol 248 Graphic | Used by:254 | |
Symbol 249 EditableText | Uses:193 | Used by:254 |
Symbol 250 Graphic | Used by:254 | |
Symbol 251 EditableText | Uses:193 | Used by:254 |
Symbol 252 Graphic | Used by:254 | |
Symbol 253 Text | Uses:193 | Used by:254 |
Symbol 254 Button | Uses:239 248 249 250 251 252 245 253 | Used by:257 |
Symbol 255 Graphic | Used by:257 | |
Symbol 256 Graphic | Used by:257 | |
Symbol 257 MovieClip | Uses:247 254 255 256 | Used by:Timeline |
Symbol 258 EditableText | Uses:193 | Used by:Timeline |
Symbol 259 EditableText | Uses:193 | Used by:Timeline |
Symbol 260 Button | Uses:204 205 206 207 208 209 | Used by:Timeline |
Symbol 261 Graphic | Used by:Timeline | |
Symbol 262 Graphic | Used by:392 | |
Symbol 263 Graphic | Used by:264 | |
Symbol 264 MovieClip | Uses:263 | Used by:267 |
Symbol 265 Graphic | Used by:266 | |
Symbol 266 MovieClip | Uses:265 | Used by:267 |
Symbol 267 MovieClip | Uses:264 266 | Used by:272 |
Symbol 268 Graphic | Used by:271 | |
Symbol 269 Font | Used by:270 | |
Symbol 270 Text | Uses:269 | Used by:271 |
Symbol 271 MovieClip | Uses:268 270 | Used by:272 |
Symbol 272 MovieClip | Uses:267 271 | Used by:392 |
Symbol 273 Graphic | Used by:278 | |
Symbol 274 Graphic | Used by:275 | |
Symbol 275 MovieClip | Uses:274 | Used by:278 |
Symbol 276 Graphic | Used by:277 | |
Symbol 277 MovieClip | Uses:276 | Used by:278 |
Symbol 278 MovieClip | Uses:273 275 277 | Used by:392 |
Symbol 279 Graphic | Used by:280 | |
Symbol 280 MovieClip | Uses:279 | Used by:392 |
Symbol 281 Graphic | Used by:282 | |
Symbol 282 MovieClip | Uses:281 | Used by:392 |
Symbol 283 Graphic | Used by:392 | |
Symbol 284 Graphic | Used by:287 291 293 296 298 301 392 Timeline | |
Symbol 285 Graphic | Used by:287 | |
Symbol 286 Graphic | Used by:287 291 293 296 298 301 | |
Symbol 287 Button | Uses:284 285 286 | Used by:392 |
Symbol 288 Font | Used by:198 289 311 312 317 318 320 329 403 410 | |
Symbol 289 EditableText | Uses:288 | Used by:392 |
Symbol 290 Graphic | Used by:291 | |
Symbol 291 Button | Uses:284 290 286 | Used by:294 |
Symbol 292 Graphic | Used by:293 | |
Symbol 293 Button | Uses:284 292 286 | Used by:294 |
Symbol 294 MovieClip | Uses:291 293 | Used by:392 |
Symbol 295 Graphic | Used by:296 | |
Symbol 296 Button | Uses:284 295 286 | Used by:299 |
Symbol 297 Graphic | Used by:298 | |
Symbol 298 Button | Uses:284 297 286 | Used by:299 |
Symbol 299 MovieClip | Uses:296 298 | Used by:392 |
Symbol 300 Graphic | Used by:301 | |
Symbol 301 Button | Uses:284 300 286 | Used by:392 |
Symbol 302 Graphic | Used by:392 Timeline | |
Symbol 303 ShapeTweening | Used by:336 | |
Symbol 304 Sound | Used by:336 | |
Symbol 305 ShapeTweening | Used by:336 | |
Symbol 306 ShapeTweening | Used by:336 | |
Symbol 307 ShapeTweening | Used by:336 | |
Symbol 308 ShapeTweening | Used by:336 | |
Symbol 309 Graphic | Used by:336 | |
Symbol 310 ShapeTweening | Used by:336 | |
Symbol 311 Text | Uses:288 | Used by:336 |
Symbol 312 EditableText | Uses:288 | Used by:336 |
Symbol 313 Graphic | Used by:316 | |
Symbol 314 Graphic | Used by:316 | |
Symbol 315 Graphic | Used by:316 | |
Symbol 316 Button | Uses:313 314 315 | Used by:319 |
Symbol 317 EditableText | Uses:288 | Used by:319 |
Symbol 318 EditableText | Uses:288 | Used by:319 |
Symbol 319 MovieClip | Uses:316 317 318 | Used by:336 |
Symbol 320 Text | Uses:288 | Used by:336 |
Symbol 321 ShapeTweening | Used by:336 | |
Symbol 322 ShapeTweening | Used by:336 | |
Symbol 323 ShapeTweening | Used by:336 | |
Symbol 324 ShapeTweening | Used by:336 | |
Symbol 325 ShapeTweening | Used by:336 | |
Symbol 326 ShapeTweening | Used by:336 | |
Symbol 327 Graphic | Used by:336 | |
Symbol 328 ShapeTweening | Used by:336 | |
Symbol 329 Text | Uses:288 | Used by:336 |
Symbol 330 ShapeTweening | Used by:336 | |
Symbol 331 ShapeTweening | Used by:336 | |
Symbol 332 ShapeTweening | Used by:336 | |
Symbol 333 ShapeTweening | Used by:336 | |
Symbol 334 ShapeTweening | Used by:336 | |
Symbol 335 ShapeTweening | Used by:336 | |
Symbol 336 MovieClip | Uses: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 335 | Used by:392 |
Symbol 337 ShapeTweening | Used by:351 | |
Symbol 338 Sound | Used by:351 | |
Symbol 339 ShapeTweening | Used by:351 | |
Symbol 340 ShapeTweening | Used by:351 | |
Symbol 341 ShapeTweening | Used by:351 | |
Symbol 342 ShapeTweening | Used by:351 | |
Symbol 343 EditableText | Uses:193 | Used by:351 |
Symbol 344 ShapeTweening | Used by:351 | |
Symbol 345 ShapeTweening | Used by:351 | |
Symbol 346 ShapeTweening | Used by:351 | |
Symbol 347 ShapeTweening | Used by:351 | |
Symbol 348 ShapeTweening | Used by:351 | |
Symbol 349 ShapeTweening | Used by:351 | |
Symbol 350 Graphic | Used by:351 365 378 391 | |
Symbol 351 MovieClip | Uses:337 338 339 340 341 342 343 344 345 346 347 348 349 350 | Used by:392 |
Symbol 352 ShapeTweening | Used by:365 | |
Symbol 353 Sound | Used by:365 | |
Symbol 354 ShapeTweening | Used by:365 | |
Symbol 355 ShapeTweening | Used by:365 | |
Symbol 356 ShapeTweening | Used by:365 | |
Symbol 357 ShapeTweening | Used by:365 | |
Symbol 358 Text | Uses:193 | Used by:365 |
Symbol 359 ShapeTweening | Used by:365 | |
Symbol 360 ShapeTweening | Used by:365 | |
Symbol 361 ShapeTweening | Used by:365 | |
Symbol 362 ShapeTweening | Used by:365 | |
Symbol 363 ShapeTweening | Used by:365 | |
Symbol 364 ShapeTweening | Used by:365 | |
Symbol 365 MovieClip | Uses:352 353 354 355 356 357 358 359 360 361 362 363 364 350 | Used by:392 |
Symbol 366 ShapeTweening | Used by:378 | |
Symbol 367 ShapeTweening | Used by:378 | |
Symbol 368 ShapeTweening | Used by:378 | |
Symbol 369 ShapeTweening | Used by:378 | |
Symbol 370 ShapeTweening | Used by:378 | |
Symbol 371 ShapeTweening | Used by:378 | |
Symbol 372 Text | Uses:193 | Used by:378 |
Symbol 373 ShapeTweening | Used by:378 | |
Symbol 374 ShapeTweening | Used by:378 | |
Symbol 375 ShapeTweening | Used by:378 | |
Symbol 376 ShapeTweening | Used by:378 | |
Symbol 377 ShapeTweening | Used by:378 | |
Symbol 378 MovieClip | Uses:366 367 368 369 370 371 372 373 374 375 376 377 350 | Used by:392 |
Symbol 379 ShapeTweening | Used by:391 | |
Symbol 380 ShapeTweening | Used by:391 | |
Symbol 381 ShapeTweening | Used by:391 | |
Symbol 382 ShapeTweening | Used by:391 | |
Symbol 383 ShapeTweening | Used by:391 | |
Symbol 384 Text | Uses:193 | Used by:391 |
Symbol 385 ShapeTweening | Used by:391 | |
Symbol 386 ShapeTweening | Used by:391 | |
Symbol 387 ShapeTweening | Used by:391 | |
Symbol 388 ShapeTweening | Used by:391 | |
Symbol 389 ShapeTweening | Used by:391 | |
Symbol 390 ShapeTweening | Used by:391 | |
Symbol 391 MovieClip | Uses:379 380 381 382 383 384 385 386 387 388 389 390 350 | Used by:392 |
Symbol 392 MovieClip [DiamondMineComponent] | Uses:262 272 278 280 282 283 287 284 289 294 299 301 302 336 351 365 378 391 | Used by:Timeline |
Symbol 393 Font | Used by:394 | |
Symbol 394 EditableText | Uses:393 | Used by:395 |
Symbol 395 MovieClip | Uses:394 | Used by:Timeline |
Symbol 396 Graphic | Used by:Timeline | |
Symbol 397 Graphic | Used by:Timeline | |
Symbol 398 Text | Uses:193 | Used by:Timeline |
Symbol 399 Graphic | Used by:402 | |
Symbol 400 Graphic | Used by:402 | |
Symbol 401 Graphic | Used by:402 | |
Symbol 402 Button | Uses:399 400 401 | Used by:Timeline |
Symbol 403 EditableText | Uses:193 288 | Used by:Timeline |
Symbol 404 Graphic | Used by:Timeline | |
Symbol 405 Graphic | Used by:407 | |
Symbol 406 Graphic | Used by:407 | |
Symbol 407 Button | Uses:204 205 405 406 | Used by:Timeline |
Symbol 408 Graphic | Used by:Timeline | |
Symbol 409 Graphic | Used by:Timeline | |
Symbol 410 EditableText | Uses:288 | Used by:Timeline |
Instance Names
"game" | Frame 4 | Symbol 392 MovieClip [DiamondMineComponent] |
"score_txt" | Frame 6 | Symbol 410 EditableText |
"sub" | Symbol 172 MovieClip [game_piece] Frame 1 | Symbol 36 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 2 | Symbol 50 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 3 | Symbol 70 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 4 | Symbol 88 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 5 | Symbol 109 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 6 | Symbol 129 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 7 | Symbol 148 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 8 | Symbol 165 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 9 | Symbol 166 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 10 | Symbol 167 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 11 | Symbol 168 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 12 | Symbol 169 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 13 | Symbol 170 MovieClip |
"sub" | Symbol 172 MovieClip [game_piece] Frame 14 | Symbol 171 MovieClip |
"pieces" | Symbol 175 MovieClip [PieceComponent] Frame 1 | Symbol 172 MovieClip [game_piece] |
"selector_mc" | Symbol 175 MovieClip [PieceComponent] Frame 1 | Symbol 174 MovieClip |
"anim" | Symbol 197 MovieClip Frame 1 | Symbol 192 MovieClip |
"perc" | Symbol 197 MovieClip Frame 1 | Symbol 195 MovieClip |
"swfloader" | Symbol 197 MovieClip Frame 1 | Symbol 196 MovieClip |
"backgrounds" | Symbol 272 MovieClip Frame 1 | Symbol 267 MovieClip |
"play_area" | Symbol 272 MovieClip Frame 1 | Symbol 271 MovieClip |
"frame_mc" | Symbol 278 MovieClip Frame 1 | Symbol 275 MovieClip |
"bar_mc" | Symbol 278 MovieClip Frame 1 | Symbol 277 MovieClip |
"choice0" | Symbol 336 MovieClip Frame 22 | Symbol 319 MovieClip |
"choice1" | Symbol 336 MovieClip Frame 22 | Symbol 319 MovieClip |
"choice2" | Symbol 336 MovieClip Frame 22 | Symbol 319 MovieClip |
"choice3" | Symbol 336 MovieClip Frame 22 | Symbol 319 MovieClip |
"piece_holder" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 272 MovieClip |
"timer_mc" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 278 MovieClip |
"score_txt" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 289 EditableText |
"quiz_prompt" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 336 MovieClip |
"level_prompt" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 351 MovieClip |
"new_board_prompt" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 365 MovieClip |
"paused_prompt" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 378 MovieClip |
"game_over_prompt" | Symbol 392 MovieClip [DiamondMineComponent] Frame 1 | Symbol 391 MovieClip |
Special Tags
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "sdb_hit1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "sdb_hit3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "egg_move_sound" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "snap_sound" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "ddd_shoot2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "ddd_shoot1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 7 as "clear_sound2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 8 as "clear_sound1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 9 as "clear_sound0" |
ExportAssets (56) | Timeline Frame 1 | Symbol 10 as "MathExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 11 as "ArrayExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 12 as "MovieClipExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 172 as "game_piece" |
ExportAssets (56) | Timeline Frame 1 | Symbol 172 as "game_piece" |
ExportAssets (56) | Timeline Frame 1 | Symbol 175 as "PieceComponent" |
ExportAssets (56) | Timeline Frame 1 | Symbol 176 as "TextfieldExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 177 as "ObjectExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 180 as "points_animation" |
ExportAssets (56) | Timeline Frame 4 | Symbol 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
points | Symbol 179 EditableText | "+20" |
text | Symbol 194 EditableText | "" |
Symbol 235 EditableText | "enter email" | |
question | Symbol 312 EditableText | "" |
field | Symbol 317 EditableText | "" |
choice | Symbol 318 EditableText | "" |
field | Symbol 343 EditableText | "" |
score | Symbol 410 EditableText | "0" |
|