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

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

1D RGB Flipper Puzzle0.99.swf

This is the info page for
Flash #58503

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


Text
Rules: click on a marker to alter that and adjacent
markers. Match all markers to win a level. Beat 7 levels
to beat the game. Try and use as few clicks as possible!

Thanks to all
reviewers who give
constructive
criticism. Negative
feedback is brilliant
when it's specific
and well explained!
Any specific praise is
also appreciated.

Design,coding,'art'
and font by Behrooz
B. Shahriari.
Music by LJCoffee.
Preloader and
hosting by
Newgrounds.
Based on 2D flipping
puzzles.

123

clicks:

123

level:

123

123

best:

replay?

replay?

replay?

ABCDefghijklmnopqrs12345678901234567890

ActionScript [AS1/AS2]

Frame 1
stopAllSounds(); var highScore = Number.MAX_VALUE;
Frame 3
function endGame() { if (clicks < highScore) { highScore = clicks; } if (80 < clicks) { message = "81+ Were you \ntrying to do badly? \nNext time pay attention!"; } else if (60 < clicks) { message = "61-80 Use your brain.\n It shouldn't be hard\n to do a lot better."; } else if (50 < clicks) { message = "51-60 Think! Plan!\n You had a lot of wasted\n clicks there."; } else if (45 < clicks) { message = "46-50 Rather poor. \nI'm kinda disappointed \nin you!"; } else if (40 < clicks) { message = "41-45 Not terrible...\n not good either. \nPlan all moves."; } else if (35 < clicks) { message = "36-40 A good score! \nI think you could\n do better though."; } else if (28 < clicks) { message = "29-35 Amazing stuff!\nBut you wasted a few moves.\nPlan it all in advance!"; } else if (27 < clicks) { message = "28! A perfect score!\n YOU DA MAN!"; } else { message = "0-27 There was an error.\n Please let me know."; } gotoAndStop (13); } function nextLevel() { level++; trace("#levels:" + levelLayouts.length); trace("level: " + level); if (level >= NUMBEROFLEVELS) { trace("beaten"); endGame(); } else { setupLevel(); } } function setupLevel() { var i; var shifted = 1; var shifting = 0; var layoutNumber = Math.ceil(Math.random() * POTENTIALAYOUTS); _root.levelUp.gotoAndPlay("levelUp"); trace("levelup"); i = 0; while ((NUMBEROFMARKERS - 1) >= i) { circleStates[i] = 1; i++; } i = 1; while (4 >= i) { do { shifting = Math.ceil(Math.random() * (NUMBEROFMARKERS - 1)); } while (shifting == shifted); shiftBack(shifting); shifted = shifting; i++; } updateMarkers(); } function checkForWin() { var i = 0; var value = circleStates[0]; i = 1; while ((NUMBEROFMARKERS - 1) >= i) { if (circleStates[i] != value) { return(false); } i++; } return(true); } function updateMarkers() { var i; i = 0; while ((NUMBEROFMARKERS - 1) >= i) { eval ("marker" + i).gotoAndStop(circleStates[i]); i++; } } function clicked(circleNumber) { var changing; clicks++; trace("clicked" + circleNumber); changing = circleNumber - 1; while ((circleNumber + 1) >= changing) { if ((changing >= 0) && ((NUMBEROFMARKERS - 1) >= changing)) { if (levelMaking) { circleStates[changing]--; if (circleStates[changing] < 1) { circleStates[changing] = POTENTIALSTATES; } } else { circleStates[changing]++; if (POTENTIALSTATES < circleStates[changing]) { circleStates[changing] = 1; } } } changing++; } updateMarkers(); if (checkForWin()) { trace("WON!"); nextLevel(); } trace("circleStates: " + circleStates); } function shiftBack(circleNumber) { var changing; trace("shiftback " + circleNumber); changing = circleNumber - 1; while ((circleNumber + 1) >= changing) { if ((changing >= 0) && ((NUMBEROFMARKERS - 1) >= changing)) { circleStates[changing]--; if (circleStates[changing] < 1) { circleStates[changing] = POTENTIALSTATES; } } changing++; } updateMarkers(); if (checkForWin()) { trace("WON!"); nextLevel(); } trace("circleStates: " + circleStates); } var levelMaking = false; var NUMBEROFMARKERS = 7; var POTENTIALSTATES = 3; var POTENTIALAYOUTS = 7; var NUMBEROFLEVELS = 7; var circleStates = new Array(2, 2, 1, 2, 1, 2, 2); var clicks = 0; var time = 0; var level = 0; var levelLayout1 = [3, 2, 3, 3, 1, 3, 3]; var levelLayout2 = [2, 2, 1, 2, 2, 2, 2]; var levelLayout3 = [1, 1, 1, 2, 1, 1, 1]; var levelLayout4 = [2, 1, 2, 1, 2, 1, 2]; var levelLayout5 = [1, 1, 2, 1, 2, 1, 1]; var levelLayout6 = [1, 2, 2, 1, 2, 2, 1]; var levelLayout7 = [2, 1, 2, 2, 2, 2, 2]; var levelLayout8 = [2, 1, 2, 2, 2, 2, 2]; var levelLayout9 = [2, 1, 2, 2, 2, 2, 2]; var levelLayout10 = [2, 1, 2, 2, 2, 2, 2]; var levelLayouts = [levelLayout1, levelLayout2, levelLayout3, levelLayout4, levelLayout5, levelLayout6, levelLayout7, levelLayout8, levelLayout9, levelLayout10]; var message = "YOU SUCK!"; setupLevel(); stop();
Symbol 9 Button
on (release) { getURL ("http://www.newgrounds.com", "blank"); }
Symbol 14 Button
on (release) { _root.play(); }
Symbol 15 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop (3); }
Symbol 15 MovieClip Frame 2
gotoAndPlay (1);
Symbol 15 MovieClip Frame 3
Symbol 47 Button
on (press) { clicked(0); }
Symbol 48 Button
on (press) { clicked(1); }
Symbol 49 Button
on (press) { clicked(2); }
Symbol 50 Button
on (press) { clicked(3); }
Symbol 51 Button
on (press) { clicked(4); }
Symbol 52 Button
on (press) { clicked(5); }
Symbol 53 Button
on (press) { clicked(6); }
Symbol 60 MovieClip Frame 1
stop();
Symbol 68 Button
on (release) { gotoAndStop (3); }

Library Items

Symbol 1 GraphicUsed by:15  Timeline
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:15
Symbol 4 GraphicUsed by:15
Symbol 5 GraphicUsed by:8 9
Symbol 6 GraphicUsed by:8 9
Symbol 7 GraphicUsed by:8 9
Symbol 8 MovieClipUses:5 6 7Used by:9
Symbol 9 ButtonUses:8 5 6 7Used by:15
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 ButtonUses:10 11 12 13Used by:15
Symbol 15 MovieClipUses:1 3 4 9 14Used by:Timeline
Symbol 16 FontUsed by:17 18 19
Symbol 17 TextUses:16Used by:Timeline
Symbol 18 TextUses:16Used by:Timeline
Symbol 19 TextUses:16Used by:Timeline
Symbol 20 SoundUsed by:Timeline
Symbol 21 ShapeTweeningUsed by:37
Symbol 22 ShapeTweeningUsed by:37
Symbol 23 ShapeTweeningUsed by:37
Symbol 24 ShapeTweeningUsed by:37
Symbol 25 ShapeTweeningUsed by:37
Symbol 26 ShapeTweeningUsed by:37
Symbol 27 ShapeTweeningUsed by:37
Symbol 28 ShapeTweeningUsed by:37
Symbol 29 ShapeTweeningUsed by:37
Symbol 30 ShapeTweeningUsed by:37
Symbol 31 ShapeTweeningUsed by:37
Symbol 32 ShapeTweeningUsed by:37
Symbol 33 ShapeTweeningUsed by:37
Symbol 34 ShapeTweeningUsed by:37
Symbol 35 ShapeTweeningUsed by:37
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36Used by:Timeline
Symbol 38 GraphicUsed by:41
Symbol 39 GraphicUsed by:41
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:38 39 40Used by:Timeline
Symbol 42 GraphicUsed by:Timeline
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:43Used by:Timeline
Symbol 45 GraphicUsed by:47 48 49 50 51 52 53
Symbol 46 GraphicUsed by:47 48 49 50 51 52 53
Symbol 47 ButtonUses:45 46Used by:Timeline
Symbol 48 ButtonUses:45 46Used by:Timeline
Symbol 49 ButtonUses:45 46Used by:Timeline
Symbol 50 ButtonUses:45 46Used by:Timeline
Symbol 51 ButtonUses:45 46Used by:Timeline
Symbol 52 ButtonUses:45 46Used by:Timeline
Symbol 53 ButtonUses:45 46Used by:Timeline
Symbol 54 FontUsed by:55 56 57 58 61 62 63 64 65 66 69
Symbol 55 EditableTextUses:54Used by:Timeline
Symbol 56 TextUses:54Used by:Timeline
Symbol 57 EditableTextUses:54Used by:Timeline
Symbol 58 TextUses:54Used by:Timeline
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 EditableTextUses:54Used by:Timeline
Symbol 62 EditableTextUses:54Used by:Timeline
Symbol 63 TextUses:54Used by:Timeline
Symbol 64 TextUses:54Used by:68
Symbol 65 TextUses:54Used by:68
Symbol 66 TextUses:54Used by:68
Symbol 67 GraphicUsed by:68
Symbol 68 ButtonUses:64 65 66 67Used by:Timeline
Symbol 69 EditableTextUses:54Used by:Timeline

Instance Names

"marker0"Frame 3Symbol 41 MovieClip
"marker1"Frame 3Symbol 41 MovieClip
"marker2"Frame 3Symbol 41 MovieClip
"marker3"Frame 3Symbol 41 MovieClip
"marker4"Frame 3Symbol 41 MovieClip
"marker5"Frame 3Symbol 41 MovieClip
"marker6"Frame 3Symbol 41 MovieClip
"levelUp"Frame 3Symbol 60 MovieClip
"bar"Symbol 15 MovieClip Frame 1Symbol 3 MovieClip

Labels

"game"Frame 3
"end"Frame 13
"loaded"Symbol 15 MovieClip Frame 3
"levelUp"Symbol 60 MovieClip Frame 1

Dynamic Text Variables

_root.clicksSymbol 55 EditableText"123"
_root.levelSymbol 57 EditableText"123"
_root.clicksSymbol 61 EditableText"123"
_root.highScoreSymbol 62 EditableText"123"
_root.messageSymbol 69 EditableText"ABCDefghijklmnopqrs12345678901234567890"




http://swfchan.com/12/58503/info.shtml
Created: 17/4 -2019 03:56:30 Last modified: 17/4 -2019 03:56:30 Server time: 15/05 -2024 15:08:47