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

swfchan turned sixteen years old yesterday! (5may2024)

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

flipit.swf

This is the info page for
Flash #29235

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


Text
L

LOADING

LEVEL
COMPLETE

<p align="right"><font face="Pixelyn" size="20" color="#ffffff" letterSpacing="0.200000" kerning="0">FLIP BONUS: 300000</font></p>

<p align="right"><font face="Pixelyn" size="20" color="#000000" letterSpacing="0.200000" kerning="0">LEVEL BONUS: 300000</font></p>

50

50

HOW
TO
PLAY

vnum

flipit

YOUR HIGHEST SCORE

<p align="center"><font face="CgBernhardtBd" size="35" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

RESET SCORE

RESET SCORE

PLAY

flip

How to play flipit

To complete a level you must make all the tiles in the
play area turn white.

You can change the colour of a tile by clicking it, but
that will flip the 4 adjacent tiles too.

The fewer flips you make, the higher your score will be
(score is tallied when you complete a level).

Completing a level unlocks it so you can play it again
later. Complete 30 levels to win the game.

Good Luck!

CLICK

PLAY MORE
FREE GAMES

at terrypaton.com

CLICK TO

CHOOSE LEVEL

YOU MUST HAVE BEEN TO A LEVEL TO UNLOCK IT

WHITE TILES ARE UNLOCKED LEVELS

tileHolder

flip all the peices to white.

CLICK TO
RESET LEVEL

END GAME
& SUBMIT
SCORE

it

flip

1

0

0

0

LEVEL

SCORE

BONUS

FLIPS

GAME OVER

LEVEL:

0

Final Score:

0

0

0

0

GREAT! YOU HAVE BEATEN ALL STAGES!

GAME COMPLETE

ActionScript [AS1/AS2]

Frame 1
Security.allowDomain("*"); MochiAd.showPreGameAd({id:"a9c4d3e16f6ec603", res:"640x480"});
Frame 2
function gameMenu(menu, obj) { getURL (_root.webSite, "_blank"); } function qualityHigh() { _quality = "high"; } function qualityLow() { _quality = "low"; } this._lockroot = true; var gameName = "flipit"; vNum = "1.03"; gameQuality = "AUTO"; _quality = "HIGH"; authorsSite = "http://www.terrypaton.com"; var menu_cm = new ContextMenu(); menu_cm.customItems.push(new ContextMenuItem(authorsSite, gameMenu)); menu_cm.customItems.push(new ContextMenuItem("HIGH Quality", qualityHigh)); menu_cm.customItems.push(new ContextMenuItem("LOW Quality", qualityLow)); menu_cm.hideBuiltInItems(); _root.menu = menu_cm; legalDomain = "http://www.terrypaton.com"; gameLocation = _root._url.substr(0, legalDomain.length); if (gameLocation != legalDomain) { }
Frame 3
gameLoadingName = "flipit"; loadingClip.onEnterFrame = function () { pL = Math.floor((this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100); if (pL < 100) { this.mask._xscale = (pL / 100) * 100; this._parent.stop(); } else { i = 0; while (i < stringLength) { removeMovieClip(eval ("loadingHolder.l" + i)); i++; } this._parent.play(); } }; stringLength = gameLoadingName.length; wordOffset = (stringLength * 20) / 2; this.createEmptyMovieClip("loadingHolder", 1); loadingHolder._x = (320 - wordOffset) + 10; loadingHolder._y = 160; i = 0; while (i < stringLength) { t = loadingHolder.attachMovie("letter", "l" + i, i); t._x = i * 20; t.angle = i; t.Lvar.text = gameLoadingName.charAt(i); t._xscale = (t._yscale = 200); i++; } stop();
Frame 6
function playSound(temp) { switch (temp) { case "flip" : a = random(2) + 1; eval (("flip" + a) + "Snd").start(); return; case "level complete" : levelCompleteSnd.start(); return; case "mouseOver" : mouseOverSnd.start(); return; case "mouseDown" : mouseDownSnd.start(); return; case "out of bonus" : outOfBonusSnd.start(); } } function attachSoundFromLibrary(idname) { var _local2 = new Sound(this); _local2.attachSound(idname); return(_local2); } storage = SharedObject.getLocal(gameName + "storage"); yourhigh = storage.data.myhighscore; if (yourhigh == undefined) { storage.data.myhighscore = 0; yourhigh = 0; } levelsUnlocked = storage.data.levelsUnlocked; if (levelsUnlocked == undefined) { storage.data.levelsUnlocked = 1; levelsUnlocked = 1; } mouseOverSnd = attachSoundFromLibrary("mouseOver.wav"); mouseDownSnd = attachSoundFromLibrary("mouseDownSnd.wav"); flip1Snd = attachSoundFromLibrary("flipTileSnd1.wav"); flip2Snd = attachSoundFromLibrary("flipTileSnd2.wav"); flip3Snd = attachSoundFromLibrary("flipTileSnd3.wav"); levelCompleteSnd = attachSoundFromLibrary("levelCompleteSound.wav"); outOfBonusSnd = attachSoundFromLibrary("outOfBonus.wav");
Frame 7
_quality = "HIGH"; this.playBtn.onRelease = function () { playSound("mouseDown"); if (levelsUnlocked > 1) { gotoAndPlay (23); } else { gotoAndPlay (24); } }; this.playBtn.onRollOver = function () { playSound("mouseOver"); }; this.reset_btn.onRelease = function () { playSound("mouseDown"); _root.yourhigh = 0; yourHighTextBox.text = yourhigh; trace(yourhigh); resetclip.gotoAndPlay(2); storage.data.myhighscore = 0; storage.flush(); }; this.reset_btn.onRollOver = function () { playSound("mouseOver"); }; yourHighTextBox.text = yourhigh; this.playBtn.onRollOver = function () { playSound("mouseOver"); this.gotoAndStop(2); }; this.playBtn.onRollOut = function () { this.gotoAndStop(1); }; playBtn.gotoAndStop(1); helpClip._y = -340; howToPlay.onRollOver = function () { gs.TweenLite.to(helpClip, 0.5, {_y:0}); playSound("mouseOver"); }; howToPlay.onRollOut = function () { gs.TweenLite.to(helpClip, 0.5, {_y:-340}); playSound("mouseDown"); };
Frame 22
stop();
Frame 23
function goPlay(temp) { i = 0; while (i < 51) { removeMovieClip(eval ("l" + i)); i++; } level = temp; musicTrack.stop(); gotoAndPlay (24); } if (levelsUnlocked == 1) { level = 1; musicTrack.stop(); gotoAndPlay (24); } else { i = 0; while (i < 30) { ty = Math.floor(i / 6); tx = i - (ty * 6); attachMovie("lvlBtn", "l" + i, i); eval ("l" + i)._x = (155 + (tx * 55)) + 25; eval ("l" + i)._y = 180 + (ty * 55); eval ("l" + i).num = i + 1; if (i >= levelsUnlocked) { eval ("l" + i).gotoAndStop(2); } else { eval ("l" + i).gotoAndStop(1); eval ("l" + i).btn.onRelease = function () { trace(this._parent._parent); goPlay(this._parent.num); }; eval ("l" + i).btn.onRollOver = function () { playSound("mouseOver"); }; eval ("l" + i).btn.onPress = function () { playSound("mouseDown"); }; } if (i != (level - 1)) { eval ("l" + i).ind._visible = false; } i++; } } stop();
Frame 24
function setup() { textBoxHolder._y = -120; gs.TweenLite.to(textBoxHolder, 0.5, {_y:0}); scoreBackPanel._y = -80; gs.TweenLite.to(scoreBackPanel, 0.5, {_y:0}); endGameBtn._y = 520; gs.TweenLite.to(endGameBtn, 0.5, {_y:450}); resetLevelBtn._y = 520; gs.TweenLite.to(resetLevelBtn, 0.5, {_y:450}); flipitGameTitle._y = -95; gs.TweenLite.to(flipitGameTitle, 0.5, {_y:-3.2}); endGameBtn.onRelease = function () { gameState = "game over"; }; endGameBtn.onRollOver = function () { this.gotoAndStop(2); }; endGameBtn.onRollOut = function () { this.gotoAndStop(1); }; gridArray = new Array(); bl = "bl"; wh = "wh"; gridArray[1] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 1, 0, bl, 1, 1, wh, 1, 2, wh, 1, 3, bl, 2, 0, bl, 2, 1, wh, 2, 2, wh, 2, 3, bl, 3, 0, bl, 3, 1, bl, 3, 2, bl, 3, 3, bl); gridArray[2] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, wh, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, bl, 3, 0, wh, 3, 1, bl, 3, 2, bl, 3, 3, wh); gridArray[3] = new Array(0, 0, bl, 0, 1, wh, 0, 2, wh, 0, 3, bl, 1, 0, wh, 1, 1, bl, 1, 2, bl, 1, 3, wh, 2, 0, wh, 2, 1, bl, 2, 2, bl, 2, 3, wh, 3, 0, bl, 3, 1, wh, 3, 2, wh, 3, 3, bl); gridArray[4] = new Array(0, 0, bl, 0, 1, wh, 0, 2, wh, 0, 3, wh, 1, 0, wh, 1, 1, bl, 1, 2, wh, 1, 3, wh, 2, 0, wh, 2, 1, wh, 2, 2, bl, 2, 3, wh, 3, 0, wh, 3, 1, wh, 3, 2, wh, 3, 3, bl); gridArray[5] = new Array(0, 0, bl, 0, 1, wh, 0, 2, wh, 0, 3, bl, 1, 0, wh, 1, 1, wh, 1, 2, wh, 1, 3, wh, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, wh, 3, 0, wh, 3, 1, wh, 3, 2, wh, 3, 3, wh, 4, 0, bl, 4, 1, wh, 4, 2, wh, 4, 3, bl); gridArray[6] = new Array(0, 0, bl, 0, 1, wh, 0, 2, wh, 0, 3, bl, 1, 0, bl, 1, 1, wh, 1, 2, bl, 1, 3, wh, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, wh, 3, 0, bl, 3, 1, wh, 3, 2, bl, 3, 3, wh, 4, 0, bl, 4, 1, wh, 4, 2, wh, 4, 3, bl); gridArray[6] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, wh, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 2, 0, bl, 2, 1, wh, 2, 2, wh, 2, 3, bl, 3, 0, bl, 3, 1, bl, 3, 2, bl, 3, 3, bl, 4, 0, wh, 4, 1, bl, 4, 2, bl, 4, 3, wh); gridArray[7] = new Array(0, 0, wh, 0, 1, wh, 0, 2, wh, 0, 3, wh, 1, 0, bl, 1, 1, wh, 1, 2, wh, 1, 3, bl, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, wh, 3, 0, bl, 3, 1, wh, 3, 2, wh, 3, 3, bl, 4, 0, wh, 4, 1, wh, 4, 2, wh, 4, 3, wh); gridArray[8] = new Array(0, 0, wh, 0, 1, wh, 0, 2, bl, 0, 3, wh, 1, 0, bl, 1, 1, wh, 1, 2, bl, 1, 3, bl, 2, 0, wh, 2, 1, bl, 2, 2, wh, 2, 3, wh, 3, 0, bl, 3, 1, wh, 3, 2, bl, 3, 3, bl, 4, 0, wh, 4, 1, wh, 4, 2, bl, 4, 3, wh); gridArray[9] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 1, 0, bl, 1, 1, wh, 1, 2, wh, 1, 3, bl, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, bl, 3, 0, bl, 3, 1, wh, 3, 2, wh, 3, 3, bl, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, bl); gridArray[10] = new Array(0, 0, bl, 0, 1, bl, 0, 2, wh, 0, 3, wh, 0, 4, bl, 1, 0, wh, 1, 1, wh, 1, 2, bl, 1, 3, bl, 1, 4, wh, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, bl, 2, 4, bl, 3, 0, bl, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 4, 0, wh, 4, 1, bl, 4, 2, bl, 4, 3, wh, 4, 4, wh, 5, 0, bl, 5, 1, wh, 5, 2, wh, 5, 3, bl, 5, 4, bl); gridArray[11] = new Array(0, 0, wh, 0, 1, wh, 0, 2, bl, 0, 3, wh, 0, 4, wh, 1, 0, bl, 1, 1, bl, 1, 2, wh, 1, 3, bl, 1, 4, bl, 2, 0, wh, 2, 1, bl, 2, 2, bl, 2, 3, bl, 2, 4, wh, 3, 0, bl, 3, 1, bl, 3, 2, wh, 3, 3, bl, 3, 4, bl, 4, 0, wh, 4, 1, wh, 4, 2, bl, 4, 3, wh, 4, 4, wh); gridArray[12] = new Array(0, 0, bl, 0, 1, wh, 0, 2, bl, 0, 3, wh, 0, 4, bl, 1, 0, bl, 1, 1, bl, 1, 2, wh, 1, 3, bl, 1, 4, bl, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, wh, 2, 4, wh, 3, 0, wh, 3, 1, wh, 3, 2, wh, 3, 3, wh, 3, 4, wh, 4, 0, bl, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, bl, 5, 0, bl, 5, 1, wh, 5, 2, bl, 5, 3, wh, 5, 4, bl); gridArray[13] = new Array(0, 0, wh, 0, 1, wh, 0, 2, wh, 0, 3, wh, 0, 4, wh, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, bl, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, bl, 2, 4, bl, 3, 0, bl, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, bl, 4, 4, bl, 5, 0, wh, 5, 1, wh, 5, 2, wh, 5, 3, wh, 5, 4, wh); gridArray[14] = new Array(0, 0, wh, 0, 1, wh, 0, 2, bl, 0, 3, wh, 0, 4, wh, 1, 0, wh, 1, 1, bl, 1, 2, wh, 1, 3, bl, 1, 4, wh, 2, 0, wh, 2, 1, bl, 2, 2, wh, 2, 3, bl, 2, 4, wh, 3, 0, wh, 3, 1, bl, 3, 2, wh, 3, 3, bl, 3, 4, wh, 4, 0, wh, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, wh, 5, 0, wh, 5, 1, wh, 5, 2, bl, 5, 3, wh, 5, 4, wh); gridArray[15] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 0, 5, wh, 1, 0, bl, 1, 1, bl, 1, 2, wh, 1, 3, wh, 1, 4, bl, 1, 5, bl, 2, 0, bl, 2, 1, wh, 2, 2, bl, 2, 3, bl, 2, 4, wh, 2, 5, bl, 3, 0, bl, 3, 1, wh, 3, 2, bl, 3, 3, bl, 3, 4, wh, 3, 5, bl, 4, 0, bl, 4, 1, bl, 4, 2, wh, 4, 3, wh, 4, 4, bl, 4, 5, bl, 5, 0, wh, 5, 1, bl, 5, 2, bl, 5, 3, bl, 5, 4, bl, 5, 5, wh); gridArray[16] = new Array(0, 0, bl, 0, 1, wh, 0, 2, bl, 0, 3, bl, 0, 4, wh, 0, 5, bl, 1, 0, bl, 1, 1, wh, 1, 2, bl, 1, 3, bl, 1, 4, wh, 1, 5, bl, 2, 0, bl, 2, 1, wh, 2, 2, wh, 2, 3, wh, 2, 4, wh, 2, 5, bl, 3, 0, bl, 3, 1, wh, 3, 2, wh, 3, 3, wh, 3, 4, wh, 3, 5, bl, 4, 0, bl, 4, 1, wh, 4, 2, bl, 4, 3, bl, 4, 4, wh, 4, 5, bl, 5, 0, bl, 5, 1, wh, 5, 2, bl, 5, 3, bl, 5, 4, wh, 5, 5, bl); gridArray[17] = new Array(0, 0, bl, 0, 1, bl, 0, 2, wh, 0, 3, wh, 0, 4, bl, 0, 5, bl, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, bl, 1, 5, bl, 2, 0, wh, 2, 1, bl, 2, 2, bl, 2, 3, bl, 2, 4, bl, 2, 5, wh, 3, 0, wh, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 3, 5, wh, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, bl, 4, 4, bl, 4, 5, bl, 5, 0, bl, 5, 1, bl, 5, 2, wh, 5, 3, wh, 5, 4, bl, 5, 5, bl); gridArray[18] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 0, 5, bl, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, bl, 1, 5, bl, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, wh, 2, 4, wh, 2, 5, wh, 3, 0, wh, 3, 1, wh, 3, 2, wh, 3, 3, wh, 3, 4, wh, 3, 5, wh, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, bl, 4, 4, bl, 4, 5, bl, 5, 0, bl, 5, 1, bl, 5, 2, bl, 5, 3, bl, 5, 4, bl, 5, 5, bl); gridArray[19] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, wh, 0, 4, bl, 0, 5, wh, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, bl, 1, 5, bl, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, bl, 2, 4, bl, 2, 5, wh, 3, 0, wh, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 3, 5, bl, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, bl, 4, 4, bl, 4, 5, bl, 5, 0, wh, 5, 1, bl, 5, 2, wh, 5, 3, bl, 5, 4, bl, 5, 5, wh); gridArray[20] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 0, 5, wh, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, bl, 1, 5, bl, 2, 0, wh, 2, 1, bl, 2, 2, wh, 2, 3, wh, 2, 4, bl, 2, 5, wh, 3, 0, bl, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 3, 5, bl, 4, 0, wh, 4, 1, bl, 4, 2, wh, 4, 3, wh, 4, 4, bl, 4, 5, wh, 5, 0, bl, 5, 1, bl, 5, 2, bl, 5, 3, bl, 5, 4, bl, 5, 5, bl, 6, 0, wh, 6, 1, bl, 6, 2, bl, 6, 3, bl, 6, 4, bl, 6, 5, wh); gridArray[21] = new Array(0, 0, bl, 0, 1, wh, 0, 2, wh, 0, 3, wh, 0, 4, wh, 0, 5, bl, 1, 0, wh, 1, 1, wh, 1, 2, bl, 1, 3, bl, 1, 4, wh, 1, 5, wh, 2, 0, wh, 2, 1, wh, 2, 2, bl, 2, 3, bl, 2, 4, wh, 2, 5, wh, 3, 0, wh, 3, 1, wh, 3, 2, wh, 3, 3, wh, 3, 4, wh, 3, 5, wh, 4, 0, wh, 4, 1, wh, 4, 2, bl, 4, 3, bl, 4, 4, wh, 4, 5, wh, 5, 0, wh, 5, 1, wh, 5, 2, bl, 5, 3, bl, 5, 4, wh, 5, 5, wh, 6, 0, bl, 6, 1, wh, 6, 2, wh, 6, 3, wh, 6, 4, wh, 6, 5, bl); gridArray[22] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, wh, 0, 4, bl, 0, 5, bl, 1, 0, wh, 1, 1, wh, 1, 2, wh, 1, 3, wh, 1, 4, bl, 1, 5, bl, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, bl, 2, 4, bl, 2, 5, bl, 3, 0, wh, 3, 1, wh, 3, 2, bl, 3, 3, bl, 3, 4, wh, 3, 5, wh, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, wh, 4, 4, wh, 4, 5, wh, 5, 0, bl, 5, 1, bl, 5, 2, wh, 5, 3, wh, 5, 4, wh, 5, 5, wh, 6, 0, bl, 6, 1, bl, 6, 2, wh, 6, 3, bl, 6, 4, bl, 6, 5, wh); gridArray[23] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 0, 5, bl, 1, 0, bl, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, bl, 1, 5, bl, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, bl, 2, 4, bl, 2, 5, bl, 3, 0, wh, 3, 1, wh, 3, 2, wh, 3, 3, wh, 3, 4, wh, 3, 5, wh, 4, 0, bl, 4, 1, bl, 4, 2, bl, 4, 3, bl, 4, 4, bl, 4, 5, bl, 5, 0, bl, 5, 1, bl, 5, 2, bl, 5, 3, bl, 5, 4, bl, 5, 5, bl, 6, 0, bl, 6, 1, bl, 6, 2, bl, 6, 3, bl, 6, 4, bl, 6, 5, bl); gridArray[24] = new Array(0, 0, wh, 0, 1, bl, 0, 2, wh, 0, 3, wh, 0, 4, bl, 0, 5, bl, 1, 0, wh, 1, 1, wh, 1, 2, wh, 1, 3, wh, 1, 4, wh, 1, 5, wh, 2, 0, bl, 2, 1, wh, 2, 2, bl, 2, 3, wh, 2, 4, bl, 2, 5, wh, 3, 0, bl, 3, 1, bl, 3, 2, wh, 3, 3, wh, 3, 4, bl, 3, 5, bl, 4, 0, wh, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, wh, 4, 5, bl, 5, 0, wh, 5, 1, wh, 5, 2, wh, 5, 3, wh, 5, 4, wh, 5, 5, wh, 6, 0, bl, 6, 1, bl, 6, 2, wh, 6, 3, wh, 6, 4, bl, 6, 5, wh); gridArray[25] = new Array(0, 0, wh, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 1, 0, bl, 1, 1, wh, 1, 2, bl, 1, 3, bl, 1, 4, bl, 2, 0, bl, 2, 1, bl, 2, 2, bl, 2, 3, wh, 2, 4, bl, 3, 0, wh, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 4, 0, wh, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, wh, 5, 0, bl, 5, 1, wh, 5, 2, bl, 5, 3, wh, 5, 4, wh, 6, 0, bl, 6, 1, bl, 6, 2, wh, 6, 3, wh, 6, 4, bl, 7, 0, bl, 7, 1, wh, 7, 2, bl, 7, 3, bl, 7, 4, bl, 8, 0, bl, 8, 1, bl, 8, 2, wh, 8, 3, bl, 8, 4, wh); gridArray[26] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 1, 0, wh, 1, 1, bl, 1, 2, wh, 1, 3, bl, 1, 4, wh, 2, 0, wh, 2, 1, wh, 2, 2, wh, 2, 3, wh, 2, 4, wh, 3, 0, bl, 3, 1, bl, 3, 2, bl, 3, 3, bl, 3, 4, bl, 4, 0, bl, 4, 1, wh, 4, 2, bl, 4, 3, wh, 4, 4, bl, 5, 0, bl, 5, 1, bl, 5, 2, bl, 5, 3, bl, 5, 4, bl, 6, 0, wh, 6, 1, wh, 6, 2, wh, 6, 3, wh, 6, 4, wh, 7, 0, wh, 7, 1, bl, 7, 2, wh, 7, 3, bl, 7, 4, wh, 8, 0, bl, 8, 1, bl, 8, 2, bl, 8, 3, bl, 8, 4, bl); gridArray[27] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 1, 0, wh, 1, 1, wh, 1, 2, wh, 1, 3, wh, 1, 4, wh, 2, 0, wh, 2, 1, bl, 2, 2, wh, 2, 3, bl, 2, 4, wh, 3, 0, bl, 3, 1, wh, 3, 2, bl, 3, 3, wh, 3, 4, bl, 4, 0, bl, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, bl, 5, 0, bl, 5, 1, wh, 5, 2, bl, 5, 3, wh, 5, 4, bl, 6, 0, wh, 6, 1, bl, 6, 2, wh, 6, 3, bl, 6, 4, wh, 7, 0, wh, 7, 1, wh, 7, 2, wh, 7, 3, wh, 7, 4, wh, 8, 0, bl, 8, 1, bl, 8, 2, bl, 8, 3, bl, 8, 4, bl); gridArray[28] = new Array(0, 0, bl, 0, 1, wh, 0, 2, wh, 0, 3, wh, 0, 4, bl, 1, 0, wh, 1, 1, bl, 1, 2, bl, 1, 3, bl, 1, 4, wh, 2, 0, bl, 2, 1, wh, 2, 2, wh, 2, 3, wh, 2, 4, bl, 3, 0, wh, 3, 1, wh, 3, 2, bl, 3, 3, wh, 3, 4, wh, 4, 0, bl, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, bl, 5, 0, wh, 5, 1, wh, 5, 2, bl, 5, 3, wh, 5, 4, wh, 6, 0, bl, 6, 1, wh, 6, 2, wh, 6, 3, wh, 6, 4, bl, 7, 0, wh, 7, 1, bl, 7, 2, bl, 7, 3, bl, 7, 4, wh, 8, 0, bl, 8, 1, wh, 8, 2, wh, 8, 3, wh, 8, 4, bl); gridArray[29] = new Array(0, 0, bl, 0, 1, bl, 0, 2, bl, 0, 3, bl, 0, 4, bl, 1, 0, bl, 1, 1, wh, 1, 2, bl, 1, 3, wh, 1, 4, bl, 2, 0, bl, 2, 1, wh, 2, 2, wh, 2, 3, wh, 2, 4, bl, 3, 0, bl, 3, 1, wh, 3, 2, wh, 3, 3, wh, 3, 4, bl, 4, 0, bl, 4, 1, wh, 4, 2, bl, 4, 3, wh, 4, 4, bl, 5, 0, bl, 5, 1, wh, 5, 2, wh, 5, 3, wh, 5, 4, bl, 6, 0, bl, 6, 1, wh, 6, 2, wh, 6, 3, wh, 6, 4, bl, 7, 0, bl, 7, 1, wh, 7, 2, bl, 7, 3, wh, 7, 4, bl, 8, 0, bl, 8, 1, bl, 8, 2, bl, 8, 3, bl, 8, 4, bl); gridArray[30] = new Array(0, 0, wh, 0, 1, wh, 0, 2, wh, 0, 3, wh, 0, 4, wh, 1, 0, bl, 1, 1, wh, 1, 2, wh, 1, 3, wh, 1, 4, bl, 2, 0, wh, 2, 1, wh, 2, 2, bl, 2, 3, wh, 2, 4, wh, 3, 0, bl, 3, 1, bl, 3, 2, wh, 3, 3, bl, 3, 4, bl, 4, 0, bl, 4, 1, bl, 4, 2, wh, 4, 3, bl, 4, 4, bl, 5, 0, bl, 5, 1, bl, 5, 2, wh, 5, 3, bl, 5, 4, bl, 6, 0, wh, 6, 1, wh, 6, 2, bl, 6, 3, wh, 6, 4, wh, 7, 0, bl, 7, 1, wh, 7, 2, wh, 7, 3, wh, 7, 4, bl, 8, 0, wh, 8, 1, wh, 8, 2, wh, 8, 3, wh, 8, 4, wh); if (levelEdit) { trace(gridArray.length); level = gridArray.length; level = 11; createEmptyArray(); } else if (level == undefined) { level = 1; } firstPlayMessage._alpha = 0; if (level == 1) { gs.TweenLite.to(firstPlayMessage, 1, {_alpha:100, delay:2}); } clipSize = 50; score = 0; resetLevelBtn.onRelease = function () { if (gameState == "playing") { gameState = "reset level"; } }; resetLevelBtn.onRollOver = function () { this.gotoAndStop(2); }; resetLevelBtn.onRollOut = function () { this.gotoAndStop(1); }; } function getLevelDimensions() { if (level < 5) { levelXSize = 4; levelYSize = 4; } if ((level > 4) && (level < 10)) { levelXSize = 5; levelYSize = 4; } if ((level > 9) && (level < 15)) { levelXSize = 6; levelYSize = 5; } if ((level > 14) && (level < 20)) { levelXSize = 6; levelYSize = 6; } if ((level > 19) && (level < 25)) { levelXSize = 7; levelYSize = 6; } if ((level > 24) && (level < 31)) { levelXSize = 9; levelYSize = 5; } } function setupGrid() { removeMovieClip(levelCompleteClipRef); if (level > levelsUnlocked) { storage.data.levelsUnlocked = level; levelsUnlocked = level; storage.flush(); } outOfBonusSndPlayed = false; if (level > 1) { gs.TweenLite.to(firstPlayMessage, 3, {_alpha:0}); } trace("setup grid"); getLevelDimensions(); n = gridArray[level].length; clipNum = 1; clipArray = new Array(); var _local9 = {x:50, y:50}; tilesWidth = levelXSize * clipSize; tilesHigh = levelYSize * clipSize; trace(tilesWidth); xOffset = ((640 - tilesWidth) / 2) - 25; if (level < 25) { yOffset = (75 + ((405 - tilesHigh) / 2)) - 25; } else { yOffset = (55 + ((405 - tilesHigh) / 2)) - 25; } i = 0; while (i < n) { tx = gridArray[level][i]; ty = gridArray[level][i + 1]; tileType = gridArray[level][i + 2]; t = tileHolder.attachMovie("tile", ("t" + tx) + ty, clipNum); t.x = tx; t.y = ty; t._x = 320; t._y = 550; t._rotation = Math.random() * 360; gs.TweenLite.to(t, 0.5, {_x:(xOffset + (tx * clipSize)) + 50, _y:(yOffset + (ty * clipSize)) + 50, _xscale:100, _yscale:100, _rotation:0, _alpha:100, delay:(i / 3) / 10}); clipArray.push(t); t.flipHotspot.onPress = function () { testFlip(this._parent); }; if (tileType.toLowerCase() == bl) { tileType = "black"; } if (tileType.toLowerCase() == wh) { tileType = "white"; } t.setFace(tileType); clipNum++; i = i + 3; } thisLevelsTiles = n / 3; flipBonus = thisLevelsTiles * 50; } function createEmptyArray() { trace("setting up"); getLevelDimensions(); gridArray[level] = new Array(); var k = 0; while (k < levelXSize) { var l = 0; while (l < levelYSize) { var tc = eval (("tileHolder.t" + k) + l); colourRef = "wh"; gridArray[level].push(k, l, colourRef); l++; } k++; } } function compileArray() { outputArray = new Array(); var k = 0; while (k < 20) { var l = 0; while (l < 20) { var tc = eval (("tileHolder.t" + k) + l); if (tc != undefined) { colourRef = tc.getFace(); if (colourRef == "white") { colourRef = "wh"; } else { colourRef = "bl"; } outputArray.push(tc.x, tc.y, colourRef); } l++; } k++; } trace(((("gridArray[" + level) + "] = new Array(") + outputArray) + ")"); } function testFlip(_clip) { if (gameState == "playing") { playSound("flip"); _clip.swapDepths(1000); _clip.flipTile(); thisTX = _clip.x; thisTY = _clip.y; flipArray(thisTX, thisTY); tf = eval (("tileHolder.t" + (thisTX - 1)) + (thisTY - 0)); tf.flipTile(); tf = eval (("tileHolder.t" + (thisTX + 1)) + (thisTY - 0)); tf.flipTile(); tf = eval (("tileHolder.t" + (thisTX + 0)) + (thisTY - 1)); tf.flipTile(); tf = eval (("tileHolder.t" + (thisTX + 0)) + (thisTY + 1)); tf.flipTile(); levelFlipCount++; flipBonus = flipBonus - 10; if (flipBonus <= 0) { flipBonus = 0; if (outOfBonusSndPlayed == false) { playSound("out of bonus"); outOfBonusSndPlayed = true; } } updateDisplay(); testIfLevelComplete(); } } function updateDisplay() { if (levelFlipCount < 10000) { textBoxHolder.levelFlipCountText.text = levelFlipCount; } else { textBoxHolder.levelFlipCountText.text = "9999"; } textBoxHolder.levelText.text = level; textBoxHolder.scoreText.text = score; textBoxHolder.flipBonusText.text = flipBonus; } function testIfLevelComplete() { var _local2 = clipArray.length; amountTilesWhite = 0; targetAmountofTiles = thisLevelsTiles; while (_local2--) { var _local1 = clipArray[_local2]; if (_local1.getFace() == "white") { amountTilesWhite++; } } if (amountTilesWhite >= targetAmountofTiles) { gameState = "level complete"; } } function removeClip(_clip) { removeMovieClip(_clip); } function removeAllTiles(_num) { var _local2 = clipArray.length; amountTilesWhite = 0; targetAmountofTiles = thisLevelsTiles; while (_local2--) { var _local1 = clipArray[_local2]; if (_num == undefined) { gs.TweenLite.to(_local1, 0.5, {_x:320, _y:-30, delay:_local2 / 20, ease:mx.transitions.easing.Back.easeIn, onComplete:removeClip, onCompleteParams:[_local1]}); } if (_num == 1) { gs.TweenLite.to(_local1, 0.5, {_xscale:200, _yscale:200, _alpha:0, delay:_local2 / 20, ease:mx.transitions.easing.Back.easeIn, onComplete:removeClip, onCompleteParams:[_local1]}); } } timeNeededForTransition = Math.ceil(((clipArray.length / 20) + 0.5) * frameRate); trace("max time = " + timeNeededForTransition); } function loop() { switch (gameState) { case "playing" : break; case "game over" : gs.TweenLite.to(textBoxHolder, 0.5, {_y:-120}); gs.TweenLite.to(scoreBackPanel, 0.5, {_y:-80}); gs.TweenLite.to(endGameBtn, 0.5, {_y:520}); gs.TweenLite.to(resetLevelBtn, 0.5, {_y:520}); gs.TweenLite.to(flipitGameTitle, 0.5, {_y:-95}); gs.TweenLite.to(firstPlayMessage, 0.5, {_alpha:0}); removeAllTiles(1); count = timeNeededForTransition; gameState = "game over wait"; break; case "game over wait" : count--; if (count < 1) { gotoAndPlay (25); delete onEnterFrame; gameState = "game over screen"; } break; case "reset level" : removeAllTiles(1); count = timeNeededForTransition; gameState = "reset level wait"; break; case "reset level wait" : count--; if (count < 1) { setupGrid(); gameState = "setup level"; } break; case "level complete" : trace("level complete"); playSound("level complete"); levelCompleteClipRef = attachMovie("levelCompleteClip", "levelCompleteClip", 100); levelCompleteClipRef._x = 320; levelCompleteClipRef._y = 260; levelCompleteClipRef._alpha = 0; levelCompleteClipRef._xscale = (levelCompleteClipRef._yscale = 10); gs.TweenLite.to(levelCompleteClipRef, 0.5, {delay:0.5, _xscale:100, _yscale:100, _alpha:100, ease:mx.transitions.easing.Back.easeOut}); if (flipBonus > 0) { fbt = attachMovie("flipBonusTellText", "flipBonusTellText", 101); fbt.textBox.text = "flip bonus: " + flipBonus; score = score + flipBonus; fbt._y = 99; fbt._x = 850; gs.TweenLite.to(fbt, 0.5, {delay:0.5, _x:625, ease:mx.transitions.easing.Back.easeOut}); } levelBonus = level * 100; lbt = attachMovie("levelBonusTellText", "levelBonusTellText", 102); lbt._y = 82; lbt._x = 850; lbt.textBox.text = "level bonus: " + levelBonus; gs.TweenLite.to(lbt, 0.5, {_x:625, ease:mx.transitions.easing.Back.easeOut}); score = score + levelBonus; count = 70; updateDisplay(); gameState = "level complete wait"; break; case "level complete wait" : count--; if (count < 1) { gs.TweenLite.to(levelCompleteClipRef, 0.5, {_xscale:150, _yscale:150, _alpha:0, ease:mx.transitions.easing.Back.easeIn, onComplete:removeClip, onCompleteParams:[levelCompleteClipRef]}); gs.TweenLite.to(lbt, 0.5, {delay:0.25, _x:850, ease:mx.transitions.easing.Back.easeIn, onComplete:removeClip, onCompleteParams:[levelCompleteClipRef]}); gs.TweenLite.to(fbt, 0.5, {_x:850, ease:mx.transitions.easing.Back.easeIn, onComplete:removeClip, onCompleteParams:[levelCompleteClipRef]}); trace("level cleanup wait"); removeAllTiles(); count = timeNeededForTransition; gameState = "level cleanup wait"; } break; case "level cleanup wait" : count--; if (count < 1) { level++; gs.TweenLite.to(textBoxHolder.levelText, 0.5, {_xscale:150, _yscale:150, ease:mx.transitions.easing.Back.easeOut}); gs.TweenLite.to(textBoxHolder.levelText, 0.5, {delay:0.51, overwrite:false, _xscale:100, _yscale:100, overwrite:false}); gameState = "setup level"; } if (level > 30) { gameState = "game complete"; } break; case "game complete" : removeAllTiles(); count = timeNeededForTransition; gameState = "game complete wait"; break; case "game complete wait" : count--; if (count < 1) { gotoAndPlay (34); delete onEnterFrame; gameState = "game completed"; } break; case "setup" : gameState = "setup level"; break; case "setup level" : gameState = "playing"; setupGrid(); levelFlipCount = 0; updateDisplay(); } } stop(); var tileType; var gridArray; var clipArray; var tx; var ty; var i; var n; var clipNum; var clipSize; var thisLevelsTiles; var amountTilesWhite; var levelBonus; var flipBonus; var t; var gameState; var lastClipTurned; var frameRate; var outOfBonusSndPlayed; gameState = "setup"; onMouseMove = mouseMoveTest; onEnterFrame = loop; frameRate = 37; var keyListener = new Object(); keyListener.onKeyDown = function () { if (levelEdit) { trace("output for that level"); compileArray(); } }; Key.addListener(keyListener); setup();
Frame 25
gameOverText._alpha = 0; gameOverText._xscale = (gameOverText._yscale = 200); gs.TweenLite.to(gameOverText, 0.5, {_alpha:100, _yscale:100, _xscale:100, ease:mx.transitions.easing.Back.easeOut}); scoreboxes._alpha = 0; gs.TweenLite.to(scoreboxes, 0.5, {delay:0.75, _alpha:100}); yourHighestTextBox._alpha = 0; gs.TweenLite.to(yourHighestTextBox, 0.5, {delay:1, _alpha:100}); playBtn._alpha = 0; playBtn._xscale = (playBtn._yscale = 200); gs.TweenLite.to(playBtn, 0.5, {delay:1, _alpha:100, _yscale:100, _xscale:100, ease:mx.transitions.easing.Back.easeOut}); _quality = "best"; if (score > yourhigh) { yourhigh = score; storage.data.myhighscore = score; } this.playBtn.onRelease = function () { playSound("mouseDown"); removeMovieClip(highHolder); if (levelsUnlocked > 1) { gotoAndPlay (23); } else { gotoAndPlay (24); } }; this.playBtn.onRollOver = function () { playSound("mouseOver"); this.gotoAndStop(2); }; this.playBtn.onRollOut = function () { this.gotoAndStop(1); }; playBtn.gotoAndStop(1); if (score > 1000) { t = this.createEmptyMovieClip("highHolder", 1000); loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder); t._x = 50; t._y = 320; } if (yourhigh != undefined) { yourHighestTextBox.text = "YOUR HIGHEST SCORE: " + yourhigh; } else { yourHighestTextBox.text = " "; } storage.flush();
Frame 33
stop();
Frame 34
gameCompleteText._alpha = 0; gameCompleteText._xscale = (gameCompleteText._yscale = 200); gs.TweenLite.to(gameCompleteText, 0.5, {_alpha:100, _yscale:100, _xscale:100, ease:mx.transitions.easing.Back.easeOut}); scoreBoxes2._alpha = 0; gs.TweenLite.to(scoreBoxes2, 0.5, {delay:0.75, _alpha:100}); yourHighestTextBox._alpha = 0; gs.TweenLite.to(yourHighestTextBox, 0.5, {delay:1, _alpha:100}); playBtn._alpha = 0; playBtn._xscale = (playBtn._yscale = 200); gs.TweenLite.to(playBtn, 0.5, {delay:1, _alpha:100, _yscale:100, _xscale:100, ease:mx.transitions.easing.Back.easeOut}); _quality = "best"; if (_url.slice(0, 4) != "file") { getURL (("javascript:pageTracker._trackPageview('/gameCompleted/" + gameName) + "');"); } if (score > yourhigh) { yourhigh = score; storage.data.myhighscore = score; } this.playBtn.onRelease = function () { playSound("mouseDown"); removeMovieClip(highHolder); gotoAndPlay (23); }; this.playBtn.onRollOver = function () { playSound("mouseOver"); this.gotoAndStop(2); }; this.playBtn.onRollOut = function () { this.gotoAndStop(1); }; playBtn.gotoAndStop(1); if (score > 1000) { t = this.createEmptyMovieClip("highHolder", 1000); loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder); t._x = 50; t._y = 320; } if (yourhigh != undefined) { yourHighestTextBox.text = "YOUR HIGHEST SCORE: " + yourhigh; } else { yourHighestTextBox.text = " "; } storage.flush(); clipNum = 0; i = 0; while (i < 11) { t = tileHolder.attachMovie("tile", "t" + clipNum, clipNum); t._x = (i * 64) + 20; t._y = -60; t._rotation = Math.random() * 360; clipNum++; var n = Math.floor(Math.random() * 10); if (n < 5) { t.gotoAndStop("black"); } else { t.gotoAndStop("white"); } gs.TweenLite.to(t, 0.5, {_y:5, delay:(i / 10) + (Math.random() * 1.5)}); i++; } i = 0; while (i < 11) { t = tileHolder.attachMovie("tile", "t" + clipNum, clipNum); t._x = (i * 64) + 20; t._y = 535; t._rotation = Math.random() * 360; clipNum++; var n = Math.floor(Math.random() * 10); if (n < 5) { t.gotoAndStop("black"); } else { t.gotoAndStop("white"); } gs.TweenLite.to(t, 0.5, {_y:475, delay:(i / 10) + (Math.random() * 1.5)}); i++; } i = 0; while (i < 6) { t = tileHolder.attachMovie("tile", "t" + clipNum, clipNum); t._x = -65; t._y = (i * 64) + 75; gs.TweenLite.to(t, 0.5, {_x:5, delay:((i / 3) / 10) + (Math.random() * 1.5)}); t._rotation = Math.random() * 360; clipNum++; var n = Math.floor(Math.random() * 10); if (n < 5) { t.gotoAndStop("black"); } else { t.gotoAndStop("white"); } gs.TweenLite.to(t, 0.5, {_x:5, delay:i / 10}); i++; } i = 0; while (i < 6) { t = tileHolder.attachMovie("tile", "t" + clipNum, clipNum); t._x = 695; t._y = (i * 64) + 75; t._rotation = Math.random() * 360; clipNum++; var n = Math.floor(Math.random() * 10); if (n < 5) { t.gotoAndStop("black"); } else { t.gotoAndStop("white"); } gs.TweenLite.to(t, 0.5, {_x:635, delay:(i / 10) + (Math.random() * 1.5)}); i++; }
Frame 42
stop();
Symbol 194 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.3"); } static function showPreGameAd(options) { var _local27 = {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(); }, ad_failed:function () { trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }}; options = _parseOptions(options, _local27); if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) { options.ad_started(); options.ad_finished(); return(undefined); } var clip = options.clip; var _local23 = 11000; var _local26 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4); _local7._x = 10; _local7._y = _local13 - 20; var _local22 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local24 = options.outline; delete options.outline; var _local5 = _local7.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local7.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local22); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local6 = _local7.createEmptyMovieClip("_outline", 3); _local6.lineStyle(0, _local24, 100); _local6.moveTo(0, 0); _local6.lineTo(_local4 - 20, 0); _local6.lineTo(_local4 - 20, 10); _local6.lineTo(0, 10); _local6.lineTo(0, 0); chk.ad_msec = _local23; chk.ad_timeout = _local26; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec; }; chk.onEnterFrame = function () { var _local6 = this._parent._parent; var _local12 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local10 = (100 * _local8) / _local4; var _local11 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local2 = Math.min(100, Math.min(_local10 || 0, _local11)); _local2 = Math.max(this.last_pcnt, _local2); this.last_pcnt = _local2; _local9._xscale = _local2; if (!chk.showing) { var _local7 = _local12.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local5 > chk.ad_timeout) { options.ad_failed(); _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showInterLevelAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showTimedAd(options) { trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); showInterLevelAd(options); } static function showPreloaderAd(options) { trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); showPreGameAd(options); } static function _allowDomains(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); } static function _loadCommunicator(options) { var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = _parseOptions(options, _local26); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local18 = options.clip; var _local20 = "_mochiad_com_" + options.id; if (!_isNetworkAvailable()) { return(null); } if (_local18[_local20]) { return(_local18[_local20].lc); } var _local21 = options.com_server + options.id; _allowDomains(_local21); delete options.id; delete options.com_server; var _local25 = options.depth; delete options.depth; var _local17 = _local18.createEmptyMovieClip(_local20, _local25); var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1); for (var _local15 in options) { _local11[_local15] = options[_local15]; } var _local6 = new LocalConnection(); var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local6.mc = _local17; _local6.name = _local16; _local6.allowDomain = function (d) { return(true); }; _local6.allowInsecureDomain = _local6.allowDomain; _local6.connect(_local16); _local17.lc = _local6; _local11.lc = _local16; _local6._id = 0; _local6._queue = []; _local6.rpcResult = function (cb_arg) { var _local8 = parseInt(cb_arg); var _local4 = this._callbacks[_local8]; if (!_local4) { return(undefined); } delete this._callbacks[_local8]; var _local5 = []; var _local3 = 2; while (_local3 < _local4.length) { _local5.push(_local4[_local3]); _local3++; } _local3 = 1; while (_local3 < arguments.length) { _local5.push(arguments[_local3]); _local3++; } var _local6 = _local4[1]; var _local7 = _local4[0]; if (_local7 && (typeof(_local6) == "string")) { _local6 = _local7[_local6]; } if (_local6) { _local6.apply(_local7, _local5); } }; _local6._didConnect = function (endpoint) { this._endpoint = endpoint; var _local4 = this._queue; delete this._queue; var _local5 = this.doSend; var _local2 = 0; while (_local2 < _local4.length) { var _local3 = _local4[_local2]; _local5.apply(this, _local3); _local2++; } }; _local6.doSend = function (args, cbobj, cbfn) { if (this._endpoint == null) { var _local4 = []; var _local3 = 0; while (_local3 < arguments.length) { _local4.push(arguments[_local3]); _local3++; } this._queue.push(_local4); return(undefined); } this._id = this._id + 1; var _local5 = this._id; if ((cbfn === undefined) || (cbfn === null)) { cbfn = cbobj; } this._callbacks[_local5] = [cbobj, cbfn]; var _local7 = new LocalConnection(); var _local9 = _local7.send(this._endpoint, "rpc", _local5, args); }; _local6._callbacks = {}; _local6._callbacks[0] = [_local6, "_didConnect"]; _local11.st = getTimer(); _local11.loadMovie(_local21 + ".swf", "POST"); return(_local6); } static function fetchHighScores(options, callbackObj, callbackMethod) { var _local1 = _loadCommunicator({id:options.id}); if (!_local1) { return(false); } var _local4 = ["fetchHighScores", options]; _local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod); return(true); } static function sendHighScore(options, callbackObj, callbackMethod) { var _local1 = _loadCommunicator({id:options.id}); if (!_local1) { return(false); } var _local4 = ["sendHighScore", options]; _local1.doSend(["sendHighScore", options], callbackObj, callbackMethod); return(true); } static function load(options) { var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local9 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local9._mochiad_loaded) { return(null); } var _local12 = options.depth; delete options.depth; var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(options); options.res = (_local11[0] + "x") + _local11[1]; options.server = options.server + options.id; delete options.id; _local9._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in options) { _local4[_local7] = options[_local7]; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local8; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); _local6.lc = _local5; _local4.lc = _local8; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var _local4 = options.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[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]); } static function _parseOptions(options, defaults) { var _local4 = {}; for (var _local8 in defaults) { _local4[_local8] = defaults[_local8]; } if (options) { for (var _local8 in options) { _local4[_local8] = options[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } if (_local4.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local4); } }
Symbol 195 MovieClip [__Packages.letterClass] Frame 0
class letterClass extends MovieClip { var centerY, radiusY, speed, y, _y, x, _x, angle; function letterClass () { super(); } function onLoad() { centerY = 48; radiusY = 5; speed = 0.05; y = _y; x = _x; } function onEnterFrame() { if (angle != undefined) { y = centerY + (Math.sin(angle) * radiusY); angle = angle + speed; _x = x; _y = y; } } }
Symbol 196 MovieClip [__Packages.tileClass] Frame 0
class tileClass extends MovieClip { var faceDisplayed, gotoAndStop, gotoAndPlay; function tileClass () { super(); } function getFace() { return(faceDisplayed); } function setFace(_val) { faceDisplayed = _val; if (faceDisplayed == "white") { gotoAndStop("white"); } else if (faceDisplayed == "black") { gotoAndStop("black"); } } function flipTile() { if (faceDisplayed == "white") { faceDisplayed = "black"; gotoAndPlay("turnBlack"); } else if (faceDisplayed == "black") { faceDisplayed = "white"; gotoAndPlay("turnWhite"); } } }
Symbol 197 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 198 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } } function addListener(o) { removeListener(o); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(o)); } function removeListener(o) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == o) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 199 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } this.obj = obj; this.prop = prop; this.begin = begin; position = (begin); this.duration = (duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.finish = (finish); _listeners = []; addListener(this); start(); } function set time(t) { prevTime = _time; if (t > duration) { if (looping) { rewind(t - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (t < 0) { rewind(); update(); } else { _time = t; update(); } //return(time); } function get time() { return(_time); } function set duration(d) { _duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d)); //return(duration); } function get duration() { return(_duration); } function set FPS(fps) { var _local2 = isPlaying; stopEnterFrame(); _fps = fps; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(p) { setPosition(p); //return(position); } function setPosition(p) { prevPos = _pos; obj[prop] = (_pos = p); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(t) { if (t == undefined) { t = _time; } return(func(t, begin, change, _duration)); } function set finish(f) { change = f - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(finish, duration) { begin = position; this.finish = (finish); if (duration != undefined) { this.duration = (duration); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(t) { _time = ((t == undefined) ? 0 : (t)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 200 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong { function Strong () { } static function easeIn(t, b, c, d) { t = t / d; return((((((c * t) * t) * t) * t) * t) + b); } static function easeOut(t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInOut(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 201 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce { function Bounce () { } static function easeOut(t, b, c, d) { t = t / d; if (t < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { t = t - 0.545454545454545; return((c * (((7.5625 * t) * t) + 0.75)) + b); } if (t < 0.909090909090909) { t = t - 0.818181818181818; return((c * (((7.5625 * t) * t) + 0.9375)) + b); } t = t - 0.954545454545455; return((c * (((7.5625 * t) * t) + 0.984375)) + b); } static function easeIn(t, b, c, d) { return((c - easeOut(d - t, 0, c, d)) + b); } static function easeInOut(t, b, c, d) { if (t < (d / 2)) { return((easeIn(t * 2, 0, c, d) * 0.5) + b); } return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static var version = "1.1.0.52"; }
Symbol 202 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite { static var _e, _gc; var tweenID, endTargetID, vars, duration, delay, target, _endTarget, tweens, extraTweens, initTime, _active, color, colorParts, _sound, startTime, __get__endTarget; function TweenLite ($target, $duration, $vars) { _cnt++; tweenID = "tw" + _cnt; endTargetID = getID($target, true); if (($vars.overwrite != false) && ($target != undefined)) { delete _all[endTargetID]; _all[endTargetID] = {info:[$target, endTargetID]}; } _all[endTargetID][tweenID] = this; vars = $vars; duration = $duration; delay = $vars.delay || 0; if ($duration == 0) { duration = 0.001; if (delay == 0) { vars.runBackwards = true; } } target = (_endTarget = $target); if (typeof(vars.ease) != "function") { vars.ease = easeOut; } if (vars.easeParams != undefined) { vars.proxiedEase = vars.ease; vars.ease = easeProxy; } if (vars.mcColor != undefined) { vars.tint = vars.mcColor; } if (typeof(vars.autoAlpha) == "number") { vars._alpha = vars.autoAlpha; } tweens = {}; extraTweens = {}; initTime = getTimer(); if (vars.runBackwards == true) { initTweenVals(); } _active = false; if (($duration == 0) && (delay == 0)) { complete(true); } else { if (_e._visible != false) { if (!_root.tweenLite_mc) { var _local5 = _root.getNextHighestDepth() || 9999; _e = _root.createEmptyMovieClip("tweenLite_mc", _local5); _e.swapDepths(-1); } else { _e = _root.tweenLite_mc; } _e._visible = false; clearInterval(_gc); _gc = setInterval(killGarbage, 2000); } _e.onEnterFrame = executeAll; } } function initTweenVals() { var _local5 = delay - ((getTimer() - initTime) / 1000); var _local8; if (target instanceof Array) { var _local7 = vars.endArray || ([]); var _local2 = 0; while (_local2 < _local7.length) { if ((target[_local2] != _local7[_local2]) && (target[_local2] != undefined)) { tweens[_local2.toString()] = {o:target, s:target[_local2], c:_local7[_local2] - target[_local2]}; } _local2++; } } else { for (var _local27 in vars) { if ((((((((((((((_local27 == "delay") || (_local27 == "ease")) || (_local27 == "overwrite")) || (_local27 == "onComplete")) || (_local27 == "onCompleteParams")) || (_local27 == "runBackwards")) || (_local27 == "onUpdate")) || (_local27 == "onUpdateParams")) || (_local27 == "autoAlpha")) || (_local27 == "_autoAlpha")) || (_local27 == "onStart")) || (_local27 == "onStartParams")) || (_local27 == "easeParams")) || (_local27 == "mcColor")) { } else if ((_local27 == "tint") && ((typeof(target) == "movieclip") || (target instanceof TextField))) { color = new Color(target); colorParts = color.getTransform(); var _local6; var _local4; if ((vars[_local27] == null) || (vars[_local27] == "")) { if (vars._alpha != undefined) { _local4 = vars._alpha; delete vars._alpha; delete tweens._alpha; } else { _local4 = target._alpha; } _local6 = {rb:0, gb:0, bb:0, ra:_local4, ga:_local4, ba:_local4, ease:vars.ease, delay:_local5, overwrite:false, runBackwards:vars.runBackwards}; } else { _local6 = {rb:vars[_local27] >> 16, gb:(vars[_local27] >> 8) & 255, bb:vars[_local27] & 255, ra:0, ga:0, ba:0, ease:vars.ease, delay:_local5, overwrite:false, runBackwards:vars.runBackwards}; } var _local10 = new gs.TweenLite(colorParts, duration, _local6); var _local11 = new gs.TweenLite(this, duration, {colorProxy:1, delay:_local5, overwrite:false, runBackwards:vars.runBackwards}); _local10.endTarget = (_local11.endTarget = target); } else if ((_local27 == "volume") && (typeof(target) == "movieclip")) { _sound = new Sound(target); var _local9 = new gs.TweenLite(this, duration, {volumeProxy:vars[_local27], ease:easeOut, delay:_local5, overwrite:false, runBackwards:vars.runBackwards}); _local9.endTarget = target; } else if (target[_local27] != undefined) { if (typeof(vars[_local27]) == "number") { _local8 = vars[_local27] - target[_local27]; } else { _local8 = Number(vars[_local27]); } tweens[_local27] = {o:target, s:target[_local27], c:_local8}; } else { extraTweens[_local27] = {o:target, s:0, c:0, v:vars[_local27]}; } } } if (vars.runBackwards == true) { var _local3; for (var _local27 in tweens) { _local3 = tweens[_local27]; _local3.s = _local3.s + _local3.c; _local3.c = _local3.c * -1; _local3.o[_local27] = _local3.s; } if (vars.onUpdate != undefined) { vars.onUpdate.apply(null, vars.onUpdateParams); } } if (typeof(vars.autoAlpha) == "number") { target._visible = !((vars.runBackwards == true) && (target._alpha == 0)); } } static function to($target, $duration, $vars) { return(new gs.TweenLite($target, $duration, $vars)); } static function from($target, $duration, $vars) { $vars.runBackwards = true; return(new gs.TweenLite($target, $duration, $vars)); } static function delayedCall($delay, $onComplete, $onCompleteParams) { return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:false})); } static function removeTween($t) { _all[$t.endTargetID][$t.tweenID] = {active:false}; delete _all[$t.endTargetID][$t.tweenID]; } static function killTweensOf($tg, $complete) { var _local3 = getID($tg, true); if ($complete) { var _local1 = _all[_local3]; for (var _local2 in _local1) { _local1[_local2].complete(false); } } delete _all[_local3]; } function complete($skipRender) { if ($skipRender != true) { startTime = 0; render(duration * 1000); return(undefined); } if ((typeof(vars.autoAlpha) == "number") && (target._alpha == 0)) { target._visible = false; } if (vars.onComplete) { vars.onComplete.apply(null, vars.onCompleteParams); } removeTween(this); } static function getID($tg, $lookup) { var _local3; if ($lookup) { var _local1 = _all; if (typeof($tg) == "movieclip") { if (_local1[String($tg)] != undefined) { return(String($tg)); } _local3 = String($tg); _all[_local3] = {info:[$tg, _local3]}; return(_local3); } for (var _local4 in _local1) { if (_local1[_local4].info[0] == $tg) { return(_local4); } } } _cnt++; _local3 = "t" + _cnt; _all[_local3] = {info:[$tg, _local3]}; return(_local3); } function render(t) { var _local4 = (t - startTime) / 1000; if (_local4 > duration) { _local4 = duration; } var _local2; var _local3 = vars.ease(_local4, 0, 1, duration); for (var _local5 in tweens) { _local2 = tweens[_local5]; _local2.o[_local5] = _local2.s + (_local3 * _local2.c); } if (vars.onUpdate != undefined) { vars.onUpdate.apply(null, vars.onUpdateParams); } if (_local4 == duration) { complete(true); } } static function executeAll() { var _local2 = _all; var _local3 = getTimer(); var _local1; for (var _local5 in _local2) { for (var _local4 in _local2[_local5]) { _local1 = _local2[_local5][_local4]; if (_local1.active) { _local1.render(_local3); } } } } static function killGarbage() { if (_e.onEnterFrame != null) { var _local1 = _all; var _local2; var _local3; var _local5; var _local6 = 0; var _local4 = 0; for (_local3 in _local1) { _local4 = 0; for (_local5 in _local1[_local3]) { _local2 = _local1[_local3][_local5]; if (_local2.tweens == undefined) { } else { _local4++; } } if (_local4 == 0) { delete _local1[_local3]; } else { _local6++; } } if (_local6 == 0) { _e.onEnterFrame = null; } } } static function easeOut($t, $b, $c, $d) { $t = $t / $d; return((((-$c) * $t) * ($t - 2)) + $b); } function easeProxy($t, $b, $c, $d) { var _local3 = this; return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams))); } function get active() { if (_active) { return(true); } if (((getTimer() - initTime) / 1000) > delay) { _active = true; startTime = initTime + (delay * 1000); if (vars.runBackwards != true) { initTweenVals(); } else if (typeof(vars.autoAlpha) == "number") { target._visible = true; } if (duration == 0.001) { startTime = startTime - 1; } if (vars.onStart != undefined) { vars.onStart.apply(null, vars.onStartParams); } return(true); } return(false); } function set endTarget($t) { _all[endTargetID][tweenID] = {active:false}; delete _all[endTargetID][tweenID]; endTargetID = getID($t, true); _endTarget = $t; _all[endTargetID][tweenID] = this; //return(__get__endTarget()); } function set volumeProxy($n) { _sound.setVolume($n); //return(volumeProxy); } function get volumeProxy() { return(_sound.getVolume()); } function set colorProxy($n) { color.setTransform(colorParts); //return(colorProxy); } function get colorProxy() { return(0); } static var version = 5.8; static var _all = new Object(); static var _cnt = -16000; static var killDelayedCallsTo = killTweensOf; }
Symbol 203 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back { function Back () { } static function easeIn(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / d; return((((c * t) * t) * (((s + 1) * t) - s)) + b); } static function easeOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = (t / d) - 1; return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b); } static function easeInOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / (d / 2); if (t < 1) { s = s * 1.525; return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b); } t = t - 2; s = s * 1.525; return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 6 MovieClip [letter] Frame 1
#initclip 11 Object.registerClass("letter", letterClass); #endinitclip
Symbol 60 MovieClip [tile] Frame 1
#initclip 12 Object.registerClass("tile", tileClass); #endinitclip stop();
Symbol 60 MovieClip [tile] Frame 11
stop();
Symbol 71 Button
on (rollOver) { this.bState = true; } on (rollOut) { this.bState = false; }
Symbol 82 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
_root.stop(); new mx.transitions.Tween(this.head, "_rotation", mx.transitions.easing.Bounce.easeOut, 0, 180, 0.7, true); new mx.transitions.Tween(this.head, "_y", mx.transitions.easing.Bounce.easeOut, this.head._y - 200, this.head._y, 1, true); new mx.transitions.Tween(this.head, "_x", mx.transitions.easing.Strong.easeOut, (Math.random() * 640) - 320, 0, 1, true);
Symbol 94 MovieClip Frame 92
_root.play();
Symbol 111 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
this.onPress = function () { getURL ("http://www.terrypaton.com", "_blank"); }; this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 194 MovieClip [__Packages.MochiAd]
Symbol 195 MovieClip [__Packages.letterClass]
Symbol 196 MovieClip [__Packages.tileClass]
Symbol 197 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 198 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 199 MovieClip [__Packages.mx.transitions.Tween]
Symbol 200 MovieClip [__Packages.mx.transitions.easing.Strong]
Symbol 201 MovieClip [__Packages.mx.transitions.easing.Bounce]
Symbol 202 MovieClip [__Packages.gs.TweenLite]
Symbol 203 MovieClip [__Packages.mx.transitions.easing.Back]
Symbol 3 GraphicUsed by:14
Symbol 4 FontUsed by:5 66 68
Symbol 5 EditableTextUses:4Used by:6
Symbol 6 MovieClip [letter]Uses:5Used by:14
Symbol 7 FontUsed by:8
Symbol 8 TextUses:7Used by:14
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:14
Symbol 11 GraphicUsed by:13
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:11 12Used by:14
Symbol 14 MovieClipUses:3 6 8 10 13Used by:Timeline
Symbol 15 GraphicUsed by:82
Symbol 16 BitmapUsed by:17 128
Symbol 17 GraphicUses:16Used by:60 74
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:60
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:60
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:60
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:60
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:60
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:60
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:60
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:60
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:60
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:60
Symbol 38 BitmapUsed by:39 128
Symbol 39 GraphicUses:38Used by:60 74
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:60
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:60
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:60
Symbol 46 BitmapUsed by:47
Symbol 47 GraphicUses:46Used by:60
Symbol 48 BitmapUsed by:49
Symbol 49 GraphicUses:48Used by:60
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:60
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:60
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:60
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:56Used by:60
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:60
Symbol 60 MovieClip [tile]Uses:17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59Used by:82
Symbol 61 GraphicUsed by:65 121 161 163
Symbol 62 FontUsed by:63 72 73 99 104 112 113 114 115 119 130 131 132 143 144 145 150 151 152 157 160 162 165 166 169 170 171 172 178 180 181 182 183 185 187 188 190 191
Symbol 63 TextUses:62Used by:65
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClip [levelCompleteClip]Uses:61 63 64Used by:82
Symbol 66 EditableTextUses:4Used by:67
Symbol 67 MovieClip [flipBonusTellText]Uses:66Used by:82
Symbol 68 EditableTextUses:4Used by:69
Symbol 69 MovieClip [levelBonusTellText]Uses:68Used by:82
Symbol 70 GraphicUsed by:71
Symbol 71 ButtonUses:70Used by:74
Symbol 72 EditableTextUses:62Used by:74
Symbol 73 EditableTextUses:62Used by:74
Symbol 74 MovieClip [lvlBtn]Uses:17 71 72 39 73Used by:82
Symbol 75 Sound [outOfBonus.wav]Used by:82
Symbol 76 Sound [levelCompleteSound.wav]Used by:82
Symbol 77 Sound [mouseOver.wav]Used by:82
Symbol 78 Sound [mouseDown.wav]Used by:82
Symbol 79 Sound [flipTileSnd1.wav]Used by:82
Symbol 80 Sound [flipTileSnd2.wav]Used by:82
Symbol 81 Sound [flipTileSnd3.wav]Used by:82
Symbol 82 MovieClipUses:15 60 65 67 69 74 75 76 77 78 79 80 81Used by:Timeline
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:83Used by:92
Symbol 85 GraphicUsed by:92
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:92
Symbol 88 GraphicUsed by:92
Symbol 89 GraphicUsed by:90
Symbol 90 MovieClipUses:89Used by:92
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:84 85 87 88 90 91Used by:94
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:92 93 SS1Used by:Timeline
Symbol 95 GraphicUsed by:Timeline
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:Timeline
Symbol 98 GraphicUsed by:100
Symbol 99 TextUses:62Used by:100
Symbol 100 MovieClipUses:98 99Used by:Timeline
Symbol 101 FontUsed by:102 153 173 174 175 176
Symbol 102 EditableTextUses:101Used by:Timeline
Symbol 103 GraphicUsed by:105
Symbol 104 TextUses:62Used by:105
Symbol 105 MovieClipUses:103 104Used by:Timeline
Symbol 106 GraphicUsed by:109
Symbol 107 GraphicUsed by:109
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:106 107 108Used by:Timeline
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:110Used by:Timeline
Symbol 112 TextUses:62Used by:Timeline
Symbol 113 EditableTextUses:62Used by:Timeline
Symbol 114 TextUses:62Used by:117
Symbol 115 TextUses:62Used by:117
Symbol 116 GraphicUsed by:117
Symbol 117 ButtonUses:114 115 116Used by:Timeline
Symbol 118 GraphicUsed by:121
Symbol 119 TextUses:62Used by:121
Symbol 120 GraphicUsed by:121 161 163
Symbol 121 MovieClipUses:61 118 119 120Used by:Timeline
Symbol 122 GraphicUsed by:140
Symbol 123 GraphicUsed by:140
Symbol 124 GraphicUsed by:140
Symbol 125 GraphicUsed by:140
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:140 149
Symbol 128 GraphicUses:16 38Used by:129
Symbol 129 MovieClipUses:128Used by:140
Symbol 130 TextUses:62Used by:140
Symbol 131 TextUses:62Used by:140
Symbol 132 TextUses:62Used by:140
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClipUses:133Used by:140
Symbol 135 FontUsed by:136
Symbol 136 TextUses:135Used by:137
Symbol 137 MovieClipUses:136Used by:140
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:138Used by:140
Symbol 140 MovieClipUses:122 123 124 125 127 129 130 131 132 134 137 139Used by:Timeline
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:148
Symbol 143 TextUses:62Used by:148
Symbol 144 TextUses:62Used by:148
Symbol 145 TextUses:62Used by:148
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:146Used by:148
Symbol 148 MovieClipUses:142 143 144 145 147Used by:Timeline
Symbol 149 MovieClipUses:127Used by:Timeline
Symbol 150 TextUses:62Used by:Timeline
Symbol 151 TextUses:62Used by:Timeline
Symbol 152 TextUses:62Used by:Timeline
Symbol 153 TextUses:101Used by:154
Symbol 154 MovieClipUses:153Used by:Timeline
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:Timeline
Symbol 157 TextUses:62Used by:158
Symbol 158 MovieClipUses:157Used by:Timeline
Symbol 159 GraphicUsed by:161 163
Symbol 160 TextUses:62Used by:161
Symbol 161 MovieClipUses:61 159 160 120Used by:Timeline
Symbol 162 TextUses:62Used by:163
Symbol 163 MovieClipUses:61 159 162 120Used by:Timeline
Symbol 164 GraphicUsed by:168
Symbol 165 TextUses:62Used by:167
Symbol 166 TextUses:62Used by:167
Symbol 167 MovieClipUses:165 166Used by:168
Symbol 168 MovieClipUses:164 167Used by:Timeline
Symbol 169 EditableTextUses:62Used by:177
Symbol 170 EditableTextUses:62Used by:177
Symbol 171 EditableTextUses:62Used by:177
Symbol 172 EditableTextUses:62Used by:177
Symbol 173 TextUses:101Used by:177
Symbol 174 TextUses:101Used by:177
Symbol 175 TextUses:101Used by:177
Symbol 176 TextUses:101Used by:177
Symbol 177 MovieClipUses:169 170 171 172 173 174 175 176Used by:Timeline
Symbol 178 TextUses:62Used by:179
Symbol 179 MovieClipUses:178Used by:Timeline
Symbol 180 TextUses:62Used by:184
Symbol 181 EditableTextUses:62Used by:184
Symbol 182 TextUses:62Used by:184 189
Symbol 183 EditableTextUses:62Used by:184
Symbol 184 MovieClipUses:180 181 182 183Used by:Timeline
Symbol 185 EditableTextUses:62Used by:Timeline
Symbol 186 SoundUsed by:Timeline
Symbol 187 EditableTextUses:62Used by:Timeline
Symbol 188 EditableTextUses:62Used by:189
Symbol 189 MovieClipUses:182 188Used by:Timeline
Symbol 190 TextUses:62Used by:192
Symbol 191 TextUses:62Used by:192
Symbol 192 MovieClipUses:190 191Used by:Timeline
Symbol 193 SoundUsed by:Timeline
Streaming Sound 1Used by:Symbol 94 MovieClip

Instance Names

"loadingClip"Frame 3Symbol 14 MovieClip
"howToPlay"Frame 7Symbol 100 MovieClip
"resetclip"Frame 7Symbol 111 MovieClip
"yourHighTextBox"Frame 7Symbol 113 EditableText
"reset_btn"Frame 7Symbol 117 Button
"playBtn"Frame 7Symbol 121 MovieClip
"helpClip"Frame 7Symbol 140 MovieClip
"tileHolder"Frame 24Symbol 154 MovieClip
"scoreBackPanel"Frame 24Symbol 156 MovieClip
"firstPlayMessage"Frame 24Symbol 158 MovieClip
"resetLevelBtn"Frame 24Symbol 161 MovieClip
"endGameBtn"Frame 24Symbol 163 MovieClip
"flipitGameTitle"Frame 24Symbol 168 MovieClip
"textBoxHolder"Frame 24Symbol 177 MovieClip
"playBtn"Frame 25Symbol 121 MovieClip
"gameOverText"Frame 25Symbol 179 MovieClip
"scoreboxes"Frame 25Symbol 184 MovieClip
"yourHighestTextBox"Frame 25Symbol 185 EditableText
"tileHolder"Frame 34Symbol 154 MovieClip
"yourHighestTextBox"Frame 34Symbol 187 EditableText
"scoreBoxes2"Frame 34Symbol 189 MovieClip
"playBtn"Frame 34Symbol 121 MovieClip
"gameCompleteText"Frame 34Symbol 192 MovieClip
"Lvar"Symbol 6 MovieClip [letter] Frame 1Symbol 5 EditableText
"mask"Symbol 14 MovieClip Frame 1Symbol 10 MovieClip
"flipHotspot"Symbol 60 MovieClip [tile] Frame 1Symbol 19 MovieClip
"textBox"Symbol 67 MovieClip [flipBonusTellText] Frame 1Symbol 66 EditableText
"textBox"Symbol 69 MovieClip [levelBonusTellText] Frame 1Symbol 68 EditableText
"btn"Symbol 74 MovieClip [lvlBtn] Frame 1Symbol 71 Button
"head"Symbol 94 MovieClip Frame 1Symbol 92 MovieClip
"levelText"Symbol 177 MovieClip Frame 1Symbol 169 EditableText
"scoreText"Symbol 177 MovieClip Frame 1Symbol 170 EditableText
"flipBonusText"Symbol 177 MovieClip Frame 1Symbol 171 EditableText
"levelFlipCountText"Symbol 177 MovieClip Frame 1Symbol 172 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 194 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 195 as "__Packages.letterClass"
ExportAssets (56)Timeline Frame 1Symbol 196 as "__Packages.tileClass"
ExportAssets (56)Timeline Frame 1Symbol 197 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 198 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 199 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 200 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 201 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 1Symbol 202 as "__Packages.gs.TweenLite"
ExportAssets (56)Timeline Frame 1Symbol 203 as "__Packages.mx.transitions.easing.Back"
ExportAssets (56)Timeline Frame 3Symbol 6 as "letter"
ExportAssets (56)Timeline Frame 4Symbol 60 as "tile"
ExportAssets (56)Timeline Frame 4Symbol 65 as "levelCompleteClip"
ExportAssets (56)Timeline Frame 4Symbol 67 as "flipBonusTellText"
ExportAssets (56)Timeline Frame 4Symbol 69 as "levelBonusTellText"
ExportAssets (56)Timeline Frame 4Symbol 74 as "lvlBtn"
ExportAssets (56)Timeline Frame 4Symbol 75 as "outOfBonus.wav"
ExportAssets (56)Timeline Frame 4Symbol 76 as "levelCompleteSound.wav"
ExportAssets (56)Timeline Frame 4Symbol 77 as "mouseOver.wav"
ExportAssets (56)Timeline Frame 4Symbol 78 as "mouseDown.wav"
ExportAssets (56)Timeline Frame 4Symbol 79 as "flipTileSnd1.wav"
ExportAssets (56)Timeline Frame 4Symbol 80 as "flipTileSnd2.wav"
ExportAssets (56)Timeline Frame 4Symbol 81 as "flipTileSnd3.wav"
Tag 0x0FF (255)Timeline Frame 11 bytes "."

Labels

"white"Symbol 60 MovieClip [tile] Frame 1
"turnBlack"Symbol 60 MovieClip [tile] Frame 2
"black"Symbol 60 MovieClip [tile] Frame 11
"turnWhite"Symbol 60 MovieClip [tile] Frame 12

Dynamic Text Variables

numSymbol 72 EditableText"50"
numSymbol 73 EditableText"50"
_root.vNumSymbol 102 EditableText"vnum"
_root.levelSymbol 181 EditableText"0"
_root.scoreSymbol 183 EditableText"0"
_root.scoreSymbol 188 EditableText"0"




http://swfchan.com/6/29235/info.shtml
Created: 20/5 -2019 00:41:15 Last modified: 20/5 -2019 00:41:15 Server time: 06/05 -2024 10:21:33