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

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

Jewels of the Dark.swf

This is the info page for
Flash #42236

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


Text
+20

Jewels of the Dark

Please select, then click "Play"

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

Free
Download

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

Quiz Question

Correct Answer!

Incorrect Answer!

No More Moves!
New Board...

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

No More Moves!
Game Over!

NEW  GAME

0

PAUSE

RESUME

SOUNDS OFF

SOUNDS ON

HINT

Play Again

0

Score:

ActionScript [AS1/AS2]

Frame 1
var MochiAd = {getVersion:function () { return("2.2"); }, showPreGameAd:function (options) { var _local1 = this; var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); var clip = options.clip; var ad_msec = 11000; var ad_timeout = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)) { options.ad_finished(); } else { options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var wh = MochiAd._getRes(options); var _local3 = wh[0]; var h = wh[1]; mc._x = _local3 * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local3 * -0.5; chk._y = h * -0.5; var bar = chk.createEmptyMovieClip("_mochiad_bar", 4); bar._x = 10; bar._y = h - 20; var bar_color = options.color; delete options.color; var bar_background = options.background; delete options.background; var bar_outline = options.outline; delete options.outline; var backing = bar.createEmptyMovieClip("_outline", 1); backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo(_local3 - 20, 0); backing.lineTo(_local3 - 20, 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var _local2 = bar.createEmptyMovieClip("_inside", 2); _local2.beginFill(bar_color); _local2.moveTo(0, 0); _local2.lineTo(_local3 - 20, 0); _local2.lineTo(_local3 - 20, 10); _local2.lineTo(0, 10); _local2.lineTo(0, 0); _local2.endFill(); _local2._xscale = 0; var outline = bar.createEmptyMovieClip("_outline", 3); outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo(_local3 - 20, 0); outline.lineTo(_local3 - 20, 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local1 = this; var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time)); if (_local2 > 0) { _local1._parent._alpha = _local2; } else { var _local3 = _local1._parent._parent; MochiAd.unload(_local3); delete _local1.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _local1 = this.mc._mochiad_wait; _local1.server_control = true; _local1.started = getTimer(); _local1.ad_msec = msec; }; chk.onEnterFrame = function () { var _local1 = this; var _clip = _local1._parent._parent; var ad_clip = _local1._parent._mochiad_ctr; var elapsed = (getTimer() - _local1.started); var _local3 = false; var clip_total = _clip.getBytesTotal(); var clip_loaded = _clip.getBytesLoaded(); var clip_pcnt = ((100 * clip_loaded) / clip_total); var ad_pcnt = ((100 * elapsed) / chk.ad_msec); var _inside = _local1._mochiad_bar._inside; var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt)); _local2 = Math.max(_local1.last_pcnt, _local2); _local1.last_pcnt = _local2; _inside._xscale = _local2; if (!chk.showing) { var total = ad_clip.getBytesTotal(); if ((total > 0) || (typeof(total) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { _local3 = true; } } if (elapsed > chk.ad_msec) { _local3 = true; } if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) { if (_local1.server_control) { delete _local1.onEnterFrame; } else { _local1.fadeout_start = getTimer(); _local1.onEnterFrame = chk.fadeFunction; } } }; } }, showInterLevelAd:function (options) { var _local1 = this; var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); var clip = options.clip; var ad_msec = 11000; var ad_timeout = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)) { options.ad_finished(); } else { options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var wh = MochiAd._getRes(options); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local1 = this; var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time)); if (_local2 > 0) { _local1._parent._alpha = _local2; } else { var _local3 = _local1._parent._parent; MochiAd.unload(_local3); delete _local1.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _local1 = this.mc._mochiad_wait; _local1.server_control = true; _local1.started = getTimer(); _local1.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var _local1 = this; var ad_clip = _local1._parent._mochiad_ctr; var elapsed = (getTimer() - _local1.started); var _local2 = false; if (!chk.showing) { var _local3 = ad_clip.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { _local2 = true; } } if (elapsed > chk.ad_msec) { _local2 = true; } if (_local2) { if (_local1.server_control) { delete _local1.onEnterFrame; } else { _local1.fadeout_start = getTimer(); _local1.onEnterFrame = _local1.fadeFunction; } } }; } }, showTimedAd:function (options) { MochiAd.showInterLevelAd(options); }, showPreloaderAd:function (options) { MochiAd.showPreGameAd(options); }, _allowDomains:function (server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); }, _loadCommunicator:function (options) { var _local2 = options; var _local3 = arguments; var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; _local2 = MochiAd._parseOptions(_local2, DEFAULTS); _local2.swfv = _local2.clip.getSWFVersion() || 6; _local2.mav = MochiAd.getVersion(); var clip = _local2.clip; var clipname = ("_mochiad_com_" + _local2.id); if (!MochiAd._isNetworkAvailable()) { return(null); } if (clip[clipname]) { return(clip[clipname].lc); } var server = (_local2.com_server + _local2.id); MochiAd._allowDomains(server); delete _local2.id; delete _local2.com_server; var depth = _local2.depth; delete _local2.depth; var mc = clip.createEmptyMovieClip(clipname, depth); var lv = mc.createEmptyMovieClip("_mochiad_com", 1); for (var k in _local2) { lv[k] = _local2[k]; } var lc = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); lc.mc = mc; lc.name = name; lc.allowDomain = function (d) { return(true); }; lc.allowInsecureDomain = lc.allowDomain; lc.connect(name); mc.lc = lc; lv.lc = name; lc._id = 0; lc._queue = []; lc.rpcResult = function (cb_arg) { var cb = parseInt(cb_arg); var _local2 = this._callbacks[cb]; if (!_local2) { } else { delete this._callbacks[cb]; var _local3 = []; var _local1 = 2; while (_local1 < _local2.length) { _local3.push(_local2[_local1]); _local1++; } _local1 = 1; while (_local1 < arguments.length) { _local3.push(arguments[_local1]); _local1++; } var method = _local2[1]; var obj = _local2[0]; if (obj && (typeof(method) == "string")) { method = obj[method]; } if (method) { method.apply(obj, _local3); } } }; lc._didConnect = function (endpoint) { this._endpoint = endpoint; var _local3 = this._queue; delete this._queue; var ds = this.doSend; var _local1 = 0; while (_local1 < _local3.length) { var _local2 = _local3[_local1]; ds.apply(this, _local2); _local1++; } }; lc.doSend = function (args, cbobj, cbfn) { var _local2 = arguments; if (this._endpoint == null) { var _local3 = []; var _local1 = 0; while (_local1 < _local2.length) { _local3.push(_local2[_local1]); _local1++; } this._queue.push(_local3); } else { this._id = this._id + 1; var id = this._id; if ((cbfn === undefined) || (cbfn === null)) { cbfn = cbobj; } this._callbacks[id] = [cbobj, cbfn]; var slc = new LocalConnection(); var ss = slc.send(this._endpoint, "rpc", id, args); } }; lc._callbacks = {}; lc._callbacks[0] = [lc, "_didConnect"]; lv.st = getTimer(); lv.loadMovie(server + ".swf", "POST"); return(lc); }, fetchHighScores:function (options, callbackObj, callbackMethod) { var _local2 = options; var _local1 = MochiAd._loadCommunicator({id:_local2.id}); if (!_local1) { return(false); } var fncall = ["fetchHighScores", _local2]; _local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod); return(true); }, sendHighScore:function (options, callbackObj, callbackMethod) { var _local2 = options; var _local1 = MochiAd._loadCommunicator({id:_local2.id}); if (!_local1) { return(false); } var fncall = ["sendHighScore", _local2]; _local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod); return(true); }, load:function (options) { var _local1 = options; var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; _local1 = MochiAd._parseOptions(_local1, DEFAULTS); _local1.swfv = _local1.clip.getSWFVersion() || 6; _local1.mav = MochiAd.getVersion(); var clip = _local1.clip; if (!MochiAd._isNetworkAvailable()) { return(null); } if (clip._mochiad_loaded) { return(null); } var depth = _local1.depth; delete _local1.depth; var mc = clip.createEmptyMovieClip("_mochiad", depth); var wh = MochiAd._getRes(_local1); _local1.res = (wh[0] + "x") + wh[1]; _local1.server = _local1.server + _local1.id; delete _local1.id; clip._mochiad_loaded = true; var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1); for (var k in _local1) { _local2[k] = _local1[k]; } var server = _local2.server; delete _local2.server; var hostname = MochiAd._allowDomains(server); mc.onEnterFrame = function () { var _local1 = this; if (_local1._mochiad_ctr._url != _local1._url) { _local1.onEnterFrame = function () { var _local1 = this; if (!_local1._mochiad_ctr) { delete _local1.onEnterFrame; MochiAd.unload(_local1._parent); } }; } }; var _local3 = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local3.mc = mc; _local3.name = name; _local3.hostname = hostname; _local3.allowDomain = function (d) { return(true); }; _local3.allowInsecureDomain = _local3.allowDomain; _local3.connect(name); mc.lc = _local3; _local2.lc = name; _local2.st = getTimer(); _local2.loadMovie(server + ".swf", "POST"); return(mc); }, unload:function (clip) { var _local1 = clip; if (typeof(_local1) == "undefined") { _local1 = _root; } if (_local1.clip && (_local1.clip._mochiad)) { _local1 = _local1.clip; } if (!_local1._mochiad) { return(false); } _local1._mochiad.removeMovieClip(); delete _local1._mochiad_loaded; delete _local1._mochiad; return(true); }, _isNetworkAvailable:function () { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); }, _getRes:function (options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var xy = options.res.split("x"); _local2 = parseFloat(xy[0]); _local1 = parseFloat(xy[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); }, _parseOptions:function (options, defaults) { var _local3 = {}; for (var k in defaults) { _local3[k] = defaults[k]; } if (options) { for (var k in options) { _local3[k] = options[k]; } } if (_root.mochiad_options) { var pairs = _root.mochiad_options.split("&"); var _local1 = 0; while (_local1 < pairs.length) { var _local2 = pairs[_local1].split("="); _local3[unescape(_local2[0])] = unescape(_local2[1]); _local1++; } } if (_local3.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local3); }, _:null}; MochiAd.showPreGameAd({id:"0dafc2d771489809", res:"640x520", background:6723840, color:3098112, outline:0, no_bg:true});
Frame 2
stop();
Frame 3
game.game_type = _root.game_type; game.automatic_hint = false; stop(); _root._quality = "medium";
Instance of Symbol 384 MovieClip [DiamondMineComponent] "game" in Frame 3
//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.55; num_rows = 9; num_columns = 9; piece_acceleration = 2; stage_width = 640; stage_height = 480; points_per_piece = 1; level_point_increase = 5; }
Frame 4
stop(); _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)); }; #endinitclip
Symbol 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); }; #endinitclip
Symbol 12 MovieClip [MovieClipExtensions] Frame 1
#initclip 2 MovieClip.prototype.playing = false; MovieClip.prototype.mouseOver = false; MovieClip.prototype._currentlabel = ""; MovieClip.prototype._play = function () { this.playing = true; this.play(); }; MovieClip.prototype._stop = function () { this.playing = false; this.stop(); }; MovieClip.prototype._gotoAndPlay = function (frame) { 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)); }; #endinitclip
Symbol 23 MovieClip Frame 1
this._stop();
Symbol 23 MovieClip Frame 22
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 23 MovieClip Frame 37
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 23 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 33 MovieClip Frame 1
this._stop();
Symbol 33 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 33 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 33 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 44 MovieClip Frame 1
this._stop();
Symbol 44 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 44 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 44 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 56 MovieClip Frame 1
this._stop();
Symbol 56 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 56 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 56 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 66 MovieClip Frame 1
this._stop();
Symbol 66 MovieClip Frame 25
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 66 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 66 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 78 MovieClip Frame 1
this._stop();
Symbol 78 MovieClip Frame 28
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 78 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 78 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 90 MovieClip Frame 1
this._stop();
Symbol 90 MovieClip Frame 30
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 90 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 90 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 104 MovieClip Frame 1
this._stop();
Symbol 104 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 104 MovieClip Frame 37
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 104 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 123 MovieClip Frame 1
this._stop();
Symbol 123 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 123 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 123 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 142 MovieClip Frame 1
this._stop();
Symbol 142 MovieClip Frame 23
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 142 MovieClip Frame 36
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 142 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 162 MovieClip Frame 1
this._stop();
Symbol 162 MovieClip Frame 25
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 162 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 162 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 182 MovieClip Frame 1
this._stop();
Symbol 182 MovieClip Frame 28
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 182 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 182 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 200 MovieClip Frame 1
this._stop();
Symbol 200 MovieClip Frame 30
if (this.mouseOver) { this._gotoAndPlay("Rollover Animation"); } else { this._gotoAndStop("Default"); }
Symbol 200 MovieClip Frame 44
if (this.mouseOver) { this._gotoAndPlay("Clicked Animation"); } else { this._gotoAndStop("Default"); }
Symbol 200 MovieClip Frame 62
this._gotoAndStop("Default");
Symbol 201 MovieClip [game_piece] Frame 1
this._stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 62
this._gotoAndPlay(2);
Symbol 204 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) { trace("NEXT LEVEL"); _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; } }; #endinitclip
Symbol 205 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; } }; #endinitclip
Symbol 206 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; }; #endinitclip
Symbol 209 MovieClip [points_animation] Frame 16
this.unloadMovie();
Symbol 251 Button
on (press) { this.gotoAndStop(1); }
Symbol 255 Button
on (press) { this.gotoAndStop(2); }
Symbol 256 MovieClip Frame 1
stop(); _root.game_type = "Normal";
Symbol 256 MovieClip Frame 2
_root.game_type = "Timer";
Symbol 260 Button
on (release) { this.play(); }
Symbol 263 Button
on (release) { getURL ("http://www.jewelsofthedark.com/", "_blank"); }
Symbol 268 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
this._stop();
Symbol 270 MovieClip Frame 2
this._stop();
Symbol 270 MovieClip Frame 3
this._stop();
Symbol 270 MovieClip Frame 4
this._stop();
Symbol 270 MovieClip Frame 5
this._stop();
Symbol 270 MovieClip Frame 6
this._stop();
Symbol 274 MovieClip Frame 1
this._visible = false;
Symbol 290 Button
on (press) { _parent._parent.evaluate_answer(this); }
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 22
stop(); _parent.fill_quiz_form();
Symbol 310 MovieClip Frame 59
this._gotoAndStop(1);
Symbol 310 MovieClip Frame 96
this._gotoAndStop(1);
Symbol 325 MovieClip Frame 60
this._gotoAndStop(1);
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 75
this._gotoAndStop(1);
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 22
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 120
this._gotoAndStop(1);
Symbol 367 Button
on (press) { _root.gotoAndStop("Starting Screen"); }
Symbol 371 Button
on (press) { if (_parent.paused_prompt._currentframe != 1) { return(undefined); } _parent.pause_game(); this.nextFrame(); }
Symbol 373 Button
on (press) { if (_parent.paused_prompt._currentframe != 22) { return(undefined); } _parent.unpause_game(); this.prevFrame(); }
Symbol 374 MovieClip Frame 1
stop();
Symbol 377 Button
on (press) { nextFrame(); }
Symbol 379 Button
on (press) { prevFrame(); }
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
Symbol 383 Button
on (press) { var grid = this.get_current_grid(); var j = 0; while (j < this.num_rows) { var k = 0; while (k < this.num_columns) { var neighbors = this.get_neighbors(j, k); if (this.check_possible_swaps(grid, j, k, neighbors)) { var _mc = this.piece_holder[(("piece_" + j) + "_") + k]; _mc.onRollOver(); _mc.onRollOut(); this.score = this.score - 25; return(undefined); } k++; } j++; } }
Symbol 384 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 _local2 = this; _local2.quiz_loader = new LoadVars(); _local2.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.removeMovieClip(); _local1.paused = false; _local1.shaking_mc = undefined; _local1.sounds_on = true; _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 = piece_mc; var _local2 = this; _local1.selector_mc._gotoAndStop(1); if (!custom_animation) { _local1.pieces.sub._gotoAndStop("Default"); } if (_local1 == _local2.selected_piece0_mc) { _local2.selected_piece0_mc = undefined; } if (_local1 == _local2.selected_piece1_mc) { _local2.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.removeMovieClip(); _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) > 100000000000) && (!_local2.check_for_movement())) { _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(123456789); _mc.onRollOut(123456789); return; } _local1++; } _local3++; } } _local2.update_game_timer(); _local2.update_game_properties(); }; DiamondMine.prototype.update_game_timer = function () { var _local1 = this; _local1.old_time_percentage = _local1.time_percentage; if (((_local1.game_type == "Timer") && (!_local1.paused)) && (_global.__NEW_BOARD_PROMPT__ != true)) { _local1.time_percentage = _local1.time_percentage - (_local1.time_percent_change + (_local1.level_percent_change_increase * _local1.current_level)); } if (_local1.time_percentage < 10) { if (_local1.warn_sound == undefined) { _local1.warn_sound = new Sound(); _local1.warn_sound.attachSound("warning"); _local1.warn_sound.start(); _local1.warning_sound_start = getTimer(); } if (getTimer() > (_local1.warning_sound_start + 1000)) { _local1.warn_sound.stop(); _local1.warn_sound.start(); _local1.warning_sound_start = getTimer(); } _local1.timer_mc.frame_mc.play(); } else { _local1.timer_mc.frame_mc.gotoAndStop(1); } _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.sounds_on = _local1.sounds_on; _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.removeMovieClip(); } } } _local2.paused = true; _local2.time_percentage = 50; _local2.initialize_level(); }; 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.removeMovieClip(); } } } _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 _local2 = this; if (_local2.sounds_mc._currentframe == 2) { } else if (_local2.sounds_on == true) { var _local1 = new Sound(_local2); _local1.attachSound(linkage); _local1.start(0, 1); } }; DiamondMine.prototype.onMouseDown = function () { var _local2 = this; var _local3 = _root; _local2.shaking_mc.onRollOut(123456789); _local2.shaking_mc = undefined; for (var j in _local2.piece_holder) { var _local1 = _local2.piece_holder[j]; if ((_local1.hitTest(_local3._xmouse, _local3._ymouse, true) && (_local1._name != "backgrounds")) && (_local1._name != "play_area")) { } } }; #endinitclip this._x = 0; this._y = 0;
Instance of Symbol 275 MovieClip "piece_holder" in Symbol 384 MovieClip [DiamondMineComponent] Frame 1
onClipEvent (keyDown) { if (Key.isDown(16)) { trace(_parent.hasPossibleSolution()); } else if (Key.isDown(32)) { for (var j in this) { if (typeof(this[j]) == "movieclip") { trace(this[j]); } } } }
Symbol 388 Button
on (press) { this.gotoAndPlay("Starting Screen"); }

Library Items

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

Instance Names

"game"Frame 3Symbol 384 MovieClip [DiamondMineComponent]
"score_txt"Frame 4Symbol 391 EditableText
"sub"Symbol 201 MovieClip [game_piece] Frame 1Symbol 23 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 2Symbol 33 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 3Symbol 44 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 4Symbol 56 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 5Symbol 66 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 6Symbol 78 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 7Symbol 90 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 8Symbol 104 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 10Symbol 123 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 11Symbol 142 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 12Symbol 162 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 13Symbol 182 MovieClip
"sub"Symbol 201 MovieClip [game_piece] Frame 14Symbol 200 MovieClip
"pieces"Symbol 204 MovieClip [PieceComponent] Frame 1Symbol 201 MovieClip [game_piece]
"selector_mc"Symbol 204 MovieClip [PieceComponent] Frame 1Symbol 203 MovieClip
"frame_mc"Symbol 269 MovieClip Frame 1Symbol 266 MovieClip
"bar_mc"Symbol 269 MovieClip Frame 1Symbol 268 MovieClip
"backgrounds"Symbol 275 MovieClip Frame 1Symbol 270 MovieClip
"play_area"Symbol 275 MovieClip Frame 1Symbol 274 MovieClip
"choice0"Symbol 310 MovieClip Frame 22Symbol 293 MovieClip
"choice1"Symbol 310 MovieClip Frame 22Symbol 293 MovieClip
"choice2"Symbol 310 MovieClip Frame 22Symbol 293 MovieClip
"choice3"Symbol 310 MovieClip Frame 22Symbol 293 MovieClip
"timer_mc"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 269 MovieClip
"piece_holder"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 275 MovieClip
"quiz_prompt"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 310 MovieClip
"level_prompt"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 325 MovieClip
"new_board_prompt"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 339 MovieClip
"paused_prompt"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 352 MovieClip
"game_over_prompt"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 365 MovieClip
"score_txt"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 369 EditableText
"sounds_mc"Symbol 384 MovieClip [DiamondMineComponent] Frame 1Symbol 380 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "sdb_hit1"
ExportAssets (56)Timeline Frame 1Symbol 2 as "sdb_hit3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "egg_move_sound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "snap_sound"
ExportAssets (56)Timeline Frame 1Symbol 5 as "ddd_shoot2"
ExportAssets (56)Timeline Frame 1Symbol 6 as "ddd_shoot1"
ExportAssets (56)Timeline Frame 1Symbol 7 as "clear_sound2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "clear_sound1"
ExportAssets (56)Timeline Frame 1Symbol 9 as "clear_sound0"
ExportAssets (56)Timeline Frame 1Symbol 10 as "MathExtensions"
ExportAssets (56)Timeline Frame 1Symbol 11 as "ArrayExtensions"
ExportAssets (56)Timeline Frame 1Symbol 12 as "MovieClipExtensions"
ExportAssets (56)Timeline Frame 1Symbol 201 as "game_piece"
ExportAssets (56)Timeline Frame 1Symbol 201 as "game_piece"
ExportAssets (56)Timeline Frame 1Symbol 204 as "PieceComponent"
ExportAssets (56)Timeline Frame 1Symbol 205 as "TextfieldExtensions"
ExportAssets (56)Timeline Frame 1Symbol 206 as "ObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 209 as "points_animation"
ExportAssets (56)Timeline Frame 3Symbol 384 as "DiamondMineComponent"

Labels

"Ad"Frame 1
"Starting Screen"Frame 2
"Game Over"Frame 4
"Default"Symbol 23 MovieClip Frame 1
"Rollover Animation"Symbol 23 MovieClip Frame 10
"Clicked Animation"Symbol 23 MovieClip Frame 23
"Remove Animation"Symbol 23 MovieClip Frame 38
"Default"Symbol 33 MovieClip Frame 1
"Rollover Animation"Symbol 33 MovieClip Frame 10
"Clicked Animation"Symbol 33 MovieClip Frame 24
"Remove Animation"Symbol 33 MovieClip Frame 37
"Default"Symbol 44 MovieClip Frame 1
"Rollover Animation"Symbol 44 MovieClip Frame 10
"Clicked Animation"Symbol 44 MovieClip Frame 24
"Remove Animation"Symbol 44 MovieClip Frame 37
"Default"Symbol 56 MovieClip Frame 1
"Rollover Animation"Symbol 56 MovieClip Frame 10
"Clicked Animation"Symbol 56 MovieClip Frame 24
"Remove Animation"Symbol 56 MovieClip Frame 37
"Default"Symbol 66 MovieClip Frame 1
"Rollover Animation"Symbol 66 MovieClip Frame 10
"Clicked Animation"Symbol 66 MovieClip Frame 26
"Remove Animation"Symbol 66 MovieClip Frame 45
"Default"Symbol 78 MovieClip Frame 1
"Rollover Animation"Symbol 78 MovieClip Frame 10
"Clicked Animation"Symbol 78 MovieClip Frame 29
"Remove Animation"Symbol 78 MovieClip Frame 45
"Default"Symbol 90 MovieClip Frame 1
"Rollover Animation"Symbol 90 MovieClip Frame 10
"Clicked Animation"Symbol 90 MovieClip Frame 31
"Remove Animation"Symbol 90 MovieClip Frame 45
"Default"Symbol 104 MovieClip Frame 1
"Rollover Animation"Symbol 104 MovieClip Frame 10
"Clicked Animation"Symbol 104 MovieClip Frame 24
"Remove Animation"Symbol 104 MovieClip Frame 38
"Default"Symbol 123 MovieClip Frame 1
"Rollover Animation"Symbol 123 MovieClip Frame 10
"Clicked Animation"Symbol 123 MovieClip Frame 24
"Remove Animation"Symbol 123 MovieClip Frame 37
"Default"Symbol 142 MovieClip Frame 1
"Rollover Animation"Symbol 142 MovieClip Frame 10
"Clicked Animation"Symbol 142 MovieClip Frame 24
"Remove Animation"Symbol 142 MovieClip Frame 37
"Default"Symbol 162 MovieClip Frame 1
"Rollover Animation"Symbol 162 MovieClip Frame 10
"Clicked Animation"Symbol 162 MovieClip Frame 26
"Remove Animation"Symbol 162 MovieClip Frame 45
"Default"Symbol 182 MovieClip Frame 1
"Rollover Animation"Symbol 182 MovieClip Frame 10
"Clicked Animation"Symbol 182 MovieClip Frame 29
"Remove Animation"Symbol 182 MovieClip Frame 45
"Default"Symbol 200 MovieClip Frame 1
"Rollover Animation"Symbol 200 MovieClip Frame 10
"Clicked Animation"Symbol 200 MovieClip Frame 31
"Remove Animation"Symbol 200 MovieClip Frame 45
"Correct Answer"Symbol 310 MovieClip Frame 23
"Incorrect Answer"Symbol 310 MovieClip Frame 60

Dynamic Text Variables

pointsSymbol 208 EditableText"+20"
questionSymbol 286 EditableText""
fieldSymbol 291 EditableText""
choiceSymbol 292 EditableText""
fieldSymbol 317 EditableText""
scoreSymbol 391 EditableText"0"




http://swfchan.com/9/42236/info.shtml
Created: 10/5 -2019 01:05:44 Last modified: 10/5 -2019 01:05:44 Server time: 21/12 -2024 07:45:53