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/59604988?noj=FRM59604988-22DC" width="1" height="1"></div>

Dancing Duck.swf

This is the info page for
Flash #37615

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


Text
Loading

Play Game

Instructions

Credits

a stickmoose production

Dancing Duck

Highscores

left and right arrow keys    -    movement

Back

You are a duck and you must dance around
to avoid the falling jack'o'lanterns.  The more
you dodge the better score you get.  When you
die you have the option to submit your score.
HAPPY DANCING!

Credits

Programming & Art - Stickmoose

Inspiration - Enoll

Thanks to -
Volunteergnome, Otto, Reed, Armorgames

score: loading

Final Score

Back to Menu

Name:

name here

Submit

Done

ActionScript [AS1/AS2]

Frame 1
stop(); this.onEnterFrame = function () { loadbar._xscale = loadbar._xscale + ((percentLoaded - loadbar._xscale) / 8); percentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (percentLoaded >= 100) { play(); delete this.onEnterFrame; } };
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) { this.onPress = function () { getURL ("http://www.armorgames.com", "_blank"); }; }
Frame 51
_root.stopAllSounds(); stop();
Instance of Symbol 27 MovieClip in Frame 51
onClipEvent (enterFrame) { this.onPress = function () { getURL ("http://www.armorgames.com", "_blank"); }; }
Frame 54
function clearStage() { for (i in _root) { _root[i].removeMovieClip(); } } function createEnemy(x, y) { enemy = attachMovie("pumpkin", "enemy" + n, n); enemy._x = x; enemy._y = y; n = n + 1; } function createHat(x, y) { hat = attachMovie("hat", "hat" + n, n); hat._x = x; hat._y = y; n = n + 1; } function playSound(sound) { _root["sound" + n] = new Sound(); _root["sound" + n].attachSound(sound); _root["sound" + n].start(0, 1); n = n + 1; } var n = 0; var score = 0; var time = 0; var gotoGameOver = false; var vol = 100; var music = new Sound(); music.attachSound("bennyhill"); music.start(0, 999); this.onEnterFrame = function () { time = time + 1; if (gotoGameOver) { gotoAndStop (55); clearStage(); delete this.onEnterFrame; } hud.scoreDisplay = "Score: " + score; if (!duck.dead) { if (int(Math.random() * 25) == int(Math.random() * 25)) { createEnemy(Math.random() * Stage.width, -50); } } if (duck.dead) { gameover.play(); if (vol > 0) { vol = vol - 0.5; } } music.setVolume(vol); };
Frame 55
function submit(scr, name) { ab20_09 = new LoadVars(); ab20_09.z = name; ab20_09.x = ab20.encodeNum(scr); ab20_09.c = 480; ab20_09.v = "AGDMMW"; ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST"); } submit._visible = true; fade._alpha = 100; finalScore = 0; music.stop(); music.setVolume(100); this.onEnterFrame = function () { if (fade._alpha <= 1) { if (finalScore < score) { finalScore = finalScore + 1; } } };
Instance of Symbol 27 MovieClip in Frame 55
onClipEvent (enterFrame) { this.onPress = function () { getURL ("http://www.armorgames.com", "_blank"); }; }
Symbol 7 MovieClip Frame 1
xS = -8 + (Math.random() * 16); yS = -8 + (Math.random() * -8); rS = -5 + (Math.random() * 10); this.onEnterFrame = function () { yS = yS + 0.5; _x = (_x + xS); _y = (_y + yS); _alpha = (_alpha - 2); _rotation = (_rotation + rS); if (_alpha <= 0) { _parent.removeMovieClip(); } };
Symbol 9 MovieClip Frame 1
xS = -8 + (Math.random() * 16); yS = -8 + (Math.random() * -8); rS = -5 + (Math.random() * 10); this.onEnterFrame = function () { yS = yS + 0.5; _x = (_x + xS); _y = (_y + yS); _alpha = (_alpha - 2); _rotation = (_rotation + rS); if (_alpha <= 0) { _parent.removeMovieClip(); } };
Symbol 11 MovieClip Frame 1
xS = -8 + (Math.random() * 16); yS = -8 + (Math.random() * -8); rS = -5 + (Math.random() * 10); this.onEnterFrame = function () { yS = yS + 0.5; _x = (_x + xS); _y = (_y + yS); _alpha = (_alpha - 2); _rotation = (_rotation + rS); if (_alpha <= 0) { _parent.removeMovieClip(); } };
Symbol 13 MovieClip Frame 1
xS = -8 + (Math.random() * 16); yS = -8 + (Math.random() * -8); rS = -5 + (Math.random() * 10); this.onEnterFrame = function () { yS = yS + 0.5; _x = (_x + xS); _y = (_y + yS); _alpha = (_alpha - 2); _rotation = (_rotation + rS); if (_alpha <= 0) { _parent.removeMovieClip(); } };
Symbol 15 MovieClip Frame 1
xS = -8 + (Math.random() * 16); yS = -8 + (Math.random() * -8); rS = -5 + (Math.random() * 10); this.onEnterFrame = function () { yS = yS + 0.5; _x = (_x + xS); _y = (_y + yS); _alpha = (_alpha - 2); _rotation = (_rotation + rS); if (_alpha <= 0) { _parent.removeMovieClip(); } };
Symbol 17 MovieClip Frame 1
xS = -8 + (Math.random() * 16); yS = -8 + (Math.random() * -8); rS = -5 + (Math.random() * 10); this.onEnterFrame = function () { yS = yS + 0.5; _x = (_x + xS); _y = (_y + yS); _alpha = (_alpha - 2); _rotation = (_rotation + rS); if (_alpha <= 0) { _parent.removeMovieClip(); } };
Symbol 18 MovieClip [pumpkin] Frame 1
var yS = (0 + (_root.time / 50)); var xS = 0; var rS = 0; stop(); _yscale = (50 + (Math.random() * 50)); _xscale = (50 + (Math.random() * 50)); this.onEnterFrame = function () { if (_root.terrain.hitTest(_x + xS, _y + yS, true)) { _root.score = _root.score + 1; r = int(Math.random() * 3); _root.playSound("break" + r); gotoAndStop (2); delete this.onEnterFrame; } if (_root.duck.hitTest(_x + xS, _y + yS, true)) { if (_root.duck.attached != undefined) { _root.duck.attached.removeMovieClip(); gotoAndStop (2); delete this.onEnterFrame; } else { _root.duck.dead = true; } } yS = yS + 0.5; _rotation = (_rotation + rS); _x = (_x + xS); _y = (_y + yS); };
Symbol 20 MovieClip [hat] Frame 1
var yS = (0 + (_root.time / 100)); var xS = 0; var rS = 0; stop(); _yscale = (50 + (Math.random() * 50)); _xscale = (50 + (Math.random() * 50)); this.onEnterFrame = function () { if (_root.terrain.hitTest(_x + xS, _y + yS, true)) { _alpha = (_alpha - 1); yS = 0; disable = true; } if (_root.duck.hitTest(_x + xS, _y + yS, true)) { if (_root.duck.attached == undefined) { attached = true; _root.duck.attached = this; } yS = 0; disable = true; } if (attached) { _x = _root.duck._x; _y = _root.duck._y; _alpha = 100; } else { _alpha = (_alpha - 1); } if (_alpha <= 0) { this.removeMovieClip(); } if (!disable) { yS = yS + 0.1; } _rotation = (_rotation + rS); _x = (_x + xS); _y = (_y + yS); };
Symbol 112 MovieClip [__Packages.ab20] Frame 0
class ab20 { function ab20 () { } static function fr(str, find, replace, limit) { var _local2 = str; var _local3; var _local4; var _local9; if (!(typeof(find) === "string")) { if (replace === undefined) { replace = [""]; } else if (typeof(replace) === "string") { replace = [replace]; } } else { find = [find]; replace = [replace]; } _local9 = find.length; var _local1 = 0; var _local5 = 0; while (_local1 < _local9) { while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) { if ((!(limit === undefined)) && (_local5 >= limit)) { break; } _local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length)); _local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1])); _local2 = (_local3[0] + _local3[1]) + _local3[2]; _local5++; } _local1++; _local5 = 0; } return(_local2); } static function encodeNum(num) { var _local11 = getTimer(); var _local6 = ["aZ", "Zy", "Zx"]; var _local7 = ["zH", "jY", "uH"]; var _local4 = ["Ah", "Xh", "hO"]; var _local5 = ["Ub", "Bu", "Cb"]; var _local8 = ["Qc", "Pc", "Pe"]; var _local9 = ["Ei", "Ie", "Ef"]; var _local3 = ["Fk", "kG", "Kg"]; var _local13 = ["Jl", "Lm", "Mn"]; var _local12 = ["No", "Np", "Qp"]; var _local2 = ["Rs", "St", "Sw"]; var _local14 = random(3); num = String(num); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); if (_local14 == 1) { num = fr(num, "5", _local8[0]); } else { num = fr(num, "5", _local8[random(3)]); } num = fr(num, "4", _local9[random(3)]); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "2", _local13[random(3)]); num = fr(num, "1", _local12[random(3)]); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); var _local10 = getTimer() - _local11; num = (num + "Dd") + _local10; return(num); } static function encodeStr8bytes(str) { var _local1 = 0; var _local4 = str.length; var _local3 = "%"; var _local2 = ["%", "$", "#", "@"]; while (_local1 < _local4) { _local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]); _local1++; } return(_local3); } static function decodeStr8bytes(str) { str = ("PIE" + str) + "PIE"; str = fr(str, "%", "D"); str = fr(str, "$", "D"); str = fr(str, "#", "D"); str = fr(str, "@", "D"); str = fr(str, "PIED", ""); str = fr(str, "DPIE", ""); var _local3 = str.split("D"); var _local4 = ""; var _local1 = 0; var _local5 = _local3.length; while (_local1 < _local5) { _local4 = _local4 + String(String.fromCharCode(_local3[_local1])); _local1++; } return(_local4); } static function decodeNum(str) { var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"]; str = String(str); str = str.split("Dd"); str = str[0]; str = fr(str, _local2[0], "9"); str = fr(str, _local2[1], "9"); str = fr(str, _local2[2], "9"); str = fr(str, _local2[3], "8"); str = fr(str, _local2[4], "8"); str = fr(str, _local2[5], "8"); str = fr(str, _local2[6], "7"); str = fr(str, _local2[7], "7"); str = fr(str, _local2[8], "7"); str = fr(str, _local2[9], "6"); str = fr(str, _local2[10], "6"); str = fr(str, _local2[11], "6"); str = fr(str, _local2[12], "5"); str = fr(str, _local2[13], "5"); str = fr(str, _local2[14], "5"); str = fr(str, _local2[15], "4"); str = fr(str, _local2[16], "4"); str = fr(str, _local2[17], "4"); str = fr(str, _local2[18], "3"); str = fr(str, _local2[19], "3"); str = fr(str, _local2[20], "3"); str = fr(str, _local2[21], "2"); str = fr(str, _local2[22], "2"); str = fr(str, _local2[23], "2"); str = fr(str, _local2[24], "1"); str = fr(str, _local2[25], "1"); str = fr(str, _local2[26], "1"); str = fr(str, _local2[27], "0"); str = fr(str, _local2[28], "0"); str = fr(str, _local2[29], "0"); var _local3 = Number(str); return(_local3); } }
Symbol 43 Button
on (release) { gotoAndStop (54); }
Symbol 45 Button
on (release) { gotoAndStop ("instructions"); }
Symbol 47 Button
on (release) { gotoAndStop ("credits"); }
Symbol 56 Button
on (release) { getURL ("http://www.armorbot.com/mytable/?id=480", "_blank"); }
Symbol 60 Button
on (release) { gotoAndStop ("main"); }
Symbol 90 MovieClip Frame 1
stop(); this.onEnterFrame = function () { if (!dead) { if (Key.isDown(39)) { xS = 10; } else if (Key.isDown(37)) { xS = -10; } else { xS = xS - (xS / 4); } _x = (_x + xS); if ((_x - (_width / 2)) < 0) { _x = (0 + (_width / 2)); } else if ((_x + (_width / 2)) > Stage.width) { _x = (Stage.width - (_width / 2)); } } else { gotoAndStop (2); } };
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () { this.swapDepths(_root.n + 999); };
Symbol 99 MovieClip Frame 1
stop(); this.onEnterFrame = function () { this.swapDepths(_root.n + 1000); };
Symbol 99 MovieClip Frame 200
_root.gotoGameOver = true;
Symbol 101 Button
on (release) { gotoAndStop (51); }
Symbol 106 Button
on (release) { _root.submit(_root.score, name); gotoAndStop (2); }
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
this.onEnterFrame = function () { _alpha = (_alpha - 1); };

Library Items

Symbol 1 Sound [break2]
Symbol 2 Sound [break1]
Symbol 3 Sound [break0]
Symbol 4 Sound [bennyhill]
Symbol 5 GraphicUsed by:18
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:18
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:18
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:18
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:18
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:18
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:18
Symbol 18 MovieClip [pumpkin]Uses:5 7 9 11 13 15 17
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip [hat]Uses:19
Symbol 21 GraphicUsed by:Timeline
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:Timeline
Symbol 24 FontUsed by:25 44 46 48 50 55 57 61 63 93 100 102 104 105 107 108 110
Symbol 25 TextUses:24Used by:Timeline
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:Timeline
Symbol 112 MovieClip [__Packages.ab20]
Symbol 28 GraphicUsed by:Timeline
Symbol 29 GraphicUsed by:Timeline
Symbol 30 GraphicUsed by:Timeline
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:Timeline
Symbol 33 GraphicUsed by:43 45 47 56 60 101 106
Symbol 34 GraphicUsed by:42 43 45 47 56 60 101 106
Symbol 35 GraphicUsed by:42
Symbol 36 GraphicUsed by:42
Symbol 37 GraphicUsed by:42
Symbol 38 GraphicUsed by:42
Symbol 39 GraphicUsed by:42
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:34 35 36 37 38 39 40 41Used by:43 45 47 56 60 101 106
Symbol 43 ButtonUses:33 42 34Used by:Timeline
Symbol 44 TextUses:24Used by:Timeline
Symbol 45 ButtonUses:33 42 34Used by:Timeline
Symbol 46 TextUses:24Used by:Timeline
Symbol 47 ButtonUses:33 42 34Used by:Timeline
Symbol 48 TextUses:24Used by:Timeline
Symbol 49 GraphicUsed by:51 53
Symbol 50 TextUses:24Used by:51 53
Symbol 51 MovieClipUses:49 50Used by:53
Symbol 52 GraphicUsed by:53 99 111
Symbol 53 ButtonUses:49 50 51 52Used by:Timeline
Symbol 54 GraphicUsed by:Timeline
Symbol 55 TextUses:24Used by:Timeline
Symbol 56 ButtonUses:33 42 34Used by:Timeline
Symbol 57 TextUses:24Used by:Timeline
Symbol 58 FontUsed by:59 62 64 65 66
Symbol 59 TextUses:58Used by:Timeline
Symbol 60 ButtonUses:33 42 34Used by:Timeline
Symbol 61 TextUses:24Used by:Timeline
Symbol 62 TextUses:58Used by:Timeline
Symbol 63 TextUses:24Used by:Timeline
Symbol 64 TextUses:58Used by:Timeline
Symbol 65 TextUses:58Used by:Timeline
Symbol 66 TextUses:58Used by:Timeline
Symbol 67 GraphicUsed by:Timeline
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:Timeline
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:Timeline
Symbol 72 GraphicUsed by:90
Symbol 73 GraphicUsed by:90
Symbol 74 GraphicUsed by:82
Symbol 75 GraphicUsed by:82
Symbol 76 GraphicUsed by:82
Symbol 77 GraphicUsed by:82
Symbol 78 GraphicUsed by:82
Symbol 79 GraphicUsed by:82
Symbol 80 GraphicUsed by:82
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:74 75 76 77 78 79 80 81Used by:90
Symbol 83 GraphicUsed by:90
Symbol 84 GraphicUsed by:89
Symbol 85 GraphicUsed by:89
Symbol 86 GraphicUsed by:89
Symbol 87 GraphicUsed by:89
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:84 85 86 87 88Used by:90
Symbol 90 MovieClipUses:72 73 82 83 89Used by:Timeline
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:Timeline
Symbol 93 EditableTextUses:24Used by:94
Symbol 94 MovieClipUses:93Used by:Timeline
Symbol 95 ShapeTweeningUsed by:99
Symbol 96 ShapeTweeningUsed by:99
Symbol 97 GraphicUsed by:99
Symbol 98 ShapeTweeningUsed by:99
Symbol 99 MovieClipUses:95 96 97 98 52Used by:Timeline
Symbol 100 TextUses:24Used by:Timeline
Symbol 101 ButtonUses:33 42 34Used by:Timeline
Symbol 102 TextUses:24Used by:Timeline
Symbol 103 GraphicUsed by:109
Symbol 104 TextUses:24Used by:109
Symbol 105 EditableTextUses:24Used by:109
Symbol 106 ButtonUses:33 42 34Used by:109
Symbol 107 TextUses:24Used by:109
Symbol 108 TextUses:24Used by:109
Symbol 109 MovieClipUses:103 104 105 106 107 108Used by:Timeline
Symbol 110 EditableTextUses:24Used by:Timeline
Symbol 111 MovieClipUses:52Used by:Timeline

Instance Names

"loadbar"Frame 1Symbol 23 MovieClip
"terrain"Frame 54Symbol 71 MovieClip
"duck"Frame 54Symbol 90 MovieClip
"hud"Frame 54Symbol 94 MovieClip
"gameover"Frame 54Symbol 99 MovieClip
"submit"Frame 55Symbol 109 MovieClip
"fade"Frame 55Symbol 111 MovieClip
"submitButton"Symbol 109 MovieClip Frame 1Symbol 106 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "break2"
ExportAssets (56)Timeline Frame 1Symbol 2 as "break1"
ExportAssets (56)Timeline Frame 1Symbol 3 as "break0"
ExportAssets (56)Timeline Frame 1Symbol 4 as "bennyhill"
ExportAssets (56)Timeline Frame 1Symbol 18 as "pumpkin"
ExportAssets (56)Timeline Frame 1Symbol 20 as "hat"
ExportAssets (56)Timeline Frame 1Symbol 112 as "__Packages.ab20"

Labels

"main"Frame 51
"instructions"Frame 52
"credits"Frame 53

Dynamic Text Variables

scoreDisplaySymbol 93 EditableText"score: loading"
nameSymbol 105 EditableText"name here"
finalScoreSymbol 110 EditableText""




http://swfchan.com/8/37615/info.shtml
Created: 14/5 -2019 01:43:03 Last modified: 14/5 -2019 01:43:03 Server time: 22/12 -2024 12:06:12