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

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

ARROWMANGAME.swf

This is the info page for
Flash #94562

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


Text
U

p to jump

L

eft to move left

R

ight to move right

U

p arrow button to jump

L

eft arrow button to move left

R

ight arrow to move right

You lose

You lose

ActionScript [AS1/AS2]

Frame 1
button.onRelease = function () { gotoAndPlay (3); };
Frame 2
stop();
Frame 3
function attachMv(nm) { var _local4 = "uniqueid" + uniqid; uniqid++; var _local3 = this.attachMovie(nm, _local4, _root.getNextHighestDepth()); level_specific.push(_local3); return(_local3); } function clearMv() { var _local1; _local1 = 0; while (_local1 < level_specific.length) { level_specific[_local1].unloadMovie(); _local1++; } clear_array(level_specific); } function clear_array(a) { while (a.length > 0) { a.pop(); } } function randRange(min, max) { var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min; return(_local1); } function randPoint(maxa, maxb) { var _local2 = Math.floor(Math.random() * (maxa + 1)); var _local1 = Math.floor(Math.random() * (maxa + 1)); if (!is_obstacle_point(_local2, _local1)) { return({x:_local2, y:_local1}); } randPoint(maxa, maxb); } function randomMove(min, max) { var _local1 = randRange(min, max); var _local2 = randRange(0, 1); if (_local2 == 0) { return(_local1); } return(_local1 * -1); } function add_scorebox(o) { var _local2 = o.getBounds(this); scoreboxes.push(new flash.geom.Rectangle(_local2.xMin, _local2.yMin, _local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin)); } function is_scorebox_point(a, b) { var _local1; _local1 = 0; while (_local1 < scoreboxes.length) { if (scoreboxes[_local1].contains(a, b)) { return(true); } _local1++; } return(false); } function is_scorebox(s) { return(s == "scorebox"); } function clear_scorebox() { clear_array(scoreboxes); } function init_scorebox() { var _local2; for (_local2 in _root) { if (is_scorebox(_local2)) { add_scorebox(_root[_local2]); } } } function add_ladder(o) { var _local2 = o.getBounds(this); ladders.push(new flash.geom.Rectangle(_local2.xMin, _local2.yMin, _local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin)); } function is_ladder_point(a, b) { var _local1; _local1 = 0; while (_local1 < ladders.length) { if (ladders[_local1].contains(a, b)) { return(true); } _local1++; } return(false); } function is_num(s) { if (s == "0") { return(true); } if (s == "1") { return(true); } if (s == "2") { return(true); } if (s == "3") { return(true); } if (s == "4") { return(true); } if (s == "5") { return(true); } if (s == "6") { return(true); } if (s == "7") { return(true); } if (s == "8") { return(true); } if (s == "9") { return(true); } return(false); } function is_ladder(s) { var _local2 = s.substr(0, 6); var _local1 = s.substr(6, 1); return((_local2 == "ladder") && (is_num(_local1))); } function init_ladders() { var _local2; for (_local2 in _root) { if (is_ladder(_local2)) { add_ladder(_root[_local2]); } } } function clear_ladders() { clear_array(ladders); } function add_obstacle(o) { var _local2 = o.getBounds(this); obstacles.push(new flash.geom.Rectangle(_local2.xMin, _local2.yMin, _local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin)); } function is_obstacle_point(a, b) { var _local1; _local1 = 0; while (_local1 < obstacles.length) { if (obstacles[_local1].contains(a, b)) { return(true); } _local1++; } return(false); } function is_obstacle(s) { var _local1 = new String(); _local1 = s.substr(0, 3); var _local2 = s.substr(3, 1); return((_local1 == "obs") && (is_num(_local2))); } function init_obstacles() { var _local2; for (_local2 in _root) { if (is_obstacle(_local2)) { add_obstacle(_root[_local2]); } } } function clear_obstacles() { clear_array(obstacles); } function pstate(s) { if ((s == "falling") && (p.lastmove != "falling")) { p.gotoAndPlay(10); p.lastmove = "falling"; p.lastdate = new Date(); } else if ((s == "ladder") && (p.lastmove != "ladder")) { p.gotoAndPlay(12); p.lastmove = "ladder"; p.lastdate = new Date(); } else if ((s == "standing") && (p.lastmove != "standing")) { p.lastmove = "standing"; p.lastdate = new Date(); p.gotoAndPlay(9); } else if ((s == "left") && (p.lastmove != "left")) { p.gotoAndPlay(1); p.lastmove = "left"; p.lastdate = new Date(); } else if ((s == "right") && (p.lastmove != "right")) { p.gotoAndPlay(5); p.lastmove = "right"; p.lastdate = new Date(); } } function player_update() { if (is_ladder_point(p._x, p._y - 10)) { pstate("ladder"); } else if ((!is_obstacle_point(p._x, p._y + 10)) && (!is_ladder_point(p._x, p._y + 10))) { pstate("falling"); } else if ((((p.lastmove == "left") || (p.lastmove == "right")) || (p.lastmove == "ladder")) || (p.lastmove == "falling")) { var _local1 = new Date().getTime() - p.lastdate.getTime(); if (_local1 > 500) { pstate("standing"); } } } function add_badguy() { var _local1; if (bgcount >= 2) { _local1 = attachMv("badguy_nosound"); } else { _local1 = attachMv("badguy"); } bgcount++; var _local2 = randPoint(1000, 700); _local1._x = _local2.x; _local1._y = _local2.y; _local1.speed = randRange(10, 30); badguys.push(_local1); gravityguys.push(_local1); } function badguy_update() { var _local1; _local1 = 0; while (_local1 < badguys.length) { if (badguys[_local1]._y > 1000) { var _local2 = badguys[_local1]; var _local5 = randPoint(1000, 700); _local2._x = _local5.x; _local2._y = _local5.y; _local2.speed = randRange(10, 30); rehab = true; } var _local3; if (randRange(0, 1) == 1) { _local3 = 0; } else { _local3 = randRange(0, badguys[_local1].speed); } var _local4; var _local7 = badguys[_local1]._x - p._x; if (_local7 < 0) { _local4 = badguys[_local1]._x + _local3; } else { _local4 = badguys[_local1]._x - _local3; } var _local6 = badguys[_local1]._y; if (!is_obstacle_point(_local4, _local6)) { badguys[_local1]._x = _local4; badguys[_local1]._y = _local6; } _local1++; } if (upcount == 0) { if (rehab) { rehab = false; } else { add_badguy(); } } upcount = (upcount + 1) % badguy_freq; } function score_update() { if ((score <= 0) || (p._y > 1000)) { clear_level(); gotoAndPlay (50); } if (is_scorebox_point(p._x, p._y)) { clear_level(); if (level == 1) { gotoAndPlay (30); } else { gotoAndPlay (5); } } var _local1; _local1 = 0; while (_local1 < badguys.length) { var _local3 = badguys[_local1]._x - p._x; var _local2 = badguys[_local1]._y - p._y; var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); if (_local4 < collision_threshold) { score--; scorebox.lives.text = score; attachMv("ouch"); pstate("falling"); } _local1++; } } function ladder_update() { var _local1; _local1 = 0; while (_local1 < gravityguys.length) { if (is_ladder_point(gravityguys[_local1]._x, gravityguys[_local1]._y)) { var _local3 = gravityguys[_local1]._x; var _local2 = gravityguys[_local1]._y - gravityguys[_local1].speed; gravityguys[_local1]._x = _local3; gravityguys[_local1]._y = _local2; if ((p == gravityguys[_local1]) && (is_ladder_point(_local3, _local2))) { pstate("ladder"); } } _local1++; } } function gravity_update() { var _local1; _local1 = 0; while (_local1 < gravityguys.length) { var _local3 = gravityguys[_local1]._x; var _local2 = gravityguys[_local1]._y + gravity_weight; if (!is_ladder_point(gravityguys[_local1]._x, gravityguys[_local1]._y)) { if ((!is_obstacle_point(_local3, _local2)) && (!is_ladder_point(_local3, _local2))) { if ((gravityguys[_local1] == p) && (!is_ladder_point(_local3, _local2 + 10))) { pstate("falling"); } gravityguys[_local1]._x = _local3; gravityguys[_local1]._y = _local2; } } _local1++; } } function init_level(l) { level = l; level_specific = new Array(); gravityguys = new Array(); badguys = new Array(); obstacles = new Array(); ladders = new Array(); scoreboxes = new Array(); init_obstacles(); init_ladders(); init_scorebox(); p = attachMv("indy"); p.speed = player_speed; pstate("falling"); gravityguys.push(p); Key.addListener(keyboard_update); interv1 = setInterval(badguy_update, 60); interv2 = setInterval(gravity_update, 10); interv3 = setInterval(score_update, 50); interv4 = setInterval(player_update, 300); interv5 = setInterval(ladder_update, 10); collision_threshold = 10; xdelta = 0; jumpboost = 0; upcount = 0; bgcount = 0; rehab = false; scorebox.lives.text = score; } function clear_level() { clear_obstacles(); clear_ladders(); clear_scorebox(); Key.removeListener(watchKeyBoard); clearInterval(interv1); clearInterval(interv2); clearInterval(interv3); clearInterval(interv4); clearInterval(interv5); clearMv(); clear_array(gravityguys); clear_array(badguys); } var level = 1; var badguy_freq; var score; var player_speed; var gravity_weight; var collision_threshold; var uniqid = 0; var jumpboost; var level_specific; var gravityguys; var badguys; var obstacles; var ladders; var scoreboxes; var xdelta; var upcount; var bgcount; var rehab; var interv1; var interv2; var interv3; var interv4; var interv5; var p; keyboard_update = new Object(); keyboard_update.onKeyDown = function () { if (Key.isDown(38)) { if (is_obstacle_point(p._x, p._y + 10)) { pstate("ladder"); var _local1 = 149; while (_local1 > 0) { if (!is_obstacle_point(p._x + xdelta, (p._y - _local1) - jumpboost)) { p._y = (p._y - _local1) - jumpboost; p._x = p._x + xdelta; break; } _local1 = _local1 - 10; } xdelta = 0; jumpboost = jumpboost + 120; } } else if (Key.isDown(37)) { if (!is_obstacle_point(p._x - p.speed, p._y)) { p._x = p._x - p.speed; xdelta = -100; jumpboost = 0; if (is_obstacle_point(p._x, p._y + 10) || (is_ladder_point(p._x, p._y + 10))) { pstate("left"); } } } else if (Key.isDown(39)) { if (!is_obstacle_point(p._x + p.speed, p._y)) { p._x = p._x + p.speed; xdelta = 100; jumpboost = 0; if (is_obstacle_point(p._x, p._y + 10) || (is_ladder_point(p._x, p._y + 10))) { pstate("right"); } } } else if (Key.isDown(40)) { } else if (Key.isDown(45)) { } else if (Key.isDown(13)) { } else if (Key.getAscii() == 100) { } else if (Key.getAscii() == 117) { } }; badguy_freq = 25; player_speed = 10; score = 10; gravity_weight = 5; init_level(1); stop();
Frame 4
init_level(2); stop();
Frame 29
stop();
Frame 49
gotoAndPlay (4);
Frame 74
stop();
Symbol 19 MovieClip [indy] Frame 4
gotoAndPlay (1);
Symbol 19 MovieClip [indy] Frame 7
gotoAndPlay (5);
Symbol 19 MovieClip [indy] Frame 9
gotoAndPlay (8);
Symbol 19 MovieClip [indy] Frame 11
gotoAndPlay (10);
Symbol 19 MovieClip [indy] Frame 16
gotoAndPlay (12);
Symbol 31 MovieClip [ouch] Frame 10
stop();
Symbol 35 MovieClip [score] Frame 1
stop();

Library Items

Symbol 1 GraphicUsed by:19
Symbol 2 GraphicUsed by:19
Symbol 3 GraphicUsed by:19
Symbol 4 GraphicUsed by:19
Symbol 5 GraphicUsed by:19
Symbol 6 GraphicUsed by:19
Symbol 7 GraphicUsed by:19
Symbol 8 GraphicUsed by:19
Symbol 9 GraphicUsed by:19
Symbol 10 GraphicUsed by:19
Symbol 11 GraphicUsed by:19
Symbol 12 GraphicUsed by:19
Symbol 13 GraphicUsed by:19
Symbol 14 GraphicUsed by:19
Symbol 15 GraphicUsed by:19
Symbol 16 GraphicUsed by:19
Symbol 17 GraphicUsed by:19
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip [indy]Uses:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Symbol 20 GraphicUsed by:25 30
Symbol 21 GraphicUsed by:25
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip [badguy_nosound]Uses:20 21 22 23 24
Symbol 26 GraphicUsed by:30
Symbol 27 GraphicUsed by:30
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClip [badguy]Uses:20 26 27 28 29 SS2
Symbol 31 MovieClip [ouch]Uses:SS3
Symbol 32 GraphicUsed by:35
Symbol 33 FontUsed by:34 43 46 48 50 52 54 78 91
Symbol 34 EditableTextUses:33Used by:35
Symbol 35 MovieClip [score]Uses:32 34Used by:Timeline
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip [ladder]Uses:36Used by:Timeline
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip [obs]Uses:38Used by:Timeline
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip [button]Uses:40Used by:Timeline
Symbol 42 GraphicUsed by:Timeline
Symbol 43 EditableTextUses:33Used by:Timeline
Symbol 44 FontUsed by:45 47 49 51 53 55
Symbol 45 EditableTextUses:44Used by:Timeline
Symbol 46 EditableTextUses:33Used by:Timeline
Symbol 47 EditableTextUses:44Used by:Timeline
Symbol 48 EditableTextUses:33Used by:Timeline
Symbol 49 EditableTextUses:44Used by:Timeline
Symbol 50 EditableTextUses:33Used by:Timeline
Symbol 51 EditableTextUses:44Used by:Timeline
Symbol 52 EditableTextUses:33Used by:Timeline
Symbol 53 EditableTextUses:44Used by:Timeline
Symbol 54 EditableTextUses:33Used by:Timeline
Symbol 55 EditableTextUses:44Used by:Timeline
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:Timeline
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:Timeline
Symbol 60 GraphicUsed by:Timeline
Symbol 61 GraphicUsed by:Timeline
Symbol 62 GraphicUsed by:Timeline
Symbol 63 GraphicUsed by:Timeline
Symbol 64 GraphicUsed by:Timeline
Symbol 65 GraphicUsed by:Timeline
Symbol 66 GraphicUsed by:Timeline
Symbol 67 BitmapUsed by:68 76
Symbol 68 GraphicUses:67Used by:Timeline
Symbol 69 GraphicUsed by:Timeline
Symbol 70 GraphicUsed by:Timeline
Symbol 71 GraphicUsed by:Timeline
Symbol 72 GraphicUsed by:Timeline
Symbol 73 GraphicUsed by:Timeline
Symbol 74 GraphicUsed by:Timeline
Symbol 75 GraphicUsed by:Timeline
Symbol 76 GraphicUses:67Used by:Timeline
Symbol 77 GraphicUsed by:Timeline
Symbol 78 EditableTextUses:33Used by:Timeline
Symbol 79 GraphicUsed by:Timeline
Symbol 80 GraphicUsed by:Timeline
Symbol 81 GraphicUsed by:Timeline
Symbol 82 GraphicUsed by:Timeline
Symbol 83 GraphicUsed by:Timeline
Symbol 84 GraphicUsed by:Timeline
Symbol 85 GraphicUsed by:Timeline
Symbol 86 GraphicUsed by:Timeline
Symbol 87 GraphicUsed by:Timeline
Symbol 88 GraphicUsed by:Timeline
Symbol 89 GraphicUsed by:Timeline
Symbol 90 GraphicUsed by:Timeline
Symbol 91 EditableTextUses:33Used by:Timeline
Streaming Sound 1Used by:Timeline
Streaming Sound 2Used by:Symbol 30 MovieClip [badguy]
Streaming Sound 3Used by:Symbol 31 MovieClip [ouch]

Instance Names

"button"Frame 1Symbol 41 MovieClip [button]
"obs1"Frame 3Symbol 39 MovieClip [obs]
"obs2"Frame 3Symbol 39 MovieClip [obs]
"obs3"Frame 3Symbol 39 MovieClip [obs]
"obs4"Frame 3Symbol 39 MovieClip [obs]
"obs5"Frame 3Symbol 39 MovieClip [obs]
"obs7"Frame 3Symbol 39 MovieClip [obs]
"ladder1"Frame 3Symbol 37 MovieClip [ladder]
"ladder2"Frame 3Symbol 37 MovieClip [ladder]
"ladder3"Frame 3Symbol 37 MovieClip [ladder]
"ladder4"Frame 3Symbol 37 MovieClip [ladder]
"scorebox"Frame 3Symbol 35 MovieClip [score]
"obs8"Frame 3Symbol 39 MovieClip [obs]
"obs30"Frame 4Symbol 39 MovieClip [obs]
"obs4"Frame 4Symbol 39 MovieClip [obs]
"obs5"Frame 4Symbol 39 MovieClip [obs]
"ladder1"Frame 4Symbol 37 MovieClip [ladder]
"ladder4"Frame 4Symbol 37 MovieClip [ladder]
"scorebox"Frame 4Symbol 35 MovieClip [score]
"obs70"Frame 4Symbol 39 MovieClip [obs]
"obs78"Frame 4Symbol 39 MovieClip [obs]
"obs35"Frame 4Symbol 39 MovieClip [obs]
"obs3"Frame 4Symbol 39 MovieClip [obs]
"obs345"Frame 4Symbol 39 MovieClip [obs]
"obs467"Frame 4Symbol 39 MovieClip [obs]
"lives"Symbol 35 MovieClip [score] Frame 1Symbol 34 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 19 as "indy"
ExportAssets (56)Timeline Frame 1Symbol 25 as "badguy_nosound"
ExportAssets (56)Timeline Frame 1Symbol 30 as "badguy"
ExportAssets (56)Timeline Frame 1Symbol 31 as "ouch"
ExportAssets (56)Timeline Frame 1Symbol 35 as "score"
ExportAssets (56)Timeline Frame 1Symbol 37 as "ladder"
ExportAssets (56)Timeline Frame 1Symbol 39 as "obs"
ExportAssets (56)Timeline Frame 1Symbol 41 as "button"




http://swfchan.com/19/94562/info.shtml
Created: 26/3 -2019 03:01:21 Last modified: 26/3 -2019 03:01:21 Server time: 22/12 -2024 03:41:47