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

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

Klondike.swf

This is the info page for
Flash #42537

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


Text
Congratulations!

Special Game:
(leave blank for random)

ActionScript [AS1/AS2]

Frame 1
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("202316d9", this, 10301, true); Array.prototype.shuffle = function () { var _local2 = 200; l = 0; while (l < _local2) { this.splice(random(this.length), 0, this.splice(random(this.length), 1)); l++; } }; byGameMagnet_btn.onRelease = function () { getURL ("http://gamemagnet.com"); }; qbris_btn.onRelease = function () { getURL ("http://qbris.com"); }; var my_lv = new LoadVars(); my_lv.onLoad = function (success) { if (success) { trace(this.toString()); trace(this.topscore); topScore_txt.text = "Personal best: " + this.topscore; topScore = this.topscore; } else { trace("Error loading/parsing LoadVars."); } }; my_lv.load("http://www.qbris.com/saveKlondike.php"); newGame_btn.onRelease = function () { if (gameNumber_txt.text) { } else { deck.shuffle(); deck.shuffle(); } startGame(); }; heightFromTop = 100; suit = ["h", "r", "k", "s"]; nr = 0; deck = new Array(52); i = 1; while (i < 14) { s = 0; while (s < 4) { deck[nr] = suit[s] + i; nr++; s++; } i++; } deck.shuffle(); deck.shuffle(); var remember = new Object(); remember.cardsToMove = new Array(); remember.movedFrom = ""; remember.dropedAt = ""; undo_btn.onRelease = function () { if (otherEvent == "turnedCard") { } else if (otherEvent == "newCards") { } else if (movedFrom != "false") { if (movedFrom == "x") { openCards.unshift(cardsToMove[0]); _root[cardsToMove[0]].coll = "x"; _root[cardsToMove[0]].loch = 75 + (_root[cardsToMove[0]].order * 15); _root[cardsToMove[0]].locv = 1; if (dropedAt < 10) { cols[dropedAt].pop(); score = score - 5; } else { places[dropedAt - 10].shift(); score = score - 10; } } else if (movedFrom > 9) { _root[cardsToMove[0]].place = movedFrom - 10; places[_root[cardsToMove[0]].place].unshift(cardsToMove[0]); _root[cardsToMove[0]].coll = movedFrom; _root[cardsToMove[0]].loch = ((_root[cardsToMove[0]].place + 3) * 70) + 1; _root[cardsToMove[0]].locv = 1; if (dropedAt > 9) { places[dropedAt - 10].shift(); } else { cols[dropedAt].pop(); score = score - 10; } } else { i = 0; while (cardsToMove[i]) { if (dropedAt > 9) { places[dropedAt - 10].pop(); } else { cols[dropedAt].pop(); } _root[cardsToMove[i]].coll = movedFrom; _root[cardsToMove[i]].loch = (movedFrom * 70) + 1; if (cols[movedFrom].length) { if (_root[cols[movedFrom][cols[movedFrom].length - 1]].backside._name) { dist = 5; } else { dist = 15; } _root[cardsToMove[i]].locv = _root[cols[movedFrom][cols[movedFrom].length - 1]]._y + dist; } else { _root[cardsToMove[i]].locv = heightFromTop; } cols[movedFrom].push(cardsToMove[i]); i++; } } } otherEvent = "none"; movedFrom = "false"; _root[cardsToMove[0]]._x = _root[cardsToMove[0]].loch; _root[cardsToMove[0]]._y = _root[cardsToMove[0]].locv; }; openCards = new Array(); newCards_mc.useHandCursor = false; newCards_mc.onRelease = function () { otherEvent = "newCards"; if (newCards_mc.noCards._name) { stack = new Array(); i = 0; while (openCards[i]) { stack.unshift(openCards[i]); i++; } openCards = new Array(); removeMovieClip(newCards_mc.noCards); i = 0; while (stack[i]) { _root[stack[i]]._x = -100; _root[stack[i]].loch = -100; i++; } } else { i = 0; while (stack[i]) { _root[stack[i]]._x = -100; _root[stack[i]].loch = -100; i++; } i = 0; while (openCards[i]) { _root[openCards[i]]._x = 73; _root[openCards[i]].loch = 73; i++; } i = 0; while (i < 3) { if (stack[0]) { _root[stack[0]].order = i; _root[stack[0]].loch = 75 + (i * 15); _root[stack[0]]._x = _root[stack[0]].loch; _root[stack[0]].swapDepths(_root.getNextHighestDepth()); openCards.unshift(stack[0]); stack.shift(); } i++; } if (stack.length == 0) { newCards_mc.attachMovie("noCards", "noCards", 1); } } }; pressCard = function (card) { _root[card].onPress = function () { if ((getTimer() - this.lastClicked) < 400) { if ((this.coll < 10) or (this._name == openCards[0].toString())) { if (this.number == 1) { i = 0; while (i < 4) { if (places[i].length == 0) { break; } i++; } forceDropAt = i + 3; } else { lookingFor = this.suit + (this.number - 1); i = 0; while (i < 4) { j = 0; while (places[i][j]) { if (places[i][j].toString() == lookingFor) { forceDropAt = i + 3; } j++; } i++; } } } } this.lastClicked = getTimer(); if (this.backside._name) { score = score + 5; otherEvent = "turnedCard"; if (cols[this.coll][cols[this.coll].length - 1].toString() == this._name) { removeMovieClip(this.backside); } } else if (this.coll == "x") { if (this._name == openCards[0].toString()) { this.startDrag(); this.swapDepths(_root.getNextHighestDepth()); cardsToMove = Array(this._name); } } else if (this.coll > 9) { this.startDrag(); this.swapDepths(_root.getNextHighestDepth()); cardsToMove = Array(this._name); } else { this.startDrag(); overCard = false; cardsToMove = new Array(); cardToFollow = this._name; i = 0; while (cols[this.coll][i]) { if (this._name == cols[this.coll][i].toString()) { overCard = true; } if (overCard) { _root[cols[this.coll][i]].swapDepths(_root.getNextHighestDepth()); cardsToMove.push(cols[this.coll][i]); } i++; } } }; }; releaseCard = function (card) { _root[card].onRelease = function () { if (!forceDropAt) { dropedAt = Math.floor((this._x + 35) / 70); } else { dropedAt = forceDropAt; } movedFrom = this.coll; topCard = cols[dropedAt][cols[dropedAt].length - 1]; this.lastTime = (dropedAt + movedFrom) + topCard; if ((this._y < (heightFromTop / 2)) or forceDropAt) { forceDropAt = ""; dropedAt = dropedAt - 3; topCard = places[dropedAt][places[dropedAt].length - 1]; if (((-1 < dropedAt) < 4) and (cardsToMove.length == 1)) { _root[cardsToMove[0]].place = dropedAt; if ((_root[cardsToMove[0]].number == 1) and (places[dropedAt].length == 0)) { places[dropedAt].push(cardsToMove[0]); if (movedFrom < 10) { cols[movedFrom].pop(); } else if (movedFrom == "x") { openCards.shift(); } else { places[movedFrom - 10].pop(); } _root[cardsToMove[0]].loch = ((dropedAt + 3) * 70) + 1; _root[cardsToMove[0]].locv = 1; _root[cardsToMove[0]].coll = dropedAt + 10; dropedAt = dropedAt + 10; score = score + 10; } else if ((_root[topCard].suit == this.suit) and ((_root[topCard].number + 1) == this.number)) { places[dropedAt].push(cardsToMove[0]); if (movedFrom < 10) { cols[movedFrom].pop(); } else if (movedFrom == "x") { openCards.shift(); } else { places[movedFrom - 10].pop(); } _root[cardsToMove[0]].loch = ((dropedAt + 3) * 70) + 1; _root[cardsToMove[0]].locv = 1; _root[cardsToMove[0]].coll = dropedAt + 10; dropedAt = dropedAt + 10; score = score + 10; } } } else if (_root[topCard].number == (this.number + 1)) { if (_root[topCard].colour != this.colour) { i = 0; while (cardsToMove[i]) { cols[dropedAt].push(cardsToMove[i]); if (movedFrom < 10) { cols[movedFrom].pop(); } else if (movedFrom == "x") { openCards.shift(); score = score + 5; } else { places[movedFrom - 10].pop(); } _root[cardsToMove[i]].loch = _root[topCard]._x; _root[cardsToMove[i]].locv = _root[topCard]._y + ((i + 1) * 15); _root[cardsToMove[i]].coll = dropedAt; i++; } } } else if (cols[dropedAt].length == 0) { if (this.number == 13) { i = 0; while (cardsToMove[i]) { cols[dropedAt].push(cardsToMove[i]); if (movedFrom < 10) { cols[movedFrom].pop(); } else if (movedFrom == "x") { openCards.shift(); score = score + 5; } else { places[movedFrom - 10].pop(); } _root[cardsToMove[i]].loch = (dropedAt * 70) + 1; _root[cardsToMove[i]].locv = (i * 15) + heightFromTop; _root[cardsToMove[i]].coll = dropedAt; i++; } } } if ((remember.cols != cols.toString()) or (remember.places != places.toString())) { remember.places = places.toString(); remember.cols = cols.toString(); i = 0; while (cardsToMove[i]) { remember.cardsToMove[i] = cardsToMove[i]; i++; } remember.movedFrom = movedFrom; remember.dropedAt = dropedAt; otherEvent = "none"; } this.stopDrag(); this._x = this.loch; this._y = this.locv; i = 0; while (i < 4) { if ((((places[0].length + places[1].length) + places[2].length) + places[3].length) == 52) { congratulations_mc._x = 50; } i++; } }; }; nr = 0; i = 0; while (i < 52) { _root.createEmptyMovieClip(deck[nr], nr); _root[deck[nr]].attachBitmap(flash.display.BitmapData.loadBitmap(deck[nr] + ".gif"), 0); _root[deck[nr]].number = Number(deck[nr].toString().substr(1, 2)); _root[deck[nr]].suit = deck[nr].toString().substr(0, 1); _root[deck[nr]].useHandCursor = false; if ((_root[deck[nr]].suit == "h") or (_root[deck[nr]].suit == "r")) { _root[deck[nr]].colour = "red"; } else { _root[deck[nr]].colour = "black"; } pressCard(deck[nr]); releaseCard(deck[nr]); nr++; i++; } startGame = function () { score = 0; startTime = getTimer(); removeMovieClip(newCards_mc.noCards); congratulations_mc._x = 5000; remember.cardsToMove = new Array(); remember.movedFrom = ""; remember.dropedAt = ""; openCards = new Array(); dropedAt = ""; movedFrom = "none"; places = new Array(new Array(), new Array(), new Array(), new Array()); remember.places = places.toString(); nr = 0; cols = new Array(7); i = 0; while (i < 7) { cols[i] = new Array(); j = 0; while (j <= i) { _root[deck[nr]].coll = i; cols[i][j] = deck[nr]; _root[deck[nr]].swapDepths(_root.getNextHighestDepth()); _root[deck[nr]].loch = (i * 70) + 1; _root[deck[nr]].locv = (Math.floor(j) * 5) + heightFromTop; _root[deck[nr]]._x = _root[deck[nr]].loch; _root[deck[nr]]._y = _root[deck[nr]].locv; if (i != j) { _root[deck[nr]].attachMovie("backside", "backside", 1); } else { removeMovieClip(_root[deck[nr]].backside); } nr++; j++; } i++; } remember.cols = cols.toString(); stack = new Array(); while (nr < 52) { removeMovieClip(_root[deck[nr]].backside); _root[deck[nr]].coll = "x"; _root[deck[nr]].loch = -100; _root[deck[nr]].locv = 1; _root[deck[nr]]._x = _root[deck[nr]].loch; _root[deck[nr]]._y = _root[deck[nr]].locv; stack.push(deck[nr]); cols[i][j] = deck[nr]; nr++; } }; startGame(); _root.onEnterFrame = function () { if (time_txt.text != ("Time: " + Math.floor((getTimer() - startTime) / 1000))) { if ((Math.floor((getTimer() - startTime) / 1000) % 10) == 0) { if (score > 1) { score = score - 2; } } } if (score_txt.text != ("Score: " + score)) { score_txt.text = "Score: " + score; if (score > topScore) { trace("\u00E4ndrades"); my_lv.load("http://www.qbris.com/saveKlondike.php?newScore=" + score); } } time_txt.text = "Time: " + Math.floor((getTimer() - startTime) / 1000); i = 1; while (cardsToMove[i]) { _root[cardsToMove[i]]._y = _root[cardToFollow]._y + (15 * i); _root[cardsToMove[i]]._x = _root[cardToFollow]._x; i++; } }; var mouseListener = new Object(); mouseListener.onMouseUp = function () { _root[topLayer.following].stopDrag(); removeMovieClip(_root.topLayer); }; Mouse.addListener(mouseListener);

Library Items

Symbol 1 Bitmap [s9.gif]
Symbol 2 Bitmap [s8.gif]
Symbol 3 Bitmap [s7.gif]
Symbol 4 Bitmap [s6.gif]
Symbol 5 Bitmap [s5.gif]
Symbol 6 Bitmap [s4.gif]
Symbol 7 Bitmap [s3.gif]
Symbol 8 Bitmap [s2.gif]
Symbol 9 Bitmap [s13.gif]
Symbol 10 Bitmap [s12.gif]
Symbol 11 Bitmap [s11.gif]
Symbol 12 Bitmap [s10.gif]
Symbol 13 Bitmap [s1.gif]
Symbol 14 Bitmap [r9.gif]
Symbol 15 Bitmap [r8.gif]
Symbol 16 Bitmap [r7.gif]
Symbol 17 Bitmap [r6.gif]
Symbol 18 Bitmap [r5.gif]
Symbol 19 Bitmap [r4.gif]
Symbol 20 Bitmap [r3.gif]
Symbol 21 Bitmap [r2.gif]
Symbol 22 Bitmap [r13.gif]
Symbol 23 Bitmap [r12.gif]
Symbol 24 Bitmap [r11.gif]
Symbol 25 Bitmap [r10.gif]
Symbol 26 Bitmap [r1.gif]
Symbol 27 Bitmap [k9.gif]
Symbol 28 Bitmap [k8.gif]
Symbol 29 Bitmap [k7.gif]
Symbol 30 Bitmap [k6.gif]
Symbol 31 Bitmap [k5.gif]
Symbol 32 Bitmap [k4.gif]
Symbol 33 Bitmap [k3.gif]
Symbol 34 Bitmap [k2.gif]
Symbol 35 Bitmap [k13.gif]
Symbol 36 Bitmap [k12.gif]
Symbol 37 Bitmap [k11.gif]
Symbol 38 Bitmap [k10.gif]
Symbol 39 Bitmap [k1.gif]
Symbol 40 Bitmap [h9.gif]
Symbol 41 Bitmap [h8.gif]
Symbol 42 Bitmap [h7.gif]
Symbol 43 Bitmap [h6.gif]
Symbol 44 Bitmap [h5.gif]
Symbol 45 Bitmap [h4.gif]
Symbol 46 Bitmap [h3.gif]
Symbol 47 Bitmap [h2.gif]
Symbol 48 Bitmap [h13.gif]
Symbol 49 Bitmap [h12.gif]
Symbol 50 Bitmap [h11.gif]
Symbol 51 Bitmap [h10.gif]
Symbol 52 Bitmap [h1.gif]
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:55 76
Symbol 55 MovieClip [backside]Uses:54
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:56Used by:58
Symbol 58 Button [noCards]Uses:57
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:Timeline
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:63
Symbol 63 ButtonUses:62Used by:Timeline
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 ButtonUses:65Used by:Timeline
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:69
Symbol 69 ButtonUses:68Used by:Timeline
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 ButtonUses:71Used by:Timeline
Symbol 73 FontUsed by:74
Symbol 74 TextUses:73Used by:75
Symbol 75 MovieClipUses:74Used by:Timeline
Symbol 76 ButtonUses:54Used by:77
Symbol 77 MovieClipUses:76Used by:Timeline
Symbol 78 FontUsed by:79 80 81 82 83
Symbol 79 EditableTextUses:78Used by:Timeline
Symbol 80 EditableTextUses:78Used by:Timeline
Symbol 81 EditableTextUses:78Used by:Timeline
Symbol 82 EditableTextUses:78Used by:Timeline
Symbol 83 EditableTextUses:78Used by:Timeline

Instance Names

"byGameMagnet_btn"Frame 1Symbol 63 Button
"qbris_btn"Frame 1Symbol 66 Button
"newGame_btn"Frame 1Symbol 69 Button
"undo_btn"Frame 1Symbol 72 Button
"congratulations_mc"Frame 1Symbol 75 MovieClip
"newCards_mc"Frame 1Symbol 77 MovieClip
"score_txt"Frame 1Symbol 79 EditableText
"time_txt"Frame 1Symbol 80 EditableText
"topScore_txt"Frame 1Symbol 81 EditableText
"gameNumber_txt"Frame 1Symbol 83 EditableText
"newCards_btn"Symbol 77 MovieClip Frame 1Symbol 76 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "s9.gif"
ExportAssets (56)Timeline Frame 1Symbol 2 as "s8.gif"
ExportAssets (56)Timeline Frame 1Symbol 3 as "s7.gif"
ExportAssets (56)Timeline Frame 1Symbol 4 as "s6.gif"
ExportAssets (56)Timeline Frame 1Symbol 5 as "s5.gif"
ExportAssets (56)Timeline Frame 1Symbol 6 as "s4.gif"
ExportAssets (56)Timeline Frame 1Symbol 7 as "s3.gif"
ExportAssets (56)Timeline Frame 1Symbol 8 as "s2.gif"
ExportAssets (56)Timeline Frame 1Symbol 9 as "s13.gif"
ExportAssets (56)Timeline Frame 1Symbol 10 as "s12.gif"
ExportAssets (56)Timeline Frame 1Symbol 11 as "s11.gif"
ExportAssets (56)Timeline Frame 1Symbol 12 as "s10.gif"
ExportAssets (56)Timeline Frame 1Symbol 13 as "s1.gif"
ExportAssets (56)Timeline Frame 1Symbol 14 as "r9.gif"
ExportAssets (56)Timeline Frame 1Symbol 15 as "r8.gif"
ExportAssets (56)Timeline Frame 1Symbol 16 as "r7.gif"
ExportAssets (56)Timeline Frame 1Symbol 17 as "r6.gif"
ExportAssets (56)Timeline Frame 1Symbol 18 as "r5.gif"
ExportAssets (56)Timeline Frame 1Symbol 19 as "r4.gif"
ExportAssets (56)Timeline Frame 1Symbol 20 as "r3.gif"
ExportAssets (56)Timeline Frame 1Symbol 21 as "r2.gif"
ExportAssets (56)Timeline Frame 1Symbol 22 as "r13.gif"
ExportAssets (56)Timeline Frame 1Symbol 23 as "r12.gif"
ExportAssets (56)Timeline Frame 1Symbol 24 as "r11.gif"
ExportAssets (56)Timeline Frame 1Symbol 25 as "r10.gif"
ExportAssets (56)Timeline Frame 1Symbol 26 as "r1.gif"
ExportAssets (56)Timeline Frame 1Symbol 27 as "k9.gif"
ExportAssets (56)Timeline Frame 1Symbol 28 as "k8.gif"
ExportAssets (56)Timeline Frame 1Symbol 29 as "k7.gif"
ExportAssets (56)Timeline Frame 1Symbol 30 as "k6.gif"
ExportAssets (56)Timeline Frame 1Symbol 31 as "k5.gif"
ExportAssets (56)Timeline Frame 1Symbol 32 as "k4.gif"
ExportAssets (56)Timeline Frame 1Symbol 33 as "k3.gif"
ExportAssets (56)Timeline Frame 1Symbol 34 as "k2.gif"
ExportAssets (56)Timeline Frame 1Symbol 35 as "k13.gif"
ExportAssets (56)Timeline Frame 1Symbol 36 as "k12.gif"
ExportAssets (56)Timeline Frame 1Symbol 37 as "k11.gif"
ExportAssets (56)Timeline Frame 1Symbol 38 as "k10.gif"
ExportAssets (56)Timeline Frame 1Symbol 39 as "k1.gif"
ExportAssets (56)Timeline Frame 1Symbol 40 as "h9.gif"
ExportAssets (56)Timeline Frame 1Symbol 41 as "h8.gif"
ExportAssets (56)Timeline Frame 1Symbol 42 as "h7.gif"
ExportAssets (56)Timeline Frame 1Symbol 43 as "h6.gif"
ExportAssets (56)Timeline Frame 1Symbol 44 as "h5.gif"
ExportAssets (56)Timeline Frame 1Symbol 45 as "h4.gif"
ExportAssets (56)Timeline Frame 1Symbol 46 as "h3.gif"
ExportAssets (56)Timeline Frame 1Symbol 47 as "h2.gif"
ExportAssets (56)Timeline Frame 1Symbol 48 as "h13.gif"
ExportAssets (56)Timeline Frame 1Symbol 49 as "h12.gif"
ExportAssets (56)Timeline Frame 1Symbol 50 as "h11.gif"
ExportAssets (56)Timeline Frame 1Symbol 51 as "h10.gif"
ExportAssets (56)Timeline Frame 1Symbol 52 as "h1.gif"
ExportAssets (56)Timeline Frame 1Symbol 55 as "backside"
ExportAssets (56)Timeline Frame 1Symbol 58 as "noCards"




http://swfchan.com/9/42537/info.shtml
Created: 11/8 -2019 10:36:46 Last modified: 11/8 -2019 10:36:46 Server time: 22/12 -2024 16:45:56