| STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 231346 |
| /disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2623 · P5245 |
![]() | This is the info page for Flash #10978 |
| 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 1stop();Frame 2stop();Instance of Symbol 42 MovieClip "baseapple" in Frame 2onClipEvent (load) { clearChecked(); }Frame 3gotoAndPlay (5);Frame 4gotoAndPlay (6);Frame 5stop();Frame 6stop();Symbol 19 Buttonon (release) { gotoAndPlay (2); }Symbol 24 Buttonon (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 1function 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 2gotoAndPlay (1);Symbol 42 MovieClip Frame 3_root.theScript.ApplesWaiting[myX][myY] = false;Symbol 42 MovieClip Frame 80count = _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 85tellTarget ("/") { 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 1stopclick = 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 11ApplesWaiting = 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 20stop();Symbol 53 MovieClip Frame 1tempcount = 3; stop();Symbol 53 MovieClip Frame 2stop();Symbol 53 MovieClip Frame 3stop();Symbol 53 MovieClip Frame 4stop();Symbol 53 MovieClip Frame 5stop();Symbol 53 MovieClip Frame 6stop();Symbol 53 MovieClip Frame 7stop();Symbol 53 MovieClip Frame 8stop();Symbol 53 MovieClip Frame 9stop();Symbol 53 MovieClip Frame 10stop();Symbol 79 MovieClip Frame 1stop();Symbol 79 MovieClip Frame 80_root.gotoAndPlay("gotolose");
Library Items
| Symbol 1 Graphic | Used by:Timeline | ||
| Symbol 2 Graphic | Used by:24 42 79 Timeline | ||
| Symbol 3 Graphic | Used by:24 42 79 Timeline | ||
| Symbol 4 Graphic | Used by:Timeline | ||
| Symbol 5 Graphic | Used by:Timeline | ||
| Symbol 6 Graphic | Used by:Timeline | ||
| Symbol 7 Graphic | Used by:Timeline | ||
| Symbol 8 Graphic | Used by:Timeline | ||
| Symbol 9 Graphic | Used by:Timeline | ||
| Symbol 10 Graphic | Used by:Timeline | ||
| Symbol 11 Font | Used by:12 13 20 21 | ||
| Symbol 12 Text | Uses:11 | Used by:Timeline | |
| Symbol 13 Text | Uses:11 | Used by:Timeline | |
| Symbol 14 Font | Used by:15 | ||
| Symbol 15 Text | Uses:14 | Used by:Timeline | |
| Symbol 16 Graphic | Used by:19 | ||
| Symbol 17 Graphic | Used by:19 | ||
| Symbol 18 Graphic | Used by:19 | ||
| Symbol 19 Button | Uses:16 17 18 | Used by:Timeline | |
| Symbol 20 Text | Uses:11 | Used by:Timeline | |
| Symbol 21 Text | Uses:11 | Used by:Timeline | |
| Symbol 22 Graphic | Used by:Timeline | ||
| Symbol 23 Graphic | Used by:24 42 79 | ||
| Symbol 24 Button | Uses:23 2 3 | Used by:42 | |
| Symbol 25 Graphic | Used by:42 | ||
| Symbol 26 Graphic | Used by:42 | ||
| Symbol 27 Graphic | Used by:42 | ||
| Symbol 28 Graphic | Used by:42 | ||
| Symbol 29 Graphic | Used by:42 | ||
| Symbol 30 Sound | Used by:42 | ||
| Symbol 31 Graphic | Used by:42 | ||
| Symbol 32 Sound | Used by:42 | ||
| Symbol 33 Graphic | Used by:42 | ||
| Symbol 34 Sound | Used by:42 | ||
| Symbol 35 Sound | Used by:42 | ||
| Symbol 36 Graphic | Used by:42 | ||
| Symbol 37 ShapeTweening | Used by:42 | ||
| Symbol 38 ShapeTweening | Used by:42 | ||
| Symbol 39 ShapeTweening | Used by:42 | ||
| Symbol 40 Graphic | Used by:42 | ||
| Symbol 41 ShapeTweening | Used by:42 | ||
| Symbol 42 MovieClip | Uses:24 23 2 3 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | Used by:Timeline | |
| Symbol 43 MovieClip | Used by:Timeline | ||
| Symbol 44 Graphic | Used by:53 | ||
| Symbol 45 Graphic | Used by:53 | ||
| Symbol 46 Graphic | Used by:53 | ||
| Symbol 47 Graphic | Used by:53 | ||
| Symbol 48 Graphic | Used by:53 | ||
| Symbol 49 Graphic | Used by:53 | ||
| Symbol 50 Graphic | Used by:53 | ||
| Symbol 51 Graphic | Used by:53 | ||
| Symbol 52 Graphic | Used by:53 | ||
| Symbol 53 MovieClip | Uses:44 45 46 47 48 49 50 51 52 | Used by:Timeline | |
| Symbol 54 Graphic | Used by:79 | ||
| Symbol 55 Graphic | Used by:79 | ||
| Symbol 56 Graphic | Used by:79 | ||
| Symbol 57 Graphic | Used by:62 73 79 | ||
| Symbol 58 Graphic | Used by:62 79 | ||
| Symbol 59 Graphic | Used by:62 73 79 | ||
| Symbol 60 Graphic | Used by:62 73 | ||
| Symbol 61 Graphic | Used by:62 73 | ||
| Symbol 62 MovieClip | Uses:57 58 59 60 61 | Used by:79 | |
| Symbol 63 Graphic | Used by:79 | ||
| Symbol 64 Graphic | Used by:79 | ||
| Symbol 65 Sound | Used by:79 | ||
| Symbol 66 Graphic | Used by:73 | ||
| Symbol 67 Sound | Used by:73 | ||
| Symbol 68 Graphic | Used by:73 | ||
| Symbol 69 Graphic | Used by:73 | ||
| Symbol 70 Sound | Used by:73 | ||
| Symbol 71 Graphic | Used by:73 | ||
| Symbol 72 Graphic | Used by:73 | ||
| Symbol 73 MovieClip | Uses:57 66 60 61 67 68 59 69 70 71 72 | Used by:79 | |
| Symbol 74 Graphic | Used by:79 | ||
| Symbol 75 Graphic | Used by:79 | ||
| Symbol 76 Graphic | Used by:79 | ||
| Symbol 77 Graphic | Used by:79 | ||
| Symbol 78 Graphic | Used by:79 | ||
| Symbol 79 MovieClip | Uses:23 2 54 3 55 56 62 63 64 65 73 57 58 59 74 75 76 77 78 | Used by:Timeline | |
| Symbol 80 Font | Used by:81 82 83 84 85 86 | ||
| Symbol 81 Text | Uses:80 | Used by:Timeline | |
| Symbol 82 Text | Uses:80 | Used by:Timeline | |
| Symbol 83 Text | Uses:80 | Used by:Timeline | |
| Symbol 84 Text | Uses:80 | Used by:Timeline | |
| Symbol 85 Text | Uses:80 | Used by:Timeline | |
| Symbol 86 Text | Uses:80 | Used by:Timeline |
Instance Names
| "baseapple" | Frame 2 | Symbol 42 MovieClip |
| "thescript" | Frame 2 | Symbol 43 MovieClip |
| "basenumber" | Frame 2 | Symbol 53 MovieClip |
| "badApple" | Frame 2 | Symbol 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 |
|
|