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/97505491?noj=FRM97505491-22DC" width="1" height="1"></div>

Chaotic Match Game.swf

This is the info page for
Flash #29648

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


Text
GOOD JOB!
you made all the
matches.

Click HERE
To Play Again

SCORE

MATCHES

MISSES

SCORE

MATCHES

MISSES

CLICK A
CARD TO
FLIP IT.

ActionScript [AS1/AS2]

Frame 2
function newGame() { goodjob._visible = false; numCards = 8; flippedCards = []; matchCard = 0; matches = 0; misses = 0; score = 0; scoretxt.embedFonts = true; scoretxt.setTextFormat("scorefont"); scoretxt.text = score; matchestxt.embedFonts = true; matchestxt.setTextFormat("scorefont"); matchestxt.text = matches; missestxt.embedFonts = true; missestxt.setTextFormat("scorefont"); missestxt.text = misses; i = 1; while (i < (numCards + 1)) { this["card" + i].id = i; this["card" + i]._visible = true; this["card" + i]._alpha = 100; this["card" + i].duplicateMovieClip("card" + (numCards + i), numCards + (i * 10)); this["card" + (numCards + i)].id = i; i++; } placeCards(); } function placeCards() { cardArray = []; cardsPerRow = 4; curRow = 1; cardtop._visible = false; i = 1; while (i < ((numCards * 2) + 1)) { cardtop.duplicateMovieClip("cardtop" + i, i * 100); if (i > (cardsPerRow * curRow)) { this["cardtop" + i]._y = this["cardtop" + i]._y + ((this["cardtop" + i]._height + 10) * curRow); curRow++; } else { this["cardtop" + i]._y = this["cardtop" + (i - 1)]._y; this["cardtop" + i]._x = (this["cardtop" + (i - 1)]._x + this["cardtop" + i]._width) + 10; } this["cardtop" + i].onRelease = function () { this.flip("notflipped"); }; cardArray.push("card" + i); i++; } cardArray.sort(randomsort); i = 0; while (i < cardArray.length) { this[cardArray[i]]._x = this["cardtop" + (i + 1)]._x; this[cardArray[i]]._y = this["cardtop" + (i + 1)]._y; this[cardArray[i]].place = i + 1; i++; } } function checkMatch(id, card) { if (matchCard == 0) { matchCard = id; flippedCards.push(card); } else if (matchCard == id) { score = score + 10; scoretxt.text = score; matchCard = 0; matches++; matchestxt.text = matches; endgame(); flippedCards.push(card); i = 0; while (i < flippedCards.length) { this[flippedCards[i]].fadeOut(); i++; } flippedCards = []; } else { if (score >= 5) { score = score - 5; } else { score = 0; } scoretxt.text = score; misses++; missestxt.text = misses; matchCard = 0; flippedCards.push(card); i = 0; while (i < flippedCards.length) { this[flippedCards[i]].flip("flipped"); i++; } flippedCards = []; } } function endgame() { trace((("matches " + matches) + " total ") + numCards); if (matches == numCards) { goodjob._visible = true; goodjob.chest.gotoAndPlay("open"); _parent.smallchest.gotoAndPlay("open"); } } function randomsort(element1, element2) { ran = Math.floor(Math.random() * 2) + 1; if (ran == 1) { return(-1); } if (ran == 2) { return(1); } } stop(); MovieClip.prototype.flip = function (card) { if (card == "notflipped") { this.num = this._name.split("cardtop").join(""); this.num = this.num - 1; this.num++; trace((("cardtop" + this.num) + " ") + this._parent.cardArray[this.num - 1]); this._parent[this._parent.cardArray[this.num - 1]]._xscale = 0; this.onEnterFrame = function () { this._xscale = this._xscale - 40; if (this._xscale <= 0) { delete this.onEnterFrame; this._xscale = 0; this._parent[cardArray[this.num - 1]].onEnterFrame = function () { this._xscale = this._xscale + 40; if (this._xscale >= 100) { delete this.onEnterFrame; this._parent.checkMatch(this.id, this._name); this._xscale = 100; } }; } }; } else if (card == "flipped") { this.num = this.place; this._parent["cardtop" + this.num]._xscale = 0; this.startwait = 0; this.onEnterFrame = function () { this.startwait++; if (this.startwait >= 10) { this._xscale = this._xscale - 40; if (this._xscale <= 0) { delete this.onEnterFrame; this._xscale = 0; this._parent["cardtop" + this.num].onEnterFrame = function () { this._xscale = this._xscale + 40; if (this._xscale >= 100) { delete this.onEnterFrame; this._xscale = 100; } }; } } }; } }; MovieClip.prototype.fadeOut = function () { this.onEnterFrame = function () { this._alpha = this._alpha - 35; if (this._alpha <= 0) { delete this.onEnterFrame; this._visible = false; } }; }; newGame();
Symbol 12 Button
on (release) { _parent.newGame(); }

Library Items

Symbol 1 Font [scorefont]Used by:10 14 15 16 17 18 19 20
Symbol 2 GraphicUsed by:6
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:5
Symbol 5 MovieClipUses:4Used by:6
Symbol 6 MovieClipUses:2 5Used by:Timeline
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:9
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 10 EditableTextUses:1Used by:13
Symbol 11 GraphicUsed by:12
Symbol 12 ButtonUses:11Used by:13
Symbol 13 MovieClipUses:10 12Used by:Timeline
Symbol 14 EditableTextUses:1Used by:Timeline
Symbol 15 EditableTextUses:1Used by:Timeline
Symbol 16 EditableTextUses:1Used by:Timeline
Symbol 17 EditableTextUses:1Used by:Timeline
Symbol 18 EditableTextUses:1Used by:Timeline
Symbol 19 EditableTextUses:1Used by:Timeline
Symbol 20 EditableTextUses:1Used by:Timeline
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:23
Symbol 23 MovieClipUses:22Used by:Timeline
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:26
Symbol 26 MovieClipUses:25Used by:Timeline
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:29
Symbol 29 MovieClipUses:28Used by:Timeline
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:32
Symbol 32 MovieClipUses:31Used by:Timeline
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClipUses:34Used by:Timeline
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:38
Symbol 38 MovieClipUses:37Used by:Timeline
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:41
Symbol 41 MovieClipUses:40Used by:Timeline
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:44
Symbol 44 MovieClipUses:43Used by:Timeline

Instance Names

"cardtop"Frame 2Symbol 9 MovieClip
"goodjob"Frame 2Symbol 13 MovieClip
"scoretxt"Frame 2Symbol 17 EditableText
"matchestxt"Frame 2Symbol 18 EditableText
"missestxt"Frame 2Symbol 19 EditableText
"card1"Frame 2Symbol 23 MovieClip
"card2"Frame 2Symbol 26 MovieClip
"card3"Frame 2Symbol 29 MovieClip
"card4"Frame 2Symbol 32 MovieClip
"card5"Frame 2Symbol 35 MovieClip
"card6"Frame 2Symbol 38 MovieClip
"card7"Frame 2Symbol 41 MovieClip
"card8"Frame 2Symbol 44 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "scorefont"




http://swfchan.com/6/29648/info.shtml
Created: 19/5 -2019 19:54:11 Last modified: 19/5 -2019 19:54:11 Server time: 22/12 -2024 22:51:19