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

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

Bad Apple.swf

This is the info page for
Flash #10978

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


Text
BAD APPLE

BAD APPLE

Click on a apple to bite into it.
If you eat a good apple it will
reveal the number of  adjacent
bad apples (including diagon-
ally.  For instance, if a good
apple reveals the number  1,
there is 1 bad apple adjacent to
it.  Try to eat only good apples.
If you eat a bad apple, the game
is over.  Good Luck!

PLAY

PLAY

Still Hungry?

Yeeech!!

You just got...er--a little extra protein
there, didn't ya?  Not exactly gummy
fruits are they?

TRY AGAIN?

Yipee!!

You found all the good apples! If an
apple a day keeps the doctor away,
looks like you're set for a few weeks
or so now.

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
stop();
Instance of Symbol 42 MovieClip "baseapple" in Frame 2
onClipEvent (load) { clearChecked(); }
Frame 3
gotoAndPlay (5);
Frame 4
gotoAndPlay (6);
Frame 5
stop();
Frame 6
stop();
Symbol 19 Button
on (release) { gotoAndPlay (2); }
Symbol 24 Button
on (release) { if (/thescript:stopclick == false) { Set("/:currentx", myx); Set("/:currenty", myy); tempcount = 0; clearChecked(); tempCount = getNumberSurrounding(myx, myy); _root.theScript.tempcount[myPlace] = tempcount; Set("/:currentx", 0); Set("/:currenty", 0); if (isbad == 1) { Set("/thescript:stopclick", true); gotoAndPlay (85); _root.badApple.gotoAndPlay("start"); } else { if (tempCount == 0) { clearSurounding(myx, myy); } else { Set("/thescript:numleft", /thescript:numleft - 1); if (/thescript:numleft == 0) { Set("/thescript:stopclick", true); } } gotoAndPlay (3); } } }
Symbol 42 MovieClip Frame 1
function getNumberSurrounding(checkmyx, checkmyy) { var surTempCount = 0; if (1 < checkmyx) { surTempCount = surTempCount + eval ((("/apple" + (checkmyx - 1)) + checkmyy) + ":isbad"); } if (checkmyx < _root.thescript.numx) { surTempCount = surTempCount + eval ((("/apple" + (checkmyx + 1)) + checkmyy) + ":isbad"); } if (1 < checkmyy) { surTempCount = surTempCount + eval ((("/apple" + checkmyx) + (checkmyy - 1)) + ":isbad"); } if (checkmyy < _root.thescript.numy) { surTempCount = surTempCount + eval ((("/apple" + checkmyx) + (checkmyy + 1)) + ":isbad"); } if ((1 < checkmyx) && (1 < checkmyy)) { surTempCount = surTempCount + eval ((("/apple" + (checkmyx - 1)) + (checkmyy - 1)) + ":isbad"); } if ((1 < checkmyx) && (checkmyy < _root.thescript.numy)) { surTempCount = surTempCount + eval ((("/apple" + (checkmyx - 1)) + (checkmyy + 1)) + ":isbad"); } if ((checkmyx < /thescript:numx) and (1 < checkmyy)) { surTempCount = surTempCount + eval ((("/apple" + (checkmyx + 1)) + (checkmyy - 1)) + ":isbad"); } if ((checkmyx < /thescript:numx) and (checkmyy < /thescript:numy)) { surTempCount = surTempCount + eval ((("/apple" + (checkmyx + 1)) + (checkmyy + 1)) + ":isbad"); } return(surTempCount); } function clearSurounding(PlaceX, PlaceY) { if (1 < PlaceX) { CheckSurround(PlaceX - 1, PlaceY); } if (PlaceX < /thescript:numx) { CheckSurround(PlaceX + 1, PlaceY); } if (1 < PlaceY) { CheckSurround(PlaceX, PlaceY - 1); } if (PlaceY < /thescript:numy) { CheckSurround(PlaceX, PlaceY + 1); } if ((1 < PlaceX) and (1 < PlaceY)) { CheckSurround(PlaceX - 1, PlaceY - 1); } if ((1 < PlaceX) and (PlaceY < /thescript:numy)) { CheckSurround(PlaceX - 1, PlaceY + 1); } if ((PlaceX < /thescript:numx) and (1 < PlaceY)) { CheckSurround(PlaceX + 1, PlaceY - 1); } if ((PlaceX < /thescript:numx) and (PlaceY < /thescript:numy)) { CheckSurround(PlaceX + 1, PlaceY + 1); } } function CheckSurround(CheckPlaceX, CheckPlaceY) { if (checkedArray[CheckPlaceX][CheckPlaceY] == false) { waiting = _root.theScript.ApplesWaiting[CheckPlaceX][CheckPlaceY]; if (waiting == true) { checkedArray[checkPlaceX][CheckPlaceY] = true; tempPlace = (((CheckPlaceY - 1) * _root.theScript.numX) + CheckPlaceX) - 1; tempCount = getNumberSurrounding(CheckPlaceX, CheckPlaceY); _root.theScript.tempcount[tempPlace] = tempcount; _root.thescript.numleft = _root.thescript.numleft - 1; if (/thescript:numleft == 0) { Set("/thescript:stopclick", true); } tellTarget (("/apple" add CheckPlaceX) add CheckPlaceY) { gotoAndPlay ("Good"); }; if (tempCount == 0) { clearSurounding(CheckPlaceX, CheckPlaceY); } } } } function clearChecked() { checkedArray = new Array(); countX = 1; countY = 1; while (/thescript:numx >= countx) { var checkedRow = new Array(); while (/thescript:numy >= county) { checkedrow[county] = false; county = county + 1; } county = 1; checkedArray[countx] = checkedRow; countx = countx + 1; } } function printArray() { countX = 1; countY = 1; while (/thescript:numx >= countx) { while (/thescript:numy >= county) { county = county + 1; } county = 1; countx = countx + 1; } } appleWaiting = true;
Symbol 42 MovieClip Frame 2
gotoAndPlay (1);
Symbol 42 MovieClip Frame 3
_root.theScript.ApplesWaiting[myX][myY] = false;
Symbol 42 MovieClip Frame 80
count = _root.theScript.tempcount[myPlace]; if (count == 0) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (2); }; } else if (count == 1) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (3); }; } else if (count == 2) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (4); }; } else if (count == 3) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (5); }; } else if (count == 4) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (6); }; } else if (count == 5) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (7); }; } else if (count == 6) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (8); }; } else if (count == 7) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (9); }; } else if (count == 8) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (10); }; } else if (count == 9) { tellTarget (("/number" add myx) add myy) { gotoAndPlay (11); }; } if (/thescript:numleft == 0) { tellTarget ("/") { countx = 1; county = 1; while (/thescript:numx >= countx) { while (/thescript:numy >= county) { removeMovieClip(("apple" add countx) add county); removeMovieClip(("number" add countx) add county); county = county + 1; } county = 1; countx = countx + 1; } gotoAndPlay ("gotowin"); }; } stop();
Symbol 42 MovieClip Frame 85
tellTarget ("/") { countx = 1; county = 1; while (/thescript:numx >= countx) { while (/thescript:numy >= county) { removeMovieClip(("apple" add countx) add county); removeMovieClip(("number" add countx) add county); county = county + 1; } county = 1; countx = countx + 1; } }; stop();
Symbol 43 MovieClip Frame 1
stopclick = false; currentx = 0; currenty = 0; numx = 8; numy = 6; numbad = 10; tempcount = new Array(numx * numy); numleft = (numx * numy) - numbad; tempx = 0; tempy = 0; distx = (getProperty("/baseapple", _width) - (getProperty("/baseapple", _width) / 10)) + 22; disty = (getProperty("/baseapple", _height) - (getProperty("/baseapple", _height) / 10)) + 25; startx = 315 - ((numx / 2) * distx); starty = (225 - ((numy / 2) * disty)) + 30; countx = 1; county = 1; countbad = 0; countI = 0; while (numx >= countx) { while (numy >= county) { Set(("bad" add countx) add county, 0); tempCount[countI] = 0; county = county + 1; countI++; } county = 1; countx = countx + 1; } while (countbad < numbad) { tempx = random(numx) + 1; tempy = random(numy) + 1; while ((("bad" add tempx) add tempy) == 1) { tempx = random(numx) + 1; tempy = random(numy) + 1; } Set(("bad" add tempx) add tempy, 1); countbad = countbad + 1; } gotoAndPlay (11);
Symbol 43 MovieClip Frame 11
ApplesWaiting = new Array(); countx = 1; county = 1; layercount = 1; while (numx >= countx) { var checkedRow = new Array(); while (numy >= county) { duplicateMovieClip ("/baseapple", ("apple" + countx) + county, layercount); setProperty(("/apple" + countx) + county, _x , (distx * (countx - 1)) + startx); setProperty(("/apple" + countx) + county, _y , (disty * (county - 1)) + starty); Set((("/apple" + countx) + county) + ":isbad", eval (("bad" + countx) add county)); duplicateMovieClip ("/basenumber", ("number" + countx) + county, (numx * numy) + layercount); tellTarget (("/number" + countx) + county) { gotoAndPlay (1); }; setProperty(("/number" + countx) + county, _x , (distx * (countx - 1)) + startx); setProperty(("/number" + countx) + county, _y , (disty * (county - 1)) + starty); Set((("/apple" + countx) + county) + ":myx", countx); Set((("/apple" + countx) + county) + ":myy", county); tempPlace = ((numx * (county - 1)) + countx) - 1; Set((("/apple" + countx) + county) + ":myPlace", tempPlace); layercount = layercount + 1; checkedrow[county] = true; county = county + 1; } county = 1; ApplesWaiting[countx] = checkedRow; countx = countx + 1; } stop();
Symbol 43 MovieClip Frame 20
stop();
Symbol 53 MovieClip Frame 1
tempcount = 3; stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 53 MovieClip Frame 3
stop();
Symbol 53 MovieClip Frame 4
stop();
Symbol 53 MovieClip Frame 5
stop();
Symbol 53 MovieClip Frame 6
stop();
Symbol 53 MovieClip Frame 7
stop();
Symbol 53 MovieClip Frame 8
stop();
Symbol 53 MovieClip Frame 9
stop();
Symbol 53 MovieClip Frame 10
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 80
_root.gotoAndPlay("gotolose");

Library Items

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

Instance Names

"baseapple"Frame 2Symbol 42 MovieClip
"thescript"Frame 2Symbol 43 MovieClip
"basenumber"Frame 2Symbol 53 MovieClip
"badApple"Frame 2Symbol 79 MovieClip

Labels

"gotolose"Frame 3
"gotowin"Frame 4
"stop"Symbol 42 MovieClip Frame 1
"stoploop"Symbol 42 MovieClip Frame 2
"Good"Symbol 42 MovieClip Frame 3
"wincheck"Symbol 42 MovieClip Frame 80
"lose"Symbol 42 MovieClip Frame 85
"randomize"Symbol 43 MovieClip Frame 1
"initapples"Symbol 43 MovieClip Frame 11
"start"Symbol 79 MovieClip Frame 5




http://swfchan.com/3/10978/info.shtml
Created: 7/6 -2019 20:03:33 Last modified: 7/6 -2019 20:03:33 Server time: 02/05 -2024 20:21:48