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

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

702928647.swf

This is the info page for
Flash #12186

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


Text
+

ActionScript [AS1/AS2]

Frame 1
function write_scores() { time--; scores = ((((((((("Level: " + level) + newline) + "Score: ") + score) + newline) + "Top Score: ") + _root.top_score) + newline) + "Time: ") + time; } function write_texts() { num1_text = num1; num2_text = num2; answer_text = answer; } function next_level_add() { level++; score = score + Math.round((num1 + num2) / 2); time_max = time_max + 0.45; time = Math.round(time_max); answer = 0; difficulty = Math.round(difficulty * 1.3); num1 = Math.round(Math.random() * difficulty); num2 = Math.round(Math.random() * difficulty); flashA.play(); } function next_level_multiply() { level++; score = score + Math.round(num1 * num2); time_max = time_max + 1; time = Math.round(time_max); answer = 0; difficulty = Math.round(difficulty * 1.25); num1 = Math.round(Math.random() * difficulty); num2 = Math.round((Math.random() * 4) + 1); flashA.play(); } function lose_level_add() { removeMovieClip("life" + lives); lives--; time = Math.round(time_max); answer = 0; num1 = Math.round(Math.random() * difficulty); num2 = Math.round(Math.random() * difficulty); flashA.play(); } function lose_level_multiply() { removeMovieClip("life" + lives); lives--; time = Math.round(time_max); answer = 0; num1 = Math.round(Math.random() * difficulty); num2 = Math.round((Math.random() * 4) + 1); flashA.play(); } function gameplay_add() { if (_root.score > _root.top_score) { _root.top_score = _root.score; scores = ((((((((("Level: " + level) + newline) + "Score: ") + score) + newline) + "Top Score: ") + _root.top_score) + newline) + "Time: ") + time; } if (answer_text == (num1 + num2)) { _root.next_level_add(); _root.write_texts(); _root.write_scores(); } if (time <= 0) { _root.lose_level_add(); _root.write_texts(); _root.write_scores(); } if (lives <= 0) { end_game(); _root.flashA.play(); _root.gotoAndStop("die"); } } function gameplay_multiply() { if (_root.score >= _root.top_score) { _root.top_score = _root.score; scores = ((((((((("Level: " + level) + newline) + "Score: ") + score) + newline) + "Top Score: ") + _root.top_score) + newline) + "Time: ") + time; } if (answer_text == (num1 * num2)) { _root.next_level_multiply(); _root.write_texts(); _root.write_scores(); } if (time <= 0) { _root.lose_level_multiply(); _root.write_texts(); _root.write_scores(); } if (lives <= 0) { end_game(); _root.flashA.play(); _root.gotoAndStop("die"); } } function end_game() { if (_root.lives > 0) { var _local2 = 0; while (_local2 < lives) { removeMovieClip(_root["life" + (_local2 + 1)]); _local2++; } } clearInterval(_root.gameplay_interval); clearInterval(_root.scores_interval); } Stage.showMenu = false; var top_score = 0;
Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (load) { _root.stop(); this.loadBar.stop(); } onClipEvent (enterFrame) { if (_root.getBytesTotal() > 0) { if (_root.getBytesLoaded() == _root.getBytesTotal()) { _root.play(); } else { var percentage = Math.round(10 * (_root.getBytesLoaded() / _root.getBytesTotal())); this.loadBar.gotoAndStop(percentage); this.percentText = percentage + "/10"; } } } on (press) { _root.getURL("http://www.SnubbyLand.com/", "_blank"); }
Instance of Symbol 22 MovieClip in Frame 2
onClipEvent (load) { this.loadBar.gotoAndStop(10); }
Frame 12
stop();
Instance of Symbol 30 MovieClip in Frame 12
on (rollOver) { this.gotoAndPlay("on"); } on (rollOut) { this.gotoAndPlay("off"); } on (press) { _root.gotoAndStop("addition"); }
Instance of Symbol 33 MovieClip in Frame 12
on (rollOver) { this.gotoAndPlay("on"); } on (rollOut) { this.gotoAndPlay("off"); } on (press) { _root.gotoAndStop("multiplication"); }
Instance of Symbol 36 MovieClip in Frame 12
on (rollOver) { this.gotoAndPlay("on"); } on (rollOut) { this.gotoAndPlay("off"); } on (press) { _root.flashA.play(); _root.gotoAndStop("instructions"); }
Instance of Symbol 38 MovieClip in Frame 12
on (rollOver) { this.gotoAndPlay("on"); } on (rollOut) { this.gotoAndPlay("off"); } on (press) { getURL ("http://www.snubbyland.com/", "_blank"); }
Instance of Symbol 42 MovieClip in Frame 13
on (rollOver) { this.gotoAndPlay("on"); } on (rollOut) { this.gotoAndPlay("off"); } on (press) { _root.flashA.play(); _root.gotoAndStop("menu"); }
Frame 14
stop(); var lives = 3; var level = 0; var score = 0; var time_max = 4; var time = time_max; var num1 = 0; var num2 = 0; var answer = 0; var difficulty = 3; var a = 0; while (a < lives) { attachMovie("life", "life" + (a + 1), getNextHighestDepth()); if (a == 0) { _root["life" + (a + 1)]._x = 10; _root["life" + (a + 1)]._y = 10; } else { _root["life" + (a + 1)]._x = _root["life" + a]._x + 60; _root["life" + (a + 1)]._y = 10; } a++; } var gameplay_interval = setInterval(_root.gameplay_add, 33.3333333333333); var scores_interval = setInterval(_root.write_scores, 1000); _root.next_level_add(); _root.write_scores(); _root.write_texts();
Instance of Symbol 42 MovieClip in Frame 14
on (rollOver) { this.gotoAndPlay("on"); } on (rollOut) { this.gotoAndPlay("off"); } on (press) { _root.flashA.play(); _root.end_game(); _root.gotoAndStop("menu"); }
Instance of Symbol 52 MovieClip in Frame 14
on (keyPress "0") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 0; _root.write_texts(); } else { _root.answer = _root.answer + "0"; _root.write_texts(); } } } on (keyPress "1") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 1; _root.write_texts(); } else { _root.answer = _root.answer + "1"; _root.write_texts(); } } } on (keyPress "2") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 2; _root.write_texts(); } else { _root.answer = _root.answer + "2"; _root.write_texts(); } } } on (keyPress "3") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 3; _root.write_texts(); } else { _root.answer = _root.answer + "3"; _root.write_texts(); } } } on (keyPress "4") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 4; _root.write_texts(); } else { _root.answer = _root.answer + "4"; _root.write_texts(); } } } on (keyPress "5") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 5; _root.write_texts(); } else { _root.answer = _root.answer + "5"; _root.write_texts(); } } } on (keyPress "6") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 6; _root.write_texts(); } else { _root.answer = _root.answer + "6"; _root.write_texts(); } } } on (keyPress "7") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 7; _root.write_texts(); } else { _root.answer = _root.answer + "7"; _root.write_texts(); } } } on (keyPress "8") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 8; _root.write_texts(); } else { _root.answer = _root.answer + "8"; _root.write_texts(); } } } on (keyPress "9") { if (_root.answer.length <= 5) { if (_root.answer == 0) { _root.answer = 9; _root.write_texts(); } else { _root.answer = _root.answer + "9"; _root.write_texts(); } } } on (keyPress "<Space>") { _root.answer = 0; _root.write_texts(); }
Frame 15
stop(); var lives = 3; var level = 0; var score = 0; var time_max = 4; var time = time_max; var num1 = 0; var num2 = 0; var answer = 0; var difficulty = 3; var a = 0; while (a < lives) { attachMovie("life", "life" + (a + 1), getNextHighestDepth()); if (a == 0) { _root["life" + (a + 1)]._x = 10; _root["life" + (a + 1)]._y = 10; } else { _root["life" + (a + 1)]._x = _root["life" + a]._x + 60; _root["life" + (a + 1)]._y = 10; } a++; } var gameplay_interval = setInterval(_root.gameplay_multiply, 33.3333333333333); var scores_interval = setInterval(_root.write_scores, 1000); _root.next_level_multiply(); _root.write_scores(); _root.write_texts();
Frame 16
end_text = ((("Score: " + _root.score) + newline) + "Top Score: ") + _root.top_score;
Symbol 25 MovieClip Frame 10
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 10
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 10
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 10
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 10
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 10
stop();

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [life]Uses:1
Symbol 3 GraphicUsed by:22
Symbol 4 GraphicUsed by:18 25
Symbol 5 GraphicUsed by:18
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:18
Symbol 8 GraphicUsed by:18
Symbol 9 GraphicUsed by:18
Symbol 10 GraphicUsed by:18
Symbol 11 GraphicUsed by:18
Symbol 12 GraphicUsed by:18
Symbol 13 GraphicUsed by:18
Symbol 14 GraphicUsed by:18
Symbol 15 GraphicUsed by:18
Symbol 16 GraphicUsed by:18
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:4 5 7 8 9 10 11 12 13 14 15 16 17Used by:22
Symbol 19 GraphicUsed by:22
Symbol 20 FontUsed by:21
Symbol 21 EditableTextUses:20Used by:22
Symbol 22 MovieClipUses:3 18 19 21Used by:Timeline
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:Timeline
Symbol 25 MovieClipUses:4Used by:Timeline
Symbol 26 SoundUsed by:Timeline
Symbol 27 GraphicUsed by:30 33 36 38 42
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:27 28 29Used by:Timeline
Symbol 31 GraphicUsed by:33
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:27 31 32Used by:Timeline
Symbol 34 GraphicUsed by:36
Symbol 35 GraphicUsed by:36 38
Symbol 36 MovieClipUses:27 34 35Used by:Timeline
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:27 37 35Used by:Timeline
Symbol 39 GraphicUsed by:Timeline
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:27 40 41Used by:Timeline
Symbol 43 GraphicUsed by:Timeline
Symbol 44 GraphicUsed by:Timeline
Symbol 45 FontUsed by:46 47 48 51 54 55 56
Symbol 46 EditableTextUses:45Used by:Timeline
Symbol 47 EditableTextUses:45Used by:Timeline
Symbol 48 EditableTextUses:45Used by:Timeline
Symbol 49 FontUsed by:50 57 60
Symbol 50 EditableTextUses:49Used by:Timeline
Symbol 51 TextUses:45Used by:Timeline
Symbol 52 MovieClipUsed by:Timeline
Symbol 53 GraphicUsed by:Timeline
Symbol 54 EditableTextUses:45Used by:Timeline
Symbol 55 EditableTextUses:45Used by:Timeline
Symbol 56 EditableTextUses:45Used by:Timeline
Symbol 57 EditableTextUses:49Used by:Timeline
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:Timeline
Symbol 60 EditableTextUses:49Used by:Timeline

Instance Names

"flashA"Frame 11Symbol 25 MovieClip
"loadBar"Symbol 22 MovieClip Frame 1Symbol 18 MovieClip

Special Tags

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

Labels

"menu"Frame 12
"instructions"Frame 13
"addition"Frame 14
"multiplication"Frame 15
"die"Frame 16
"on"Symbol 30 MovieClip Frame 2
"off"Symbol 30 MovieClip Frame 11
"on"Symbol 33 MovieClip Frame 2
"off"Symbol 33 MovieClip Frame 11
"on"Symbol 36 MovieClip Frame 2
"off"Symbol 36 MovieClip Frame 11
"on"Symbol 38 MovieClip Frame 2
"off"Symbol 38 MovieClip Frame 11
"on"Symbol 42 MovieClip Frame 2
"off"Symbol 42 MovieClip Frame 11

Dynamic Text Variables

percentTextSymbol 21 EditableText""
num1_textSymbol 46 EditableText""
num2_textSymbol 47 EditableText""
answer_textSymbol 48 EditableText""
scoresSymbol 50 EditableText""
num1_textSymbol 54 EditableText""
num2_textSymbol 55 EditableText""
answer_textSymbol 56 EditableText""
scoresSymbol 57 EditableText""
end_textSymbol 60 EditableText""




http://swfchan.com/3/12186/info.shtml
Created: 6/6 -2019 08:19:36 Last modified: 6/6 -2019 08:19:36 Server time: 22/12 -2024 09:53:30