STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229593 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #42066 |
+20 |
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! |
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! |
0 |
ActionScript [AS1/AS2]
Instance of Symbol 193 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 3stop();Frame 4stop();Frame 5game.game_type = _root.game_type; game.automatic_hint = false; stop(); _root._quality = "MEDIUM";Instance of Symbol 398 MovieClip [DiamondMineComponent] "game" in Frame 5//component parameters onClipEvent (initialize) { use_quiz = "True"; quiz_data_file = "dino_quiz.txt"; quiz_piece_probability = 0.2; correct_points = 100; incorrect_points = -20; max_quiz_per_level = 3; game_type = "Timer"; time_percent_change = 0.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; }Frame 6stop(); _root._quality = "HIGH";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 _local1 = this; var _local2 = _local1[a]; _local1[a] = _local1[b]; _local1[b] = _local2; }; Array.prototype.swap2D = function (a, b, c, d) { var _local1 = this; var _local2 = _local1[a][b]; _local1[a][b] = _local1[c][d]; _local1[c][d] = _local2; }; Array.prototype.shuffle = function () { var _local3 = this; var _local2 = _local3.length; var _local1 = 0; while (_local1 < _local2) { _local3.swap(_local1, Math.randi(0, _local2)); _local1++; } }; 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 _local3 = B; var _array = new Array(); var a_length = A.length; var b_length = _local3.length; var _local1 = 0; while (_local1 < a_length) { var found = false; var _local2 = 0; while (_local2 < b_length) { if (A[_local1] == _local3[_local2]) { found = true; } _local2++; } if (!found) { _array._push(A[_local1]); } _local1++; } var _local2 = 0; while (_local2 < b_length) { var found = false; _local1 = 0; while (_local1 < a_length) { if (_local3[_local2] == A[_local1]) { found = true; } _local1++; } if (!found) { _array._push(_local3[_local2]); } _local2++; } return(_array); }; Array.prototype.remove_repeats = function () { var _local3 = this; var _array = new Array(); var _local1 = 0; while (_local1 < _local3.length) { found = false; var _local2 = 0; while (_local2 < _array.length) { if (typeof(_local3[_local1]) == "object") { var equal = true; for (var n in _local3[_local1]) { if (_local3[_local1][n] != _array[_local2][n]) { equal = false; } } if (equal) { found = true; } } else if (_local3[_local1] == _array[_local2]) { found = true; } _local2++; } if (!found) { _array._push(_local3[_local1]); } _local1++; } return(_array); }; Array.getIndices = function (a, b) { var _local3 = b; var _local2 = new Array(); var _local1 = a; while (_local1 <= _local3) { _local2._push(_local1); _local1++; } return(_local2); }; Array.prototype.return_copy = function () { var _local2 = this; var _local3 = new Array(); var _local1 = 0; while (_local1 < _local2.length) { _local3[_local1] = _local2[_local1]; _local1++; } return(_local3); }; #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) { var _local1 = frame; var _local2 = this; _local2.playing = true; if (typeof(_local1) == "string") { _local2._currentlabel = _local1; } _local2.gotoAndPlay(_local1); }; MovieClip.prototype._gotoAndStop = function (frame) { var _local1 = frame; var _local2 = this; _local2.playing = false; if (typeof(_local1) == "string") { _local2._currentlabel = _local1; } _local2.gotoAndStop(_local1); }; MovieClip.prototype.hasLabel = function (label) { var _local1 = this; _local1.duplicateMovieClip("__TEMP__", 97324, {_x:-1, _y:-1, _visible:false, _width:1, _height:1}); new Sound(_local1._parent.__TEMP__).setVolume(0); _local1._parent.__TEMP__.gotoAndStop(label); var _local3 = _local1._parent.__TEMP__._currentframe; _local1._parent.__TEMP__.nextFrame(); _local1._parent.__TEMP__.gotoAndStop(label); var frame_f = _local1._parent.__TEMP__._currentframe; var _local2 = _local3 == frame_f; _local1._parent.__TEMP__.removeMovieClip(); return(_local2); }; 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 69 MovieClip Frame 1this._stop();Symbol 69 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 69 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 69 MovieClip Frame 62this._gotoAndStop("Default");Symbol 87 MovieClip Frame 1this._stop();Symbol 87 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 87 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 87 MovieClip Frame 62this._gotoAndStop("Default");Symbol 107 MovieClip Frame 1this._stop();Symbol 107 MovieClip Frame 25if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 107 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 107 MovieClip Frame 62this._gotoAndStop("Default");Symbol 126 MovieClip Frame 1this._stop();Symbol 126 MovieClip Frame 28if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 126 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 126 MovieClip Frame 62this._gotoAndStop("Default");Symbol 144 MovieClip Frame 1this._stop();Symbol 144 MovieClip Frame 30if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 144 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 144 MovieClip Frame 62this._gotoAndStop("Default");Symbol 161 MovieClip Frame 1this._stop();Symbol 161 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 161 MovieClip Frame 37if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 161 MovieClip Frame 62this._gotoAndStop("Default");Symbol 162 MovieClip Frame 1this._stop();Symbol 162 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 162 MovieClip Frame 37if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 162 MovieClip Frame 62this._gotoAndStop("Default");Symbol 163 MovieClip Frame 1this._stop();Symbol 163 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 163 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 163 MovieClip Frame 62this._gotoAndStop("Default");Symbol 164 MovieClip Frame 1this._stop();Symbol 164 MovieClip Frame 23if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 164 MovieClip Frame 36if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 164 MovieClip Frame 62this._gotoAndStop("Default");Symbol 165 MovieClip Frame 1this._stop();Symbol 165 MovieClip Frame 25if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 165 MovieClip Frame 44if (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 28if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 166 MovieClip Frame 44if (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 30if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }Symbol 167 MovieClip Frame 44if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }Symbol 167 MovieClip Frame 62this._gotoAndStop("Default");Symbol 168 MovieClip [game_piece] Frame 1this._stop();Symbol 170 MovieClip Frame 1stop();Symbol 170 MovieClip Frame 62this._gotoAndPlay(2);Symbol 171 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 () { var _local1 = this; _local1.velocity_x = 0; _local1.velocity_y = 0; _local1.acceleration_x = 0; _local1.acceleration_y = 0; _local1.onEnterFrame = _local1.fall_to_position; _local1.useHandCursor = false; }; PieceClass.prototype.initialize_graphics = function () { var _local1 = this; _local1.pieces._gotoAndStop(_local1.type); if (_local1.quiz) { _local1.pieces._gotoAndStop(_local1.pieces._currentframe + (_local1.pieces._totalframes / 2)); } }; PieceClass.prototype.rattle = function () { var _local1 = this; _local1._x = _local1.final_position_x + Math.randf(-5, 5); _local1._y = _local1.final_position_y + Math.randf(-5, 5); }; PieceClass.prototype.fall_to_position = function () { var _local1 = this; _local1.velocity_x = _local1.velocity_x + _local1.acceleration_x; _local1.velocity_y = _local1.velocity_y + _local1.acceleration_y; _local1._x = _local1._x + _local1.velocity_x; _local1._y = _local1._y + _local1.velocity_y; if (_local1._y > _local1.final_position_y) { if (_local1.remove_piece) { _local1.onEnterFrame = undefined; var _local2 = true; for (var _local3 in _local1._parent) { if (_local1._parent[_local3].onEnterFrame != undefined) { _local2 = false; } } if (_local2 && (_local1.regenerate)) { _local1._parent._parent.initialize_initial_pieces(); } else if (_local2 && (_local1.game_over)) { _root.gotoAndStop("Game Over"); } else if (_local2) { _local1._parent._parent.initialize_level(); } _local1.unloadMovie(); } else { _local1.velocity_y = 0; _local1._y = _local1.final_position_y; delete _local1.onEnterFrame; _local1._parent._parent.check_all_stopped(); } } }; PieceClass.prototype.wait_to_fall = function () { var _local1 = this; if ((_local1.current_frame++) >= _local1.num_wait_frames) { _local1.onEnterFrame = _local1.fall_to_position; } }; PieceClass.prototype.onMouseDown = function () { var _local1 = this; if (_local1.hitTest(_root._xmouse, _root._ymouse, true)) { _local1._parent._parent.clicked_piece(_local1); } }; PieceClass.prototype.slide_new_position = function () { var _local1 = this; _local1._x = _local1._x + ((_local1.final_position_x - _local1._x) / 4); _local1._y = _local1._y + ((_local1.final_position_y - _local1._y) / 4); if ((Math.abs(_local1._x - _local1.final_position_x) <= 1) && (Math.abs(_local1._y - _local1.final_position_y) <= 1)) { _local1.callback(); } }; PieceClass.prototype.onRollOver = function () { var _local1 = this; if (_local1.pieces.sub._currentframe != 1) { } else if (_local1.pieces.sub._currentlabel != "Clicked Animation") { _local1._parent._parent.last_clicked_time = getTimer(); _local1.pieces.sub.mouseOver = true; _local1.pieces.sub._gotoAndPlay("Rollover Animation"); } }; PieceClass.prototype.onRollOut = function () { if (this.pieces.sub._currentlabel != "Clicked Animation") { this.pieces.sub.mouseOver = false; } }; #endinitclipSymbol 172 MovieClip [TextfieldExtensions] Frame 1#initclip 1 TextField.prototype.scrollToNumber = function (goToNumber, speed) { var _local1 = this; _local1.current_num = Number(_local1.text); _local1.goToNumber = goToNumber; if (_local1.scroller_interval != undefined) { clearInterval(_local1.scroller_interval); } _local1.scroller_interval = setInterval(_local1.incrementNumber, speed, _local1); }; Textfield.prototype.incrementNumber = function (_txt) { var _local1 = _txt; if (Number(_local1.text) < Number(_local1.goToNumber)) { _local1.text = Math.floor(Number(_local1.text) + 1); } else { _local1.text = Math.floor(Number(_local1.text) - 1); } if (Number(_local1.text) == Number(_local1.goToNumber)) { clearInterval(_local1.scroller_interval); _local1.scroller_interval = undefined; } }; #endinitclipSymbol 173 MovieClip [ObjectExtensions] Frame 1#initclip 4 Object.prototype.swap = function (a, b) { var _local1 = this; var _local2 = _local1[a]; _local1[a] = _local1[b]; _local1[b] = _local2; }; #endinitclipSymbol 176 MovieClip [points_animation] Frame 16this.unloadMovie();Symbol 193 MovieClip Frame 1stop();Instance of Symbol 192 MovieClip "swfloader" in Symbol 193 MovieClip Frame 1onClipEvent (load) { function strip_spaces(str) { var _local2 = str; var _local3 = new String(""); var _local1 = 0; while (_local1 < _local2.length) { if ((_local2.charAt(_local1) != " ") && (_local2.charAt(_local1) != ";")) { _local3 = _local3 + _local2.charAt(_local1); } _local1++; } return(_local3); } function simple_script(action, timeline) { action = strip_spaces(action); if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) { var _local3 = action.split("."); var timeline_action = _local3.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 _local2 = timeline; var _local1 = 0; while (_local1 < _local3.length) { _local2 = _local2[_local3[_local1]]; _local1++; } if (function_parameter.indexOf("\"") != -1) { function_parameter = function_parameter.substr(1, function_parameter.length - 2); } _local2[timeline_function](function_parameter); } } function execute_action() { var _local1 = _parent; unloaded = true; _local1._visible = false; simple_script(_local1.play_action_val, _local1); } _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 201 MovieClip Frame 1_root.stop();Symbol 201 MovieClip Frame 65stop(); _root.play();Symbol 202 Buttonon (release) { getURL ("http://www.urgames.com", "_blank"); }Symbol 213 Buttonon (release) { this.play(); }Symbol 222 Buttonon (release) { getURL ("http://www.urgames.com", "_blank"); }Symbol 231 Buttonon (release) { play(); }Symbol 237 Buttonon (release) { getURL ("http://www.gamesforyourwebsite.com", "_blank"); }Symbol 240 Buttonon (release) { getURL ("http://www.urgames.com", "_blank"); }Symbol 242 Buttonon (release) { getURL ("http://www.urgames.com/cheats", "_blank"); }Symbol 243 MovieClip Frame 1stop();Symbol 244 MovieClip Frame 1stop();Symbol 244 MovieClip Frame 10stop();Symbol 254 Buttonon (press) { this.gotoAndStop(1); }Symbol 261 Buttonon (press) { this.gotoAndStop(2); }Symbol 263 MovieClip Frame 1stop(); _root.game_type = "Normal";Symbol 263 MovieClip Frame 2_root.game_type = "Timer";Symbol 266 Buttonon (release) { this.play(); }Symbol 273 MovieClip Frame 1this._stop();Symbol 273 MovieClip Frame 2this._stop();Symbol 273 MovieClip Frame 3this._stop();Symbol 273 MovieClip Frame 4this._stop();Symbol 273 MovieClip Frame 5this._stop();Symbol 277 MovieClip Frame 1this._visible = false;Symbol 283 MovieClip Frame 1stop();Symbol 284 MovieClip Frame 1stop();Symbol 293 Buttonon (press) { _root.gotoAndStop("Starting Screen"); }Symbol 297 Buttonon (press) { if (_parent.paused_prompt._currentframe != 1) { return(undefined); } _parent.pause_game(); this.nextFrame(); }Symbol 299 Buttonon (press) { if (_parent.paused_prompt._currentframe != 22) { return(undefined); } _parent.unpause_game(); this.prevFrame(); }Symbol 300 MovieClip Frame 1stop();Symbol 302 Buttonon (press) { nextFrame(); }Symbol 304 Buttonon (press) { prevFrame(); }Symbol 305 MovieClip Frame 1stop(); delete this.onEnterFrame;Symbol 305 MovieClip Frame 2this.onEnterFrame = function () { stopAllSounds(); };Symbol 307 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 322 Buttonon (press) { _parent._parent.evaluate_answer(this); }Symbol 342 MovieClip Frame 1stop();Symbol 342 MovieClip Frame 22stop(); _parent.fill_quiz_form();Symbol 342 MovieClip Frame 59this._gotoAndStop(1);Symbol 342 MovieClip Frame 96this._gotoAndStop(1);Symbol 357 MovieClip Frame 60this._gotoAndStop(1);Symbol 371 MovieClip Frame 1stop();Symbol 371 MovieClip Frame 75this._gotoAndStop(1);Symbol 384 MovieClip Frame 1stop();Symbol 384 MovieClip Frame 22stop();Symbol 397 MovieClip Frame 1stop();Symbol 397 MovieClip Frame 120this._gotoAndStop(1);Symbol 398 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 () { var _local1 = this; _local1.load_quiz_data(); _local1.initialize_variables(); _local1.initialize_graphics(); _local1.initialize_level(); }; DiamondMine.prototype.load_quiz_data = function () { var _local1 = this; _local1.quiz_loader = new LoadVars(); _local1.quiz_loader.load(_local1.quiz_data_file); _local1.quiz_loader.onLoad = function () { var _local2 = this; _local2.loaded_successfully = arguments[0]; _local2.num_choices_per_question = Number(_local2.num_choices_per_question); _local2.questions = new Array(); var _local1 = 0; while (_local1 >= 0) { if (_local2[("question" + _local1) + "_text"] == undefined) { break; } _local2.questions[_local1] = new Object(); _local2.questions[_local1].text = _local2[("question" + _local1) + "_text"]; _local2.questions[_local1].answer = Number(_local2[("question" + _local1) + "_answer"]); _local2.questions[_local1].choices = new Array(); var _local3 = 0; while (_local3 < _local2.num_choices_per_question) { _local2.questions[_local1].choices[_local3] = _local2[(("question" + _local1) + "_choice") + _local3]; _local3++; } _local1++; } _local2.current_question_list = _local2.questions.return_copy(); _local2.questions.shuffle(); _local2.current_question_list.shuffle(); }; }; DiamondMine.prototype.initialize_variables = function () { var _local1 = this; _local1.depth = 0; _local1.score = 0; _local1.piece_width = _local1.piece_holder.play_area._width / _local1.num_columns; _local1.piece_height = _local1.piece_holder.play_area._height / _local1.num_rows; _local1.piece = new Array(); _local1.current_level = -1; _local1.selected_piece0_mc = undefined; _local1.selected_piece1_mc = undefined; var _local2 = _local1.attachMovie("PieceComponent", "__TEMP__", 123); _local1.num_pieces = _local2.pieces._totalframes / 2; _local2.unloadMovie(); _local1.paused = false; _local1.level_questions_maxed = false; _local1.num_asked_questions = 0; }; DiamondMine.prototype.initialize_graphics = function () { }; DiamondMine.prototype.initialize_level = function () { var _local1 = this; _local1.current_level++; _local1.time_percentage = 50; _local1.level_prompt._play(); _local1.level_prompt.field = ("Level " + (_local1.current_level + 1)) + "!"; _local1.initialize_initial_pieces(); _local1.piece_holder.backgrounds._play(); _local1.level_questions_maxed = false; _local1.num_asked_questions = 0; _local1.paused = false; }; DiamondMine.prototype.initialize_initial_pieces = function () { var _local1 = this; var grid = _local1.calculate_solutionless_grid(); _local1.pieces = new Array(); var _local3 = _local1.num_rows - 1; while (_local3 >= 0) { var _local2 = 0; while (_local2 < _local1.num_columns) { if (_local3 == (_local1.num_rows - 1)) { var prev_y = (((_local1.piece_holder.play_area._y - _local1.piece_holder.play_area._height) + (_local1.num_rows * _local1.piece_height)) - Math.randf(0, 50)); } else { var prev_y = _local1.piece_holder[(("piece_" + (_local3 + 1)) + "_") + _local2]._y; } var initial_position_x = (_local1.piece_holder.play_area._x + (_local2 * _local1.piece_width)); var initial_position_y = ((prev_y - (_local1.piece_height * 2)) - Math.randf(50, 100)); var final_position_x = _local1.calculate_final_position(_local3, _local2).x; var final_position_y = _local1.calculate_final_position(_local3, _local2).y; _local1.create_piece(_local3, _local2, initial_position_x, initial_position_y, final_position_x, final_position_y, grid[_local3][_local2]); _local2++; } _local3--; } }; DiamondMine.prototype.create_piece = function (index_j, index_k, initial_position_x, initial_position_y, final_position_x, final_position_y, type) { var _local2 = this; if (((_local2.use_quiz == "True") && (_local2.quiz_loader.loaded_successfully)) && (!_local2.level_questions_maxed)) { if (Math.random() <= _local2.quiz_piece_probability) { var quiz = true; } else { var quiz = false; } } var _local1 = _local2.piece_holder.attachMovie("PieceComponent", (("piece_" + index_j) + "_") + index_k, _local2.depth++, {type:type, quiz:quiz}); _local1.index_j = index_j; _local1.index_k = index_k; _local1._width = _local2.piece_width; _local1._height = _local2.piece_height; _local1._x = initial_position_x; _local1._y = initial_position_y; _local1.final_position_x = final_position_x; _local1.final_position_y = final_position_y; _local1.acceleration_y = _local2.piece_acceleration; }; DiamondMine.prototype.clicked_piece = function (piece_mc) { var _local1 = this; var _local2 = piece_mc; if (_local1.paused) { } else if (_local1.check_for_movement()) { } else { _local1.last_clicked_time = getTimer(); if (_local2.selector_mc._currentframe != 1) { _local1.unselect_piece(_local2); } else if (_local1.selected_piece0_mc != undefined) { _local1.select_piece(_local2); _local1.evaluate_player_selection(); _local1.play_sound("egg_move_sound"); } else { _local1.select_piece(_local2); } } }; DiamondMine.prototype.unselect_piece = function (piece_mc, custom_animation) { var _local1 = this; var _local2 = piece_mc; _local2.selector_mc._gotoAndStop(1); if (!custom_animation) { _local2.pieces.sub._gotoAndStop("Default"); } _local1.selected_piece0_mc.pieces.sub._gotoAndPlay("Remove Animation"); _local1.selected_piece1_mc.pieces.sub._gotoAndPlay("Remove Animation"); if (_local2 == _local1.selected_piece0_mc) { _local1.selected_piece0_mc = undefined; } if (_local2 == _local1.selected_piece1_mc) { _local1.selected_piece1_mc = undefined; } }; DiamondMine.prototype.select_piece = function (piece_mc) { var _local1 = piece_mc; var _local2 = this; _local1.selector_mc._gotoAndPlay(2); _local1.pieces.sub._gotoAndPlay("Clicked Animation"); if (_local2.selected_piece0_mc == undefined) { _local2.selected_piece0_mc = _local1; } else { _local2.selected_piece1_mc = _local1; _local1.selector_mc._gotoAndPlay(_local2.selected_piece0_mc.selector_mc._currentframe); } }; DiamondMine.prototype.evaluate_player_selection = function () { var _local1 = this; if (_local1.adjacent_selections()) { _local1.selected_adjacent_pieces(); } else { _local1.selected_nonadjacent_pieces(); } }; DiamondMine.prototype.adjacent_selections = function () { var _local1 = this; return(((_local1.selected_piece0_mc.index_j == _local1.selected_piece1_mc.index_j) && (Math.abs(_local1.selected_piece0_mc.index_k - _local1.selected_piece1_mc.index_k) == 1)) || ((_local1.selected_piece0_mc.index_k == _local1.selected_piece1_mc.index_k) && (Math.abs(_local1.selected_piece0_mc.index_j - _local1.selected_piece1_mc.index_j) == 1))); }; DiamondMine.prototype.selected_adjacent_pieces = function () { var _local1 = this; _local1.swap_selected_pieces(); _local1.selected_piece0_mc.selector_mc._gotoAndStop(1); _local1.selected_piece1_mc.selector_mc._gotoAndStop(1); _local1.selected_piece0_mc.pieces.sub._gotoAndStop("Default"); _local1.selected_piece1_mc.pieces.sub._gotoAndStop("Default"); }; DiamondMine.prototype.swap_selected_pieces = function () { var _local1 = this; _local1.swap_selected_indices(); _local1.swap_selected_instance_names(); _local1.selected_piece0_mc.onEnterFrame = _local1.selected_piece0_mc.slide_new_position; _local1.selected_piece1_mc.onEnterFrame = _local1.selected_piece1_mc.slide_new_position; _local1.selected_piece0_mc.callback = _local1.piece_sliding_done_before; _local1.selected_piece1_mc.callback = undefined; _local1.update_final_position(_local1.selected_piece0_mc); _local1.update_final_position(_local1.selected_piece1_mc); }; DiamondMine.prototype.swap_selected_pieces_back = function () { var _local1 = this; _local1.swap_selected_pieces(); _local1.selected_piece0_mc.callback = _local1.piece_sliding_done_after; _local1.selected_piece1_mc.callback = undefined; var _local3 = _local1.selected_piece0_mc; var _local2 = _local1.selected_piece1_mc; if (_local1.selected_piece0_mc.pieces.sub.hasLabel("Wrong Move")) { _local3.pieces.sub._gotoAndPlay("Wrong Move"); } if (_local1.selected_piece1_mc.pieces.sub.hasLabel("Wrong Move")) { _local2.pieces.sub._gotoAndPlay("Wrong Move"); } _local1.unselect_piece(_local1.selected_piece0_mc, true); _local1.unselect_piece(_local1.selected_piece1_mc, true); }; DiamondMine.prototype.swap_selected_indices = function () { var _local1 = this; var _local3 = {a:_local1.selected_piece0_mc.index_j, b:_local1.selected_piece1_mc.index_j}; var _local2 = {a:_local1.selected_piece0_mc.index_k, b:_local1.selected_piece1_mc.index_k}; _local3.swap("a", "b"); _local2.swap("a", "b"); _local1.selected_piece0_mc.index_j = _local3.a; _local1.selected_piece0_mc.index_k = _local2.a; _local1.selected_piece1_mc.index_j = _local3.b; _local1.selected_piece1_mc.index_k = _local2.b; }; DiamondMine.prototype.swap_selected_instance_names = function () { var _local1 = this; var _local3 = _local1.selected_piece0_mc._name; var _local2 = _local1.selected_piece1_mc._name; _local1.selected_piece0_mc._name = "name0"; _local1.selected_piece1_mc._name = "name1"; _local1.selected_piece0_mc._name = _local2; _local1.selected_piece1_mc._name = _local3; }; 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 _local3 = this; var _local2 = 0; while (_local2 < _local3.num_rows) { var _local1 = 0; while (_local1 < _local3.num_columns) { _local3.piece_holder[(("piece_" + _local2) + "_") + _local1].onEnterFrame = undefined; _local1++; } _local2++; } }; DiamondMine.prototype.evaluate_grid = function () { var _local1 = this; _local1.selected_piece0_mc.onEnterFrame = undefined; _local1.selected_piece1_mc.onEnterFrame = undefined; if (_local1.alreadyHasSolution()) { _local1.handle_solutions(); } else { if (arguments.length == 0) { _local1.play_sound("egg_move_sound"); } _local1.swap_selected_pieces_back(); } _local1.selected_piece0_mc = undefined; _local1.selected_piece1_mc = undefined; }; DiamondMine.prototype.handle_solutions = function () { var _local2 = this; var _local1 = _local2.calculate_remove_list(); _local2.update_score(_local1); _local2.play_remove_animations(_local1); _local2.shift_pieces_down(_local1); _local2.add_new_pieces(_local1); _local2.increase_time_percentage(_local1.length); _local2.play_sound(["clear_sound0", "clear_sound1", "clear_sound2"].rande()); }; DiamondMine.prototype.increase_time_percentage = function (num_collapsed_pieces) { var _local1 = this; if (_local1.game_type == "Timer") { _local1.time_percentage = _local1.time_percentage + (_local1.collapse_percent_increase + (_local1.level_collapse_percent_change * num_collapsed_pieces)); } else { _local1.time_percentage = _local1.time_percentage + (_local1.collapse_percent_increase + Math.max((-_local1.level_collapse_percent_change) * num_collapsed_pieces, _local1.minimum_collapse_percent)); } }; DiamondMine.prototype.calculate_remove_list = function () { var _local3 = this; var _local2 = new Array(); var j = 0; while (j < _local3.num_rows) { var k = 0; while (k < _local3.num_columns) { var _local1 = _local3.get_neighborhood(j, k); if (((_local1.left.type == _local1.middle.type) && (_local1.middle.type == _local1.right.type)) && (_local1.left.type == _local1.right.type)) { _local2._push({j:_local1.left.index_j, k:_local1.left.index_k}); _local2._push({j:_local1.middle.index_j, k:_local1.middle.index_k}); _local2._push({j:_local1.right.index_j, k:_local1.right.index_k}); } else if (((_local1.top.type == _local1.middle.type) && (_local1.middle.type == _local1.bottom.type)) && (_local1.top.type == _local1.bottom.type)) { _local2._push({j:_local1.top.index_j, k:_local1.top.index_k}); _local2._push({j:_local1.middle.index_j, k:_local1.middle.index_k}); _local2._push({j:_local1.bottom.index_j, k:_local1.bottom.index_k}); } k++; } j++; } return(_local2.remove_repeats()); }; DiamondMine.prototype.play_remove_animations = function (remove_list) { var quiz_piece = false; var _local2 = 0; while (_local2 < remove_list.length) { var index_j = remove_list[_local2].j; var _local3 = remove_list[_local2].k; var _local1 = this.piece_holder[(("piece_" + index_j) + "_") + _local3]; _local1.IAMDEAD = true; _local1._name = "__TEMP__" + Math.randi(0, 10000); _local1.pieces.sub._gotoAndPlay("Remove Animation"); if (_local1.quiz) { quiz_piece = true; } _local1._x = -1000; _local1._y = -1000; _local1._visible = false; _local1.unloadMovie(); _local2++; } if (quiz_piece && (!this.level_questions_maxed)) { this.create_quiz(); } }; DiamondMine.prototype.create_quiz = function () { var _local1 = this; if (_local1.new_board_prompt.playing) { } else if (_local1.quiz_prompt._currentframe != 1) { } else { _local1.paused = true; _local1.quiz_prompt._play(); _local1.quiz_prompt.swapDepths(_local1.depth + 5000); _local1.num_asked_questions++; if (_local1.num_asked_questions >= _local1.max_quiz_per_level) { _local1.level_questions_maxed = true; var j = 0; while (j < _local1.num_rows) { var _local3 = 0; while (_local3 < _local1.num_columns) { var _local2 = _local1.piece_holder[(("piece_" + j) + "_") + _local3]; if (_local2.pieces._currentframe > _local1.num_pieces) { _local2.pieces.gotoAndStop(_local2.pieces._currentframe - _local1.num_pieces); } _local3++; } j++; } } } }; DiamondMine.prototype.fill_quiz_form = function () { var _local3 = this; if (_local3.quiz_loader.current_question_list.length == 0) { _local3.quiz_loader.current_question_list = _local3.quiz_loader.questions.return_copy(); _local3.quiz_loader.current_question_list.shuffle(); } var question = _local3.quiz_loader.current_question_list.pop(); _local3.quiz_prompt.question = question.text; var _local1 = 0; while (_local1 < _local3.quiz_loader.num_choices_per_question) { var _local2 = _local3.quiz_prompt["choice" + _local1]; _local2.choice = String.fromCharCode("A".charCodeAt(0) + _local1); _local2.field = question.choices[_local1]; if (_local1 == question.answer) { _local2.correct = true; } _local1++; } }; DiamondMine.prototype.evaluate_answer = function (choice_mc) { var _local1 = this; _local1.paused = false; if (choice_mc.correct) { _local1.correct_answer(); } else { _local1.incorrect_answer(); } }; DiamondMine.prototype.correct_answer = function () { var _local1 = this; _local1.score = _local1.score + _local1.correct_points; _local1.score_txt.scrollToNumber(Math.round(_local1.score), 10); _local1.quiz_prompt._gotoAndPlay("Correct Answer"); }; DiamondMine.prototype.incorrect_answer = function () { var _local1 = this; _local1.score = _local1.score + _local1.incorrect_points; _local1.score_txt.scrollToNumber(Math.round(_local1.score), 10); _local1.quiz_prompt._gotoAndPlay("Incorrect Answer"); }; DiamondMine.prototype.shift_pieces_down = function (remove_list) { var _local2 = this; var shift_columns = _local2.get_shifted_columns(remove_list); var k = 0; while (k < shift_columns.length) { var j = (_local2.num_rows - 2); while (j >= 0) { var _local1 = _local2.piece_holder[(("piece_" + j) + "_") + shift_columns[k]]; if (_local1 != undefined) { var _local3 = false; while (!_local3) { if ((_local2.piece_holder[(("piece_" + (_local1.index_j + 1)) + "_") + _local1.index_k] == undefined) && ((_local1.index_j + 1) < _local2.num_rows)) { _local1.index_j++; _local1._name = (("piece_" + _local1.index_j) + "_") + _local1.index_k; _local1.final_position_x = _local2.calculate_final_position(_local1.index_j, _local1.index_k).x; _local1.final_position_y = _local2.calculate_final_position(_local1.index_j, _local1.index_k).y; _local1.onEnterFrame = _local1.fall_to_position; } else { _local3 = true; } } } j--; } k++; } }; DiamondMine.prototype.get_shifted_columns = function (remove_list) { var _local2 = remove_list; var _local3 = new Array(); var _local1 = 0; while (_local1 < _local2.length) { _local3._push(_local2[_local1].k); _local1++; } return(_local3.remove_repeats()); }; DiamondMine.prototype.get_minimum_rows = function (columns, remove_list) { var _local2 = remove_list; var min_rows = new Array(); var j = 0; while (j < columns.length) { var c = columns[j]; var _local3 = Number.MAX_VALUE; var _local1 = 0; while (_local1 < _local2.length) { if (_local2[_local1].k == c) { if (_local2[_local1].j <= _local3) { _local3 = _local2[_local1].j; } } _local1++; } min_rows[j] = _local3; j++; } return(min_rows); }; DiamondMine.prototype.get_num_column_pieces = function (shift_columns, remove_list) { var _local3 = remove_list; var num_pieces = new Array(); var _local2 = 0; while (_local2 < shift_columns.length) { num_pieces[_local2] = 0; var _local1 = 0; while (_local1 < _local3.length) { if (_local3[_local1].k == shift_columns[_local2]) { num_pieces[_local2]++; } _local1++; } _local2++; } return(num_pieces); }; DiamondMine.prototype.shift_above_pieces = function (minimum_rows, shift_columns, num_columns_pieces) { var _local2 = 0; while (_local2 < shift_columns.length) { var _local3 = minimum_rows[_local2] - 1; while (_local3 >= 0) { var _local1 = this.piece_holder[(("piece_" + _local3) + "_") + shift_columns[_local2]]; _local1.index_j = _local1.index_j + num_columns_pieces[_local2]; _local1._name = (("piece_" + _local1.index_j) + "_") + _local1.index_k; _local1.final_position_x = this.calculate_final_position(_local1.index_j, _local1.index_k).x; _local1.final_position_y = this.calculate_final_position(_local1.index_j, _local1.index_k).y; _local1.onEnterFrame = _local1.fall_to_position; _local3--; } _local2++; } }; DiamondMine.prototype.add_new_pieces = function (remove_list) { var _local1 = this; var j = 0; while (j < _local1.num_rows) { var _local2 = 0; while (_local2 < _local1.num_columns) { var _mc = _local1.piece_holder[(("piece_" + j) + "_") + _local2]; if (_mc == undefined) { var _local3 = j; while (_local3 < _local1.num_rows) { var piece_mc = _local1.piece_holder[(("piece_" + _local3) + "_") + _local2]; if (piece_mc != undefined) { var bottom = _local3; break; } _local3++; } var initial_position_x = (_local1.piece_holder.play_area._x + (_local2 * _local1.piece_width)); var initial_position_y = (((-_local1.piece_height) * 0) - ((bottom - j) * _local1.piece_height)); var final_position_x = _local1.calculate_final_position(j, _local2).x; var final_position_y = _local1.calculate_final_position(j, _local2).y; _local1.create_piece(j, _local2, initial_position_x, initial_position_y, final_position_x, final_position_y, Math.randi(1, _local1.num_pieces + 1)); } _local2++; } j++; } }; DiamondMine.prototype.selected_nonadjacent_pieces = function () { var _local1 = this; _local1.unselect_piece(_local1.selected_piece0_mc); _local1.unselect_piece(_local1.selected_piece1_mc); }; DiamondMine.prototype.hasSolution = function () { return(this.alreadyHasSolution()); }; DiamondMine.prototype.alreadyHasSolution = function () { var _local3 = 0; while (_local3 < this.num_rows) { var _local2 = 0; while (_local2 < this.num_columns) { var _local1 = this.get_neighborhood(_local3, _local2); if ((((_local1.left.type == _local1.middle.type) && (_local1.middle.type == _local1.right.type)) && (_local1.left.type == _local1.right.type)) || (((_local1.top.type == _local1.middle.type) && (_local1.middle.type == _local1.bottom.type)) && (_local1.top.type == _local1.bottom.type))) { return(true); } _local2++; } _local3++; } return(false); }; DiamondMine.prototype.hasPossibleSolution = function () { var _local3 = this; var grid = _local3.get_current_grid(); var _local2 = 0; while (_local2 < _local3.num_rows) { var _local1 = 0; while (_local1 < _local3.num_columns) { var neighbors = _local3.get_neighbors(_local2, _local1); if (_local3.check_possible_swaps(grid, _local2, _local1, neighbors)) { return(true); } _local1++; } _local2++; } return(false); }; DiamondMine.prototype.get_neighbors = function (j, k) { var _local1 = k; var _local2 = j; var _local3 = this; if ((_local2 == 0) && (_local1 == 0)) { return([[_local2 + 1, _local1], [_local2, _local1 + 1]]); } if ((_local2 == 0) && (_local1 == (_local3.num_columns - 1))) { return([[_local2 + 1, _local1], [_local2, _local1 - 1]]); } if ((_local2 == (_local3.num_rows - 1)) && (_local1 == 0)) { return([[_local2 - 1, _local1], [_local2, _local1 + 1]]); } if ((_local2 == (_local3.num_rows - 1)) && (_local1 == (_local3.num_columns - 1))) { return([[_local2 - 1, _local1], [_local2, _local1 - 1]]); } if (_local2 == 0) { return([[_local2, _local1 - 1], [_local2, _local1 + 1], [_local2 + 1, _local1]]); } if (_local1 == 0) { return([[_local2 - 1, _local1], [_local2 + 1, _local1], [_local2, _local1 + 1]]); } if (_local2 == (_local3.num_rows - 1)) { return([[_local2, _local1 - 1], [_local2, _local1 + 1], [_local2 - 1, _local1]]); } if (_local1 == (_local3.num_columns - 1)) { return([[_local2 - 1, _local1], [_local2 + 1, _local1], [_local2, _local1 - 1]]); } return([[_local2 - 1, _local1], [_local2 + 1, _local1], [_local2, _local1 - 1], [_local2, _local1 + 1]]); }; DiamondMine.prototype.check_possible_swaps = function (grid, j, k, neighbors) { var _local2 = grid; var _local3 = k; var _local1 = 0; while (_local1 < neighbors.length) { _local2.swap2D(j, _local3, neighbors[_local1][0], neighbors[_local1][1]); if (this.gridHasNeighborhoodSolution(_local2, j, _local3)) { return(true); } if (this.gridHasNeighborhoodSolution(_local2, j + 1, _local3)) { return(true); } if (this.gridHasNeighborhoodSolution(_local2, j - 1, _local3)) { return(true); } if (this.gridHasNeighborhoodSolution(_local2, j, _local3 + 1)) { return(true); } if (this.gridHasNeighborhoodSolution(_local2, j, _local3 - 1)) { return(true); } _local2.swap2D(j, _local3, neighbors[_local1][0], neighbors[_local1][1]); _local1++; } return(false); }; DiamondMine.prototype.get_current_grid = function () { var _local3 = this; var grid = new Array(); var _local2 = 0; while (_local2 < _local3.num_rows) { grid[_local2] = new Array(); var _local1 = 0; while (_local1 < _local3.num_columns) { grid[_local2][_local1] = _local3.piece_holder[(("piece_" + _local2) + "_") + _local1].type; _local1++; } _local2++; } return(grid); }; DiamondMine.prototype.gridHasSolution = function (grid) { var _local3 = 0; while (_local3 < this.num_rows) { var _local2 = 0; while (_local2 < this.num_columns) { var _local1 = new Object(); _local1.left = grid[_local3][_local2 - 1]; _local1.right = grid[_local3][_local2 + 1]; _local1.top = grid[_local3 - 1][_local2]; _local1.bottom = grid[_local3 + 1][_local2]; _local1.middle = grid[_local3][_local2]; if ((((_local1.left == _local1.middle) && (_local1.middle == _local1.right)) && (_local1.left == _local1.right)) || (((_local1.top == _local1.middle) && (_local1.middle == _local1.bottom)) && (_local1.top == _local1.bottom))) { return(true); } _local2++; } _local3++; } return(false); }; DiamondMine.prototype.gridHasNeighborhoodSolution = function (grid, j, k) { var _local2 = grid; var _local3 = k; if (_local2[j][_local3] == undefined) { return(false); } var _local1 = new Object(); _local1.left = _local2[j][_local3 - 1]; _local1.right = _local2[j][_local3 + 1]; _local1.top = _local2[j - 1][_local3]; _local1.bottom = _local2[j + 1][_local3]; _local1.middle = _local2[j][_local3]; if ((((_local1.left == _local1.middle) && (_local1.middle == _local1.right)) && (_local1.left == _local1.right)) || (((_local1.top == _local1.middle) && (_local1.middle == _local1.bottom)) && (_local1.top == _local1.bottom))) { return(true); } return(false); }; DiamondMine.prototype.update_final_position = function (piece_mc) { var _local1 = piece_mc; var _local2 = this.calculate_final_position(_local1.index_j, _local1.index_k); _local1.final_position_x = _local2.x; _local1.final_position_y = _local2.y; }; DiamondMine.prototype.calculate_final_position = function (j, k) { var _local2 = this; var _local1 = {}; _local1.x = _local2.piece_holder.play_area._x + (k * _local2.piece_width); _local1.y = _local2.piece_holder.play_area._y + (j * _local2.piece_height); return(_local1); }; DiamondMine.prototype.calculate_solutionless_grid = function () { var _local3 = new Array(); var _local2 = 0; while (_local2 < this.num_rows) { _local3[_local2] = new Array(); var _local1 = 0; while (_local1 < this.num_columns) { var left = _local3[_local2][_local1 - 1]; var right = _local3[_local2][_local1 + 1]; var top = _local3[_local2 - 1][_local1]; var bottom = _local3[_local2 + 1][_local1]; var possibilities = Array.getIndices(1, this.num_pieces); var non_possibilities = [left, right, top, bottom]; var different_pieces = Array.negated_intersection(possibilities, non_possibilities); _local3[_local2][_local1] = different_pieces.rande(); _local1++; } _local2++; } return(_local3); }; DiamondMine.prototype.get_neighborhood = function (j, k) { var _local2 = this; var _local3 = k; var _local1 = new Array(); _local1.middle = _local2.piece_holder[(("piece_" + j) + "_") + _local3]; _local1.left = _local2.piece_holder[(("piece_" + j) + "_") + (_local3 - 1)]; _local1.right = _local2.piece_holder[(("piece_" + j) + "_") + (_local3 + 1)]; _local1.top = _local2.piece_holder[(("piece_" + (j - 1)) + "_") + _local3]; _local1.bottom = _local2.piece_holder[(("piece_" + (j + 1)) + "_") + _local3]; return(_local1); }; DiamondMine.prototype.check_for_movement = function () { var _local3 = 0; while (_local3 < this.num_rows) { var _local1 = 0; while (_local1 < this.num_columns) { var _local2 = this.piece_holder[(("piece_" + _local3) + "_") + _local1]; if (_local2.onEnterFrame != undefined) { return(true); } _local1++; } _local3++; } return(false); }; DiamondMine.prototype.check_all_stopped = function () { var _local1 = this; if (!_local1.check_for_movement()) { _local1.evaluate_grid(0); var _local2 = _local1.hasPossibleSolution(); if (!_local2) { if (_local1.game_type == "Timer") { _local1.new_board(); } else { _local1.game_over(); } } } }; DiamondMine.prototype.game_over = function () { var _local3 = this; var _local2 = 0; while (_local2 < _local3.num_rows) { var _local1 = 0; while (_local1 < _local3.num_columns) { _local3.piece_holder[(("piece_" + _local2) + "_") + _local1].game_over = true; _local1++; } _local2++; } _local3.explode_pieces(); _local3.game_over_prompt._play(); }; DiamondMine.prototype.onEnterFrame = function () { var _local2 = this; if ((((getTimer() - _local2.last_clicked_time) > 3000) && (!_local2.check_for_movement())) && (_local2.automatic_hint)) { _local2.last_clicked_time = getTimer(); var grid = _local2.get_current_grid(); var _local3 = 0; while (_local3 < _local2.num_rows) { var _local1 = 0; while (_local1 < _local2.num_columns) { var neighbors = _local2.get_neighbors(_local3, _local1); if (_local2.check_possible_swaps(grid, _local3, _local1, neighbors)) { var _mc = _local2.piece_holder[(("piece_" + _local3) + "_") + _local1]; _mc.onRollOver(); _mc.onRollOut(); return; } _local1++; } _local3++; } } _local2.update_game_timer(); _local2.update_game_properties(); }; DiamondMine.prototype.update_game_timer = function () { var _local1 = this; if ((_local1.game_type == "Timer") && (!_local1.paused)) { _local1.time_percentage = _local1.time_percentage - (_local1.time_percent_change + (_local1.level_percent_change_increase * _local1.current_level)); } _local1.render_game_timer(); }; DiamondMine.prototype.render_game_timer = function () { var _local1 = this; var _local2 = (_local1.time_percentage / 100) * _local1.timer_mc.frame_mc._width; _local1.timer_mc.bar_mc._x = _local1.timer_mc.bar_mc._x + ((_local2 - _local1.timer_mc.bar_mc._x) / 10); _local1.timer_mc.bar_mc._gotoAndStop(Math.round((_local1.time_percentage / 100) * _local1.timer_mc.bar_mc._totalframes) + 1); if (_local1.time_percentage >= 100) { _local1.next_level(); } else if (_local1.time_percentage <= 0) { _root._gotoAndStop("Game Over"); } }; DiamondMine.prototype.next_level = function () { var _local2 = this; for (var _local3 in _local2.piece_holder) { var _local1 = _local2.piece_holder[_local3]; if (typeof(_local1) == "movieclip") { if ((_local1._name != "backgrounds") && (_local1._name != "play_area")) { _local1.unloadMovie(); } } } _local2.paused = true; _local2.explode_pieces(); _local2.time_percentage = 50; }; DiamondMine.prototype.explode_pieces = function () { var _local2 = this; var j = 0; while (j < _local2.num_rows) { var _local3 = 0; while (_local3 < _local2.num_columns) { var _local1 = _local2.piece_holder[(("piece_" + j) + "_") + _local3]; _local1.velocity_x = Math.randf(-10, 10); _local1.velocity_y = Math.randf(-30, -20); _local1.final_position_y = (_local2.piece_holder.play_area._y + _local2.piece_holder.play_area._height) + _local1._height; _local1._y = _local1.final_position_y + 100; _local1.remove_piece = true; _local1.num_wait_frames = Math.randi(0, 50); _local1.current_frame = 0; _local1.swapDepths(_local2.depth++); _local1._name = "__TEMP__" + Math.randi(0, 10000); _local1.onEnterFrame = _local1.wait_to_fall; _local3++; } j++; } }; DiamondMine.prototype.update_score = function (remove_list) { var _local1 = this; var score_increase = (remove_list.length * (_local1.points_per_piece + (_local1.level_point_increase * _local1.current_level))); _local1.score = _local1.score + score_increase; _local1.score_txt.scrollToNumber(Math.round(_local1.score), 10); _local1.depth++; var _local3 = _local1.attachMovie("points_animation", "points" + _local1.depth, _local1.depth); var _local2 = remove_list.rande(); _local3._x = _local1.piece_holder[(("piece_" + _local2.j) + "_") + _local2.k]._x; _local3._y = _local1.piece_holder[(("piece_" + _local2.j) + "_") + _local2.k]._y; _local3.points = "+" + score_increase; }; DiamondMine.prototype.update_game_properties = function () { _root.score = this.score; }; DiamondMine.prototype.new_board = function () { var _local2 = this; var j = 0; while (j < _local2.num_rows) { var _local1 = 0; while (_local1 < _local2.num_columns) { _local2.piece_holder[(("piece_" + j) + "_") + _local1].regenerate = true; _local1++; } j++; } _local2.explode_pieces(); for (var j in _local2.piece_holder) { var _local3 = _local2.piece_holder[j]; if (typeof(_local3) == "movieclip") { if (((!_local3.regenerate) && (_local3._name != "backgrounds")) && (_local3._name != "play_area")) { _local3.unloadMovie(); } } } _local2.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 _local1 = new Sound(this); _local1.attachSound(linkage); _local1.start(0, 1); }; DiamondMine.prototype.onMouseDown = function () { }; #endinitclip this._x = 0; this._y = 0;Instance of Symbol 278 MovieClip "piece_holder" in Symbol 398 MovieClip [DiamondMineComponent] Frame 1onClipEvent (keyDown) { if (Key.isDown(16)) { } else if (Key.isDown(32)) { for (var j in this) { if (typeof(this[j]) == "movieclip") { } } } }Symbol 401 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:168 | |
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 160 | |
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 161 | |
Symbol 32 Graphic | Used by:36 161 | |
Symbol 33 Graphic | Used by:36 161 | |
Symbol 34 Graphic | Used by:36 161 | |
Symbol 35 Graphic | Used by:36 161 | |
Symbol 36 MovieClip | Uses:14 22 30 31 32 33 34 35 | Used by:168 |
Symbol 37 Graphic | Used by:50 162 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 162 |
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 162 |
Symbol 50 MovieClip | Uses:37 42 49 | Used by:168 |
Symbol 51 Graphic | Used by:55 69 163 Timeline | |
Symbol 52 Graphic | Used by:55 | |
Symbol 53 Graphic | Used by:55 | |
Symbol 54 Graphic | Used by:55 | |
Symbol 55 MovieClip | Uses:51 52 53 54 | Used by:69 163 |
Symbol 56 Graphic | Used by:63 | |
Symbol 57 Graphic | Used by:63 | |
Symbol 58 Graphic | Used by:63 | |
Symbol 59 Graphic | Used by:63 | |
Symbol 60 Graphic | Used by:63 | |
Symbol 61 Graphic | Used by:63 | |
Symbol 62 Graphic | Used by:63 | |
Symbol 63 MovieClip | Uses:56 57 58 59 60 61 62 | Used by:69 163 |
Symbol 64 Graphic | Used by:69 163 | |
Symbol 65 Graphic | Used by:69 163 | |
Symbol 66 Graphic | Used by:69 163 | |
Symbol 67 Graphic | Used by:69 163 | |
Symbol 68 Graphic | Used by:69 163 | |
Symbol 69 MovieClip | Uses:51 55 63 64 65 66 67 68 | Used by:168 |
Symbol 70 Graphic | Used by:73 87 164 | |
Symbol 71 Graphic | Used by:73 | |
Symbol 72 Graphic | Used by:73 | |
Symbol 73 MovieClip | Uses:70 71 72 | Used by:87 164 |
Symbol 74 Graphic | Used by:80 | |
Symbol 75 Graphic | Used by:80 | |
Symbol 76 Graphic | Used by:80 | |
Symbol 77 Graphic | Used by:80 | |
Symbol 78 Graphic | Used by:80 | |
Symbol 79 Graphic | Used by:80 | |
Symbol 80 MovieClip | Uses:74 75 76 77 78 79 | Used by:87 164 |
Symbol 81 Graphic | Used by:86 | |
Symbol 82 Graphic | Used by:86 | |
Symbol 83 Graphic | Used by:86 | |
Symbol 84 Graphic | Used by:86 | |
Symbol 85 Graphic | Used by:86 | |
Symbol 86 MovieClip | Uses:81 82 83 84 85 | Used by:87 164 |
Symbol 87 MovieClip | Uses:70 73 80 86 | Used by:168 |
Symbol 88 Graphic | Used by:92 107 165 Timeline | |
Symbol 89 Graphic | Used by:92 | |
Symbol 90 Graphic | Used by:92 | |
Symbol 91 Graphic | Used by:92 | |
Symbol 92 MovieClip | Uses:88 89 90 91 | Used by:107 165 |
Symbol 93 Graphic | Used by:100 | |
Symbol 94 Graphic | Used by:100 | |
Symbol 95 Graphic | Used by:100 | |
Symbol 96 Graphic | Used by:100 | |
Symbol 97 Graphic | Used by:100 | |
Symbol 98 Graphic | Used by:100 | |
Symbol 99 Graphic | Used by:100 | |
Symbol 100 MovieClip | Uses:93 94 95 96 97 98 99 | Used by:107 165 |
Symbol 101 Graphic | Used by:106 | |
Symbol 102 Graphic | Used by:106 | |
Symbol 103 Graphic | Used by:106 | |
Symbol 104 Graphic | Used by:106 | |
Symbol 105 Graphic | Used by:106 | |
Symbol 106 MovieClip | Uses:101 102 103 104 105 | Used by:107 165 |
Symbol 107 MovieClip | Uses:88 92 100 106 | Used by:168 |
Symbol 108 Graphic | Used by:112 126 166 Timeline | |
Symbol 109 Graphic | Used by:112 | |
Symbol 110 Graphic | Used by:112 | |
Symbol 111 Graphic | Used by:112 | |
Symbol 112 MovieClip | Uses:108 109 110 111 | Used by:126 166 |
Symbol 113 Graphic | Used by:119 | |
Symbol 114 Graphic | Used by:119 | |
Symbol 115 Graphic | Used by:119 | |
Symbol 116 Graphic | Used by:119 | |
Symbol 117 Graphic | Used by:119 | |
Symbol 118 Graphic | Used by:119 | |
Symbol 119 MovieClip | Uses:113 114 115 116 117 118 | Used by:126 166 |
Symbol 120 Graphic | Used by:125 | |
Symbol 121 Graphic | Used by:125 | |
Symbol 122 Graphic | Used by:125 | |
Symbol 123 Graphic | Used by:125 | |
Symbol 124 Graphic | Used by:125 | |
Symbol 125 MovieClip | Uses:120 121 122 123 124 | Used by:126 166 |
Symbol 126 MovieClip | Uses:108 112 119 125 | Used by:168 |
Symbol 127 Graphic | Used by:131 144 167 Timeline | |
Symbol 128 Graphic | Used by:131 | |
Symbol 129 Graphic | Used by:131 | |
Symbol 130 Graphic | Used by:131 | |
Symbol 131 MovieClip | Uses:127 128 129 130 | Used by:144 167 |
Symbol 132 Graphic | Used by:137 | |
Symbol 133 Graphic | Used by:137 | |
Symbol 134 Graphic | Used by:137 | |
Symbol 135 Graphic | Used by:137 | |
Symbol 136 Graphic | Used by:137 | |
Symbol 137 MovieClip | Uses:132 133 134 135 136 | Used by:144 167 |
Symbol 138 Graphic | Used by:143 | |
Symbol 139 Graphic | Used by:143 | |
Symbol 140 Graphic | Used by:143 | |
Symbol 141 Graphic | Used by:143 | |
Symbol 142 Graphic | Used by:143 | |
Symbol 143 MovieClip | Uses:138 139 140 141 142 | Used by:144 167 |
Symbol 144 MovieClip | Uses:127 131 137 143 | Used by:168 |
Symbol 145 Graphic | Used by:161 | |
Symbol 146 Graphic | Used by:153 | |
Symbol 147 Graphic | Used by:153 | |
Symbol 148 Graphic | Used by:153 | |
Symbol 149 Graphic | Used by:153 | |
Symbol 150 Graphic | Used by:153 | |
Symbol 151 Graphic | Used by:153 | |
Symbol 152 Graphic | Used by:153 | |
Symbol 153 MovieClip | Uses:146 147 148 149 150 151 152 | Used by:161 |
Symbol 154 Graphic | Used by:160 | |
Symbol 155 Graphic | Used by:160 | |
Symbol 156 Graphic | Used by:160 | |
Symbol 157 Graphic | Used by:160 | |
Symbol 158 Graphic | Used by:160 | |
Symbol 159 Graphic | Used by:160 | |
Symbol 160 MovieClip | Uses:23 154 155 156 157 158 159 | Used by:161 |
Symbol 161 MovieClip | Uses:145 153 160 31 32 33 34 35 | Used by:168 |
Symbol 162 MovieClip | Uses:37 42 49 | Used by:168 |
Symbol 163 MovieClip | Uses:51 55 63 64 65 66 67 68 | Used by:168 |
Symbol 164 MovieClip | Uses:70 73 80 86 | Used by:168 |
Symbol 165 MovieClip | Uses:88 92 100 106 | Used by:168 |
Symbol 166 MovieClip | Uses:108 112 119 125 | Used by:168 |
Symbol 167 MovieClip | Uses:127 131 137 143 | Used by:168 |
Symbol 168 MovieClip [game_piece] | Uses:13 36 50 69 87 107 126 144 161 162 163 164 165 166 167 | Used by:171 |
Symbol 169 Graphic | Used by:170 | |
Symbol 170 MovieClip | Uses:169 | Used by:171 |
Symbol 171 MovieClip [PieceComponent] | Uses:168 170 | |
Symbol 172 MovieClip [TextfieldExtensions] | ||
Symbol 173 MovieClip [ObjectExtensions] | ||
Symbol 174 Font | Used by:175 | |
Symbol 175 EditableText | Uses:174 | Used by:176 |
Symbol 176 MovieClip [points_animation] | Uses:175 | |
Symbol 177 Graphic | Used by:Timeline | |
Symbol 178 Graphic | Used by:179 | |
Symbol 179 MovieClip | Uses:178 | Used by:188 |
Symbol 180 Graphic | Used by:181 | |
Symbol 181 MovieClip | Uses:180 | Used by:188 |
Symbol 182 Graphic | Used by:188 | |
Symbol 183 ShapeTweening | Used by:188 | |
Symbol 184 Graphic | Used by:188 | |
Symbol 185 Graphic | Used by:186 | |
Symbol 186 MovieClip | Uses:185 | Used by:188 |
Symbol 187 Graphic | Used by:188 | |
Symbol 188 MovieClip | Uses:179 181 182 183 184 186 187 | Used by:193 |
Symbol 189 Font | Used by:190 248 250 253 256 258 260 264 265 349 364 378 390 | |
Symbol 190 EditableText | Uses:189 | Used by:191 |
Symbol 191 MovieClip | Uses:190 | Used by:193 |
Symbol 192 MovieClip | Used by:193 | |
Symbol 193 MovieClip | Uses:188 191 192 | Used by:Timeline |
Symbol 194 Graphic | Used by:398 Timeline | |
Symbol 195 Graphic | Used by:202 | |
Symbol 196 Graphic | Used by:201 202 | |
Symbol 197 Bitmap | Used by:198 | |
Symbol 198 Graphic | Uses:197 | Used by:201 202 |
Symbol 199 Sound | Used by:201 | |
Symbol 200 Graphic | Used by:201 | |
Symbol 201 MovieClip | Uses:196 198 199 200 | Used by:202 |
Symbol 202 Button | Uses:195 201 196 198 | Used by:Timeline |
Symbol 203 Graphic | Used by:204 | |
Symbol 204 MovieClip | Uses:203 | Used by:Timeline |
Symbol 205 Graphic | Used by:Timeline | |
Symbol 206 Graphic | Used by:Timeline | |
Symbol 207 Graphic | Used by:213 266 401 | |
Symbol 208 Graphic | Used by:213 266 401 | |
Symbol 209 Graphic | Used by:213 266 | |
Symbol 210 Graphic | Used by:213 266 | |
Symbol 211 Graphic | Used by:213 266 | |
Symbol 212 Graphic | Used by:213 266 | |
Symbol 213 Button | Uses:207 208 209 210 211 212 | Used by:Timeline |
Symbol 214 Font | Used by:215 | |
Symbol 215 Text | Uses:214 | Used by:Timeline |
Symbol 216 Graphic | Used by:Timeline | |
Symbol 217 Graphic | Used by:Timeline | |
Symbol 218 Graphic | Used by:Timeline | |
Symbol 219 Graphic | Used by:Timeline | |
Symbol 220 Bitmap | Used by:221 | |
Symbol 221 Graphic | Uses:220 | Used by:222 |
Symbol 222 Button | Uses:221 | Used by:Timeline |
Symbol 223 Graphic | Used by:224 | |
Symbol 224 MovieClip | Uses:223 | Used by:244 |
Symbol 225 Graphic | Used by:231 | |
Symbol 226 Graphic | Used by:231 | |
Symbol 227 Graphic | Used by:231 | |
Symbol 228 Graphic | Used by:231 | |
Symbol 229 Graphic | Used by:231 | |
Symbol 230 Graphic | Used by:231 | |
Symbol 231 Button | Uses:225 226 227 228 229 230 | Used by:244 |
Symbol 232 Graphic | Used by:237 242 | |
Symbol 233 Graphic | Used by:237 240 242 | |
Symbol 234 Graphic | Used by:237 | |
Symbol 235 Graphic | Used by:237 240 242 | |
Symbol 236 Graphic | Used by:237 240 242 | |
Symbol 237 Button | Uses:232 233 234 235 236 | Used by:243 |
Symbol 238 Graphic | Used by:240 | |
Symbol 239 Graphic | Used by:240 | |
Symbol 240 Button | Uses:238 233 239 235 236 | Used by:243 |
Symbol 241 Graphic | Used by:242 | |
Symbol 242 Button | Uses:232 233 241 235 236 | Used by:243 |
Symbol 243 MovieClip | Uses:237 240 242 | Used by:244 |
Symbol 244 MovieClip | Uses:224 231 243 | Used by:Timeline |
Symbol 245 Graphic | Used by:Timeline | |
Symbol 246 Graphic | Used by:254 261 | |
Symbol 247 Graphic | Used by:254 | |
Symbol 248 EditableText | Uses:189 | Used by:254 |
Symbol 249 Graphic | Used by:254 | |
Symbol 250 EditableText | Uses:189 | Used by:254 |
Symbol 251 Graphic | Used by:254 | |
Symbol 252 Graphic | Used by:254 261 | |
Symbol 253 Text | Uses:189 | Used by:254 |
Symbol 254 Button | Uses:246 247 248 249 250 251 252 253 | Used by:263 |
Symbol 255 Graphic | Used by:261 | |
Symbol 256 EditableText | Uses:189 | Used by:261 |
Symbol 257 Graphic | Used by:261 | |
Symbol 258 EditableText | Uses:189 | Used by:261 |
Symbol 259 Graphic | Used by:261 | |
Symbol 260 Text | Uses:189 | Used by:261 |
Symbol 261 Button | Uses:246 255 256 257 258 259 252 260 | Used by:263 |
Symbol 262 Graphic | Used by:263 | |
Symbol 263 MovieClip | Uses:254 261 262 | Used by:Timeline |
Symbol 264 EditableText | Uses:189 | Used by:Timeline |
Symbol 265 EditableText | Uses:189 | Used by:Timeline |
Symbol 266 Button | Uses:207 208 209 210 211 212 | Used by:Timeline |
Symbol 267 Graphic | Used by:Timeline | |
Symbol 268 Graphic | Used by:398 | |
Symbol 269 Graphic | Used by:270 | |
Symbol 270 MovieClip | Uses:269 | Used by:273 |
Symbol 271 Graphic | Used by:272 | |
Symbol 272 MovieClip | Uses:271 | Used by:273 |
Symbol 273 MovieClip | Uses:270 272 | Used by:278 |
Symbol 274 Graphic | Used by:277 | |
Symbol 275 Font | Used by:276 | |
Symbol 276 Text | Uses:275 | Used by:277 |
Symbol 277 MovieClip | Uses:274 276 | Used by:278 |
Symbol 278 MovieClip | Uses:273 277 | Used by:398 |
Symbol 279 Graphic | Used by:284 | |
Symbol 280 Graphic | Used by:281 | |
Symbol 281 MovieClip | Uses:280 | Used by:284 |
Symbol 282 Graphic | Used by:283 | |
Symbol 283 MovieClip | Uses:282 | Used by:284 |
Symbol 284 MovieClip | Uses:279 281 283 | Used by:398 |
Symbol 285 Graphic | Used by:286 | |
Symbol 286 MovieClip | Uses:285 | Used by:398 |
Symbol 287 Graphic | Used by:288 | |
Symbol 288 MovieClip | Uses:287 | Used by:398 |
Symbol 289 Graphic | Used by:398 | |
Symbol 290 Graphic | Used by:293 297 299 302 304 307 398 Timeline | |
Symbol 291 Graphic | Used by:293 | |
Symbol 292 Graphic | Used by:293 297 299 302 304 307 | |
Symbol 293 Button | Uses:290 291 292 | Used by:398 |
Symbol 294 Font | Used by:295 317 318 323 324 326 335 404 | |
Symbol 295 EditableText | Uses:294 | Used by:398 |
Symbol 296 Graphic | Used by:297 | |
Symbol 297 Button | Uses:290 296 292 | Used by:300 |
Symbol 298 Graphic | Used by:299 | |
Symbol 299 Button | Uses:290 298 292 | Used by:300 |
Symbol 300 MovieClip | Uses:297 299 | Used by:398 |
Symbol 301 Graphic | Used by:302 | |
Symbol 302 Button | Uses:290 301 292 | Used by:305 |
Symbol 303 Graphic | Used by:304 | |
Symbol 304 Button | Uses:290 303 292 | Used by:305 |
Symbol 305 MovieClip | Uses:302 304 | Used by:398 |
Symbol 306 Graphic | Used by:307 | |
Symbol 307 Button | Uses:290 306 292 | Used by:398 |
Symbol 308 Graphic | Used by:398 Timeline | |
Symbol 309 ShapeTweening | Used by:342 | |
Symbol 310 Sound | Used by:342 | |
Symbol 311 ShapeTweening | Used by:342 | |
Symbol 312 ShapeTweening | Used by:342 | |
Symbol 313 ShapeTweening | Used by:342 | |
Symbol 314 ShapeTweening | Used by:342 | |
Symbol 315 Graphic | Used by:342 | |
Symbol 316 ShapeTweening | Used by:342 | |
Symbol 317 Text | Uses:294 | Used by:342 |
Symbol 318 EditableText | Uses:294 | Used by:342 |
Symbol 319 Graphic | Used by:322 | |
Symbol 320 Graphic | Used by:322 | |
Symbol 321 Graphic | Used by:322 | |
Symbol 322 Button | Uses:319 320 321 | Used by:325 |
Symbol 323 EditableText | Uses:294 | Used by:325 |
Symbol 324 EditableText | Uses:294 | Used by:325 |
Symbol 325 MovieClip | Uses:322 323 324 | Used by:342 |
Symbol 326 Text | Uses:294 | Used by:342 |
Symbol 327 ShapeTweening | Used by:342 | |
Symbol 328 ShapeTweening | Used by:342 | |
Symbol 329 ShapeTweening | Used by:342 | |
Symbol 330 ShapeTweening | Used by:342 | |
Symbol 331 ShapeTweening | Used by:342 | |
Symbol 332 ShapeTweening | Used by:342 | |
Symbol 333 Graphic | Used by:342 | |
Symbol 334 ShapeTweening | Used by:342 | |
Symbol 335 Text | Uses:294 | Used by:342 |
Symbol 336 ShapeTweening | Used by:342 | |
Symbol 337 ShapeTweening | Used by:342 | |
Symbol 338 ShapeTweening | Used by:342 | |
Symbol 339 ShapeTweening | Used by:342 | |
Symbol 340 ShapeTweening | Used by:342 | |
Symbol 341 ShapeTweening | Used by:342 | |
Symbol 342 MovieClip | Uses:309 310 311 312 313 314 315 316 317 318 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | Used by:398 |
Symbol 343 ShapeTweening | Used by:357 | |
Symbol 344 Sound | Used by:357 | |
Symbol 345 ShapeTweening | Used by:357 | |
Symbol 346 ShapeTweening | Used by:357 | |
Symbol 347 ShapeTweening | Used by:357 | |
Symbol 348 ShapeTweening | Used by:357 | |
Symbol 349 EditableText | Uses:189 | Used by:357 |
Symbol 350 ShapeTweening | Used by:357 | |
Symbol 351 ShapeTweening | Used by:357 | |
Symbol 352 ShapeTweening | Used by:357 | |
Symbol 353 ShapeTweening | Used by:357 | |
Symbol 354 ShapeTweening | Used by:357 | |
Symbol 355 ShapeTweening | Used by:357 | |
Symbol 356 Graphic | Used by:357 371 384 397 | |
Symbol 357 MovieClip | Uses:343 344 345 346 347 348 349 350 351 352 353 354 355 356 | Used by:398 |
Symbol 358 ShapeTweening | Used by:371 | |
Symbol 359 Sound | Used by:371 | |
Symbol 360 ShapeTweening | Used by:371 | |
Symbol 361 ShapeTweening | Used by:371 | |
Symbol 362 ShapeTweening | Used by:371 | |
Symbol 363 ShapeTweening | Used by:371 | |
Symbol 364 Text | Uses:189 | Used by:371 |
Symbol 365 ShapeTweening | Used by:371 | |
Symbol 366 ShapeTweening | Used by:371 | |
Symbol 367 ShapeTweening | Used by:371 | |
Symbol 368 ShapeTweening | Used by:371 | |
Symbol 369 ShapeTweening | Used by:371 | |
Symbol 370 ShapeTweening | Used by:371 | |
Symbol 371 MovieClip | Uses:358 359 360 361 362 363 364 365 366 367 368 369 370 356 | Used by:398 |
Symbol 372 ShapeTweening | Used by:384 | |
Symbol 373 ShapeTweening | Used by:384 | |
Symbol 374 ShapeTweening | Used by:384 | |
Symbol 375 ShapeTweening | Used by:384 | |
Symbol 376 ShapeTweening | Used by:384 | |
Symbol 377 ShapeTweening | Used by:384 | |
Symbol 378 Text | Uses:189 | Used by:384 |
Symbol 379 ShapeTweening | Used by:384 | |
Symbol 380 ShapeTweening | Used by:384 | |
Symbol 381 ShapeTweening | Used by:384 | |
Symbol 382 ShapeTweening | Used by:384 | |
Symbol 383 ShapeTweening | Used by:384 | |
Symbol 384 MovieClip | Uses:372 373 374 375 376 377 378 379 380 381 382 383 356 | Used by:398 |
Symbol 385 ShapeTweening | Used by:397 | |
Symbol 386 ShapeTweening | Used by:397 | |
Symbol 387 ShapeTweening | Used by:397 | |
Symbol 388 ShapeTweening | Used by:397 | |
Symbol 389 ShapeTweening | Used by:397 | |
Symbol 390 Text | Uses:189 | Used by:397 |
Symbol 391 ShapeTweening | Used by:397 | |
Symbol 392 ShapeTweening | Used by:397 | |
Symbol 393 ShapeTweening | Used by:397 | |
Symbol 394 ShapeTweening | Used by:397 | |
Symbol 395 ShapeTweening | Used by:397 | |
Symbol 396 ShapeTweening | Used by:397 | |
Symbol 397 MovieClip | Uses:385 386 387 388 389 390 391 392 393 394 395 396 356 | Used by:398 |
Symbol 398 MovieClip [DiamondMineComponent] | Uses:268 278 284 286 288 289 293 290 295 300 305 307 194 308 342 357 371 384 397 | Used by:Timeline |
Symbol 399 Graphic | Used by:401 | |
Symbol 400 Graphic | Used by:401 | |
Symbol 401 Button | Uses:207 208 399 400 | Used by:Timeline |
Symbol 402 Graphic | Used by:Timeline | |
Symbol 403 Graphic | Used by:Timeline | |
Symbol 404 EditableText | Uses:294 | Used by:Timeline |
Instance Names
"game" | Frame 5 | Symbol 398 MovieClip [DiamondMineComponent] |
"score_txt" | Frame 6 | Symbol 404 EditableText |
"sub" | Symbol 168 MovieClip [game_piece] Frame 1 | Symbol 36 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 2 | Symbol 50 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 3 | Symbol 69 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 4 | Symbol 87 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 5 | Symbol 107 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 6 | Symbol 126 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 7 | Symbol 144 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 8 | Symbol 161 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 9 | Symbol 162 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 10 | Symbol 163 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 11 | Symbol 164 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 12 | Symbol 165 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 13 | Symbol 166 MovieClip |
"sub" | Symbol 168 MovieClip [game_piece] Frame 14 | Symbol 167 MovieClip |
"pieces" | Symbol 171 MovieClip [PieceComponent] Frame 1 | Symbol 168 MovieClip [game_piece] |
"selector_mc" | Symbol 171 MovieClip [PieceComponent] Frame 1 | Symbol 170 MovieClip |
"anim" | Symbol 193 MovieClip Frame 1 | Symbol 188 MovieClip |
"perc" | Symbol 193 MovieClip Frame 1 | Symbol 191 MovieClip |
"swfloader" | Symbol 193 MovieClip Frame 1 | Symbol 192 MovieClip |
"but3" | Symbol 243 MovieClip Frame 1 | Symbol 237 Button |
"but6" | Symbol 243 MovieClip Frame 1 | Symbol 240 Button |
"but5" | Symbol 243 MovieClip Frame 1 | Symbol 242 Button |
"backgrounds" | Symbol 278 MovieClip Frame 1 | Symbol 273 MovieClip |
"play_area" | Symbol 278 MovieClip Frame 1 | Symbol 277 MovieClip |
"frame_mc" | Symbol 284 MovieClip Frame 1 | Symbol 281 MovieClip |
"bar_mc" | Symbol 284 MovieClip Frame 1 | Symbol 283 MovieClip |
"choice0" | Symbol 342 MovieClip Frame 22 | Symbol 325 MovieClip |
"choice1" | Symbol 342 MovieClip Frame 22 | Symbol 325 MovieClip |
"choice2" | Symbol 342 MovieClip Frame 22 | Symbol 325 MovieClip |
"choice3" | Symbol 342 MovieClip Frame 22 | Symbol 325 MovieClip |
"piece_holder" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 278 MovieClip |
"timer_mc" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 284 MovieClip |
"score_txt" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 295 EditableText |
"quiz_prompt" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 342 MovieClip |
"level_prompt" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 357 MovieClip |
"new_board_prompt" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 371 MovieClip |
"paused_prompt" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 384 MovieClip |
"game_over_prompt" | Symbol 398 MovieClip [DiamondMineComponent] Frame 1 | Symbol 397 MovieClip |
Special Tags
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 168 as "game_piece" |
ExportAssets (56) | Timeline Frame 1 | Symbol 168 as "game_piece" |
ExportAssets (56) | Timeline Frame 1 | Symbol 171 as "PieceComponent" |
ExportAssets (56) | Timeline Frame 1 | Symbol 172 as "TextfieldExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 173 as "ObjectExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 176 as "points_animation" |
ExportAssets (56) | Timeline Frame 5 | Symbol 398 as "DiamondMineComponent" |
Labels
"Starting Screen" | Frame 4 |
"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 69 MovieClip Frame 1 |
"Rollover Animation" | Symbol 69 MovieClip Frame 10 |
"Clicked Animation" | Symbol 69 MovieClip Frame 24 |
"Remove Animation" | Symbol 69 MovieClip Frame 37 |
"Default" | Symbol 87 MovieClip Frame 1 |
"Rollover Animation" | Symbol 87 MovieClip Frame 10 |
"Clicked Animation" | Symbol 87 MovieClip Frame 24 |
"Remove Animation" | Symbol 87 MovieClip Frame 37 |
"Default" | Symbol 107 MovieClip Frame 1 |
"Rollover Animation" | Symbol 107 MovieClip Frame 10 |
"Clicked Animation" | Symbol 107 MovieClip Frame 26 |
"Remove Animation" | Symbol 107 MovieClip Frame 45 |
"Default" | Symbol 126 MovieClip Frame 1 |
"Rollover Animation" | Symbol 126 MovieClip Frame 10 |
"Clicked Animation" | Symbol 126 MovieClip Frame 29 |
"Remove Animation" | Symbol 126 MovieClip Frame 45 |
"Default" | Symbol 144 MovieClip Frame 1 |
"Rollover Animation" | Symbol 144 MovieClip Frame 10 |
"Clicked Animation" | Symbol 144 MovieClip Frame 31 |
"Remove Animation" | Symbol 144 MovieClip Frame 45 |
"Default" | Symbol 161 MovieClip Frame 1 |
"Rollover Animation" | Symbol 161 MovieClip Frame 10 |
"Clicked Animation" | Symbol 161 MovieClip Frame 24 |
"Remove Animation" | Symbol 161 MovieClip Frame 38 |
"Default" | Symbol 162 MovieClip Frame 1 |
"Rollover Animation" | Symbol 162 MovieClip Frame 10 |
"Clicked Animation" | Symbol 162 MovieClip Frame 24 |
"Remove Animation" | Symbol 162 MovieClip Frame 38 |
"Default" | Symbol 163 MovieClip Frame 1 |
"Rollover Animation" | Symbol 163 MovieClip Frame 10 |
"Clicked Animation" | Symbol 163 MovieClip Frame 24 |
"Remove Animation" | Symbol 163 MovieClip Frame 37 |
"Default" | Symbol 164 MovieClip Frame 1 |
"Rollover Animation" | Symbol 164 MovieClip Frame 10 |
"Clicked Animation" | Symbol 164 MovieClip Frame 24 |
"Remove Animation" | Symbol 164 MovieClip Frame 37 |
"Default" | Symbol 165 MovieClip Frame 1 |
"Rollover Animation" | Symbol 165 MovieClip Frame 10 |
"Clicked Animation" | Symbol 165 MovieClip Frame 26 |
"Remove Animation" | Symbol 165 MovieClip Frame 45 |
"Default" | Symbol 166 MovieClip Frame 1 |
"Rollover Animation" | Symbol 166 MovieClip Frame 10 |
"Clicked Animation" | Symbol 166 MovieClip Frame 29 |
"Remove Animation" | Symbol 166 MovieClip Frame 45 |
"Default" | Symbol 167 MovieClip Frame 1 |
"Rollover Animation" | Symbol 167 MovieClip Frame 10 |
"Clicked Animation" | Symbol 167 MovieClip Frame 31 |
"Remove Animation" | Symbol 167 MovieClip Frame 45 |
"Correct Answer" | Symbol 342 MovieClip Frame 23 |
"Incorrect Answer" | Symbol 342 MovieClip Frame 60 |
Dynamic Text Variables
points | Symbol 175 EditableText | "+20" |
text | Symbol 190 EditableText | "" |
question | Symbol 318 EditableText | "" |
field | Symbol 323 EditableText | "" |
choice | Symbol 324 EditableText | "" |
field | Symbol 349 EditableText | "" |
score | Symbol 404 EditableText | "0" |
|